* {
    padding: 0px;
    margin: 0px;
}

html {
    background-color: #212121;
    position: relative;
    scroll-behavior: smooth;
}

p {
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
     line-height: 2.1875;
    color: #E0E0E0; 
}

h1 {
    color: #FAFAFA;
    font-family: "DM Serif Display", serif;
    font-weight: 400;
    font-style: italic;
    font-size: 6rem;
    opacity: 0;
    animation: fadeInUp 0.9s ease-out forwards;
    animation-delay: 0.2s;
}

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


h2 {
    color: #9E9E9E;
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 100;
    font-style: normal;
    font-size: 3rem;
    animation: fadeInUp 0.9s ease-out forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

.underline {
  position: relative;
  display: inline-block;
}

.underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.10em;
  width: 100%;
  height: 3px;
  background-color: #424242;
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineDraw 0.6s ease-out forwards;
}

/* Stagger the underline animations */
.underline:nth-of-type(1)::after {
  animation-delay: 1.8s;
}

.underline:nth-of-type(2)::after {
  animation-delay: 1.8s;
}

@keyframes underlineDraw {
  to {
    transform: scaleX(1);
  }
}

h3 {
    color: #FAFAFA;
    font-family: "DM Serif Display", serif;
    font-weight: 400;
    font-style: italic;
    font-size: 4rem;
    margin-bottom: 32px;
}

section {
   max-width: 1200px;
   width: 90%;
   margin: 0 auto;
   display: flex;
}

a {
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-size: 0.875rem;
    text-decoration: none;
}

nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 30px;
    background-color: #454545;
    background-color: rgba(69, 69, 69, 0.8);
    width: 470px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    padding: 6px;
    z-index: 100;
   
}

.subNav {
    display: flex;
    align-items: center;
    background-color: #363636;
    gap: 6px;
    padding: 6px;
    border-radius: 8px;
}

.subCta {
    background-color: #363636;
    border-radius: 8px;
    border: 1px solid #454545;
    color: #D9D9D9;
    width: 90px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease;
}

.subCta:hover {
   border: 1px solid #D9D9D9;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: #1F1F1F;
    height: 60px;
    width: 60px;
    transition: transform 0.3s ease;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.logo:hover {
    border: 1px solid #D9D9D9;
}

.logo:hover svg {
    animation: pulse 0.5s forwards; /* pulse on hover */
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2); /* grow slightly */
  }
  100% {
    transform: scale(1);
  }
}

.mainCta{
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: #D9D9D9;
    color: #000000;
    width: 92px;
    height: 60px;
    transition: background-color 0.3s ease;
}

.mainCta:hover {
   background-color: #9E9E9E;
}

/* Hero */

.hero {
    scroll-margin-top:100px;
    align-items: center;
   justify-content: center;
   flex-direction: column; 
    height: 100vh;
}

.myself {
    position: relative;
    cursor: pointer;
}

.myself::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background-image: url(/img/me.jpg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    /* border-radius: 100px; */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
     z-index: 1;
}

.myself:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px); /* optional subtle move */
}

/* Work */

.work {
    margin-bottom: 300px;
    scroll-margin-top: 200px;
}

.workgrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 60px;
    grid-row-gap: 60px;
    width: 100%;
}


.workCard {
    background-color: #424242;
    border: 1px solid #616161;
    border-radius: 12px;
    width: 100%;
    max-width: 570px;
    height: 420px;
    box-sizing: border-box;
    margin-bottom: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.workDisplay {
    background-color: white;
    height: 90%;
    width: 90%;
    padding: 0em;
    border-radius: 8px;
    will-change: transform;
    filter: grayscale(100%);
    transition: filter 0.4s ease, transform 0.3s ease;
}

.backgroundImg {
    background-repeat: no-repeat;
    background-size: cover;
}

.example1 {
    background-image: url('/img/example1.jpg');
}

.example2 {
    background-image: url('/img/example2.jpg');
}

.example3 {
    background-image: url('/img/example3.jpg');
}

.example4 {
    background-image: url('/img/example4.jpg');
}

.workHover:hover .workDisplay {
  transform: scale(1.025);
  filter: grayscale(0%);
}


.workSubText {
    font-weight: 200;
    color: #9E9E9E;
    line-height: normal;
}

.workHeadText {
   font-size: 1.125rem; 
}

.workSubText {
    font-weight: 200;
    color: #9E9E9E;
    line-height: normal;
    font-size: 1.125rem;
}


.workHover .workCard {
    transition: border-color 0.3s ease;
}

.workHover:hover .workCard {
    border: 1px solid #D9D9D9;
}

/* Process */

.process {
    scroll-margin-top: 200px;
    flex-direction: column;
    margin-bottom: 300px;
    font-size: 1.4rem;
}

.progressHeading {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.progressTitle {
    color: white;
    font-size: 2rem;
    line-height: normal;
}

.progressSubTitle {
    color: #E0E0E0;
    font-weight: 100;
    font-size: 1.5rem;
    line-height: normal;

}

.progressContaienr {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: repeat(3, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}

.progressText{ 
    font-size: 1.125rem;
    font-weight: 100;
}

.progressChildOne {
    border-top: 1px solid #424242;
    border-right: 1px solid #424242;
    border-bottom: 1px solid #424242;
    display: flex;
    align-items: center;
}

.progressChildTwo {
    border-top: 1px solid #424242;
    border-bottom: 1px solid #424242;
    display: flex;
    align-items: center;
    padding-left: 60px;
    padding-top: 32px;
    padding-bottom: 32px;
}

.progressChildThree {
    border-right: 1px solid #424242;
    border-bottom: 1px solid #424242;
    display: flex;
    align-items: center;
}

.progressChildFour {
    border-bottom: 1px solid #424242;
    display: flex;
    align-items: center;
    padding-left: 60px;
    padding-top: 32px;
    padding-bottom: 32px;
}

.progressChildFive {
    border-right: 1px solid #424242;
    border-bottom: 1px solid #424242;
    display: flex;
    align-items: center;
}

.progressChildSix {
    border-bottom: 1px solid #424242;
    display: flex;
    align-items: center;
    padding-left: 60px;
    padding-top: 32px;
    padding-bottom: 32px;
}

/* About */

.about {
    scroll-margin-top: 260px;
    flex-direction: column;
    margin-bottom: 300px;
}

.aboutText {
    display: flex;
    gap: 60px;
}

.aboutChild {
    width: 50%;
    font-weight: 100;
    font-size: 1.4rem;
}

.wife {
    position: relative;
    cursor: pointer;
    text-decoration: underline;
}

.wife::after {
    content: '';
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) rotate(-90deg);
    width: 300px;
    height: 300px;
    background-image: url(/img/wife.jpg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    /* border-radius: 100px; */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
     z-index: 1;
}

.wife:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px) rotate(-90deg); /* optional subtle move */
}

.honey {
    position: relative;
    cursor: pointer;
    text-decoration: underline;
}

.honey::after {
    content: '';
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background-image: url(/img/honey.jpg);
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
    /* border-radius: 100px; */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1;
}

.honey:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px); /* optional subtle move */
}

/* Contact */

.contact {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.contactContainer {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.contactHeadingBlock {
    margin-block: 1em;
}

.contactHeading {
    margin-bottom: 10px;
    text-align: center;
}

.contactText {
    font-weight: 100;
    font-size: 1.4rem;
    text-align: center;
    line-height: 1.75;
    max-width: 700px;
}

.linkedIn {
    border-radius: 8px;
    border: 1px solid #454545;
    background-color: #212121;
    transition: transform 0.3s ease;
    transition: border-color 0.3s ease;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.linkedIn:hover {
    border: 1px solid #D9D9D9;
}

.linkedIn:hover svg {
    animation: pulse 0.5s forwards; /* pulse on hover */

}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2); /* grow slightly */
  }
  100% {
    transform: scale(1);
  }
}

.contactCta{
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: #D9D9D9;
    color: #000000;
    width: 236px;
    height: 60px;
    transition: background-color 0.3s ease;
}

.contactCta:hover {
   background-color: #9E9E9E;
}

form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: rgb(66, 66, 66);
    width: fit-content;
    height: auto;
    box-sizing: border-box;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(97, 97, 97);
    border-radius: 12px;
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    transition: border-color 0.3s ease;
}

form:hover {
    border: 1px solid #D9D9D9;
}

.formGroup {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sideFields {
    display: flex;
    gap: 12px;
}


label {
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    line-height: auto;
    color: #E0E0E0;
    font-weight: 300;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: none;
}

input {
    padding: 1em;
    border-radius: 6px;
    border: 0;
}

textarea {
    padding: 1em;
    border-radius: 6px;
    border: 0;
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    line-height: auto;
    resize: none;
}


#submitBtn:disabled {
     background-color: #ccc; /* light gray */
    color: #666; /* dark gray text */
    cursor: not-allowed;   /* shows a “not-allowed” cursor */
    opacity: 0.6;           /* slightly transparent */
}


.submitBtn{
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: #D9D9D9;
    color: #000000;
    width: 92px;
    height: 60px;
    transition: background-color 0.3s ease;
    width: 100%;
    border: 0;
    cursor: pointer;
    margin-top: 12px;
}

.submitBtn:hover {
   background-color: #9E9E9E;
}
/* Toast */

.toast {
    position: fixed;
    bottom: -50px; /* start hidden above the viewport */
    left: 50%;
    transform: translateX(-50%);
    background-color: #43A047;
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 9999;
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    line-height: 1.5;
    color: #E0E0E0; 
    font-weight: 300;
}

.toast.show {
    bottom: 40px;
    opacity: 1;
}