*{
 box-sizing:border-box;
 margin: 0;
 padding: 0;
}
html{
    scroll-behavior:smooth;
}
::selection {
  background: #1e84cd;
  color: #0d1117;
}
a, button, .card {
  transition: all 0.3s ease-in-out;
}
body{
      --bg:#111827;
    background-color: var(--bg);
    color: contrast-color(var(--bg));
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

nav{
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(8px);
    z-index: 100;
    position: sticky;
    top: 0;

    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 20px;
    margin: 0;
}

nav a{
    display: block;
    text-decoration: none;
    color: white;
    transition: 0.25s;
    font-weight: bold;
}
nav a:hover{
    color: hsl(120, 100%, 85%);
    transform: scale(1.3);
}
nav h2{
    margin: 10px;
    font-size: large;
}
nav ul{
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    gap: 30px;
}

header{
    --bg:#111827;
    background-color: var(--bg);
    color: contrast-color(var(--bg));
    min-height: 100dvh;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
header h1{
    font-weight: bold;
    font-size: 2.5rem;
   
}
header p{
    font-weight:300;
    font-size: small;
    
}
header a{
    text-decoration: none;
    color:rgb(190, 168, 168)
}
#at-a-glance{
    padding: 20px;
    font-size: 2.25rem;
    font-weight: bold;
}
#myButton{
/* From https://css.glass */
border-radius: 16px;
box-shadow: 0 4px 30px rgba(255, 0, 127, 0.4);
backdrop-filter: blur(4.8px);
-webkit-backdrop-filter: blur(4.8px);
border: 1px solid rgba(255, 255, 255, 0.39);
 background-image: linear-gradient(135deg, #7f00ff, #ff007f);

font-weight: 600;
cursor: pointer;
padding: 14px;
margin-top: 25px;
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

display: block;
  margin-left: auto;
  margin-right: auto;
}

#myButton:hover{
     transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 0, 127, 0.6);
}

#Hero{
    --bg: rgb(136, 120, 120);  
    color: contrast-color(var(--bg));
    display: flex;  
    flex-direction: row;
    padding: 20px;
    gap: 30px;
    flex-wrap: wrap;
    }

#Hero > div{
    flex:1 1 300px;
    max-width: 100%;
    background-image: linear-gradient(135deg, #174dc2, #27c375);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 10px rgba(58, 150, 221, 0.4);
    border-radius: 12px;
    padding: 24px;
    color: #fff;
    transition: 0.3s ease-in-out;
    opacity: 0.9;
}
#Hero > div:hover{
    transform: scale(1.075) rotate(1deg);
    box-shadow: 0 15px 30px rgba(58, 150, 221, 0.6);
    opacity: 1;
}
#Hero h2{
    font-weight: bold;
    font-style: italic;
    text-decoration: underline;
    
}
#Hero h3{
    font-weight: semi-bold;
    font-size:15px;
}
#Hero p{
    font-size: 12px;
}
#myH1{
    padding: 20px;
    font-size: 2.25rem;
    font-weight: bold;
}
.AboutMe{
    padding: 2px 30px;
    padding-bottom: 50px;
    text-wrap: balance;
}
#About h3{
    font-size: 2.11rem;
    font-weight: bold;
    font-style: italic;
}
#About ul {
  padding-left: 20px;
  line-height: 1.8;
}

/*CUSTOMM SCROLL BAR Optionional Obviously*/
/* Width of the scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

/* Track (background) */
::-webkit-scrollbar-track {
  background: #0d1117;
}

/* Handle (the thumb you drag) */
::-webkit-scrollbar-thumb {
  background: #174dc2;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #27c375;
}
.Contact-container{
    padding: 2px 30px;
    text-wrap: balance;
    padding-bottom: 10px;
}
#Contacts {
  text-align: center;
  padding: 60px 20px;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.Contact-container {
  margin-bottom: 20px;
  line-height: 1.4;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}

footer a{
    text-decoration: none;
    transition: 0.3s ease-in-out;
    color: #D946EF;
}
footer a:hover{
    color: rgb(56, 188, 73);
}

.social-icons {
  fill: #8b949e; 
  transition: fill 0.2s ease, filter 0.2s ease;
}

.social-links a:hover .social-icons {
  fill: #7329ce; 
  filter: drop-shadow(0 0 8px rgba(189, 26, 181, 0.6));
}



/*Projectssss ko part haru*/

#myParagraph{
    padding: 2px 30px;
    padding-bottom: 50px;
    text-wrap: balance;
}
.Project-Container{
   display: flex;
   text-wrap: balance;
   align-items: center;
   gap: 40px;
   margin-bottom: 60px;
   padding: 20px;
}

.Project-Container:nth-child(even){
    flex-direction: row-reverse;
}

.Project-img img{
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.Project-info, .Project-img{
    flex: 1;
}
.Project-info h2{
    font-size: 2.15rem;
    font-weight: bold;
}
.Project-info p{
    font-size: 16px;
    font-style: italic;
}
/* Stack project cards vertically on mobile screens */
@media (max-width: 768px) {
  .Project-Container,
  .Project-Container:nth-child(even) {
    flex-direction: column;
    gap: 20px;
  }
  
  .Project-info, .Project-img {
    width: 100%;
  }
}
.Project-Container a{
    display: inline-block;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease-in-out;
}
.Project-Container a:hover{
    color: #D946EF;
    transform: translateY(-3px) scale(1.05);
    filter: drop-shadow(0 0 8px rgba(189, 26, 181, 0.6));
}


/* 1. Form Container */
.feedback-form {
  max-width: 500px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #161b2c; /* Deep dark navy card */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* 2. Labels */
.feedback-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #e2e8f0;
}

/* 3. Text Inputs & Textarea */
.feedback-form input,
.feedback-form textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  background-color: #0d111d; /* Slightly darker inset background */
  border: 1px solid #2d3748;
  border-radius: 8px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Placeholder Text */
.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
  color: #64748b;
}

/* Prevent horizontal stretching on the textarea */
.feedback-form textarea {
  resize: vertical;
  min-height: 110px;
}

/* 4. Focus Glow Effect (Matches your pink/violet accent) */
.feedback-form input:focus,
.feedback-form textarea:focus {
  outline: none;
  border-color: #d946ef;
  box-shadow: 0 0 0 3px rgba(217, 70, 239, 0.2);
}

/* 5. Submit Button */
.feedback-form button[type="submit"] {
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, #d946ef, #8b5cf6);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.feedback-form button[type="submit"]:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

.feedback-form button[type="submit"]:active {
  transform: translateY(0);
}
#Up-btn{
  background: linear-gradient(135deg, #a02ab3, #5128af);
  color: white;
  font-size: 20px;
  font-weight: bold;
  padding: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50px;
  border: 1px solid rgb(32, 22, 22);
  text-decoration: none;
  position: fixed;
  right: 10px;
  bottom: 50px;
  z-index: 999;
  transition: 0.5s ease-in-out;
}
#Up-btn:hover{
  background: linear-gradient(135deg, #7fb53a, #0d5b31);
  transform: scale(1.1) translateY(-2px);
  color: rgb(223, 99, 99);

}
.hidden{
  display: none;
}