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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #fff;

  background: radial-gradient(circle at 20% 30%, rgba(124,92,255,0.15), transparent 40%),
              radial-gradient(circle at 80% 20%, rgba(255,150,80,0.15), transparent 40%),
              #0d0d0d;
  scroll-behavior: smooth;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

h1, h2, h3 {
  font-weight: 600;
}

section {
  padding: 120px 8%;
  margin: 0;
  background: transparent;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 25px 2%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  opacity: 1;                      /* visible by default */
  transform: translateY(0);
  transition: transform 0.4s ease, opacity 0.3s ease, background 0.4s ease;
}

/* Scrolling — hide it */
.navbar.hidden {
  opacity: 0;
  transform: translateY(-100%);
}

/* Past the name — show with blur */
.navbar.scrolled {
  opacity: 1;
  transform: translateY(0);
  background: rgba(13, 13, 13, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#logo {
  font-size: 1.8rem;
  font-weight: 600;
  color: #8be9fd;
  letter-spacing: 1px;
}

nav {
  display: flex;
  margin: 0 auto;
  background-attachment: scroll;
}

.nav-links {
  display: flex;
  gap: 50px;
  margin-left: -200px;
  list-style: none;
  font-family: 'Space Mono', monospace;
}

.nav-links li {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.8;}

.nav-links span {
  font-size: 0.65rem;
  padding-left: 50px;
  color: #aaa;
  margin-bottom: 2px;
}

.nav-links a {
  text-decoration: none;
  color: #f7f5f5;
  font-size: 1.1rem;
  align-items: center;
   gap: 8px;
  transition: 0.3s;
}
.nav-links a:hover {
  color: #d90a0a;
}

#logo::after {
  content: "_";
  color: #7c5cff;
}

.navbar ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.navbar a {
  text-decoration: none;
  color: #ccc;
  transition: 0.3s;
}

.navbar a:hover {
  color: #fff;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 8%;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  position: relative;
  height: 100vh;
}

.hero-bg{
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
   width: 65%;
  height: 110%;        
  aspect-ratio: 1;  
  mix-blend-mode: normal;
  background-image: url('../assets/images/hero-bg.png'); 
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 45% 45% at center, black 25%, transparent 100%);
          mask-image: radial-gradient(ellipse 45% 45% at center, black 25%, transparent 100%);
  opacity: 0.55;     
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  bottom : 80px;
}

.hero-content h1 {
  font-size: 8rem;
}

.hero-content span {
  color: #7c5cff;
}

.hero-content h2 {
  margin: 10px 0;
  font-weight: 400;
  color: #aaa;
}

.hero-content p {
  margin: -10px auto;
  max-width: 1000px;
  font-size: larger;
  color: #faf6f6;
  font-weight: 600;
}


.hero-content {
  position: relative;
  z-index: 2;
}

.big-text {
  font-size: 7vw;          
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffffff;
  background: linear-gradient(135deg, #d4d5d6, #d1d0d2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 
    -1px -1px 0 rgb(205, 200, 200),
     1px -1px 0 black,
    -1px  1px 0 black,
     1px  1px 0 rgb(14, 12, 12);
  line-height: 1.1;
}

.btn {
  padding: 10px 22px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s;
  display: inline-block;
}

.primary {
  color: #fff;
}

.secondary {
  border: 1px solid #555;
  color: #ccc;
}

.secondary:hover {
  border-color: #fff;
  color: #fff;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.about {
  margin-top: -80px;   
  position: relative;
  z-index: 3;
  background: transparent;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 120px);
          mask-image: linear-gradient(to bottom, transparent 0%, black 120px);
}

.about p {
  max-width: 700px;
  color: #bbb;
  margin-top: 20px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 60px;
  height: 320px;
}

.expertise-card {
  backdrop-filter: blur(10px);
  background: transparent;
  align-items: center;
  display: flex;
  flex-direction: column;
  margin: 0px;
  padding: 20px;
  border: 3px solid rgb(143, 137, 137);
  border-radius: 5px;
}

.expertise-card:hover {
  transform: translateY(-8px);
  border-color: #b7a9ef;
}

.expertise-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 800;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  
}

.card-header h3 {
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  background: linear-gradient(135deg, #bcb4b9, #9279c6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.card-body p {
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  color: #fcf9f9;
  line-height: 1.9;
}

.card-body {
  padding: 22px;
  border-left: 3px solid rgba(255, 255, 255, 0.15);
}

.card-icon img {
  width: 50px;
  height: 50px;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.contact input,
.contact textarea {
  padding: 12px;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: #7c5cff;
}

.footer {
  text-align: center;
  padding: 20px;
  color: #777;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .navbar ul {
    display: none;
  }
}

.subtitle {
  /* margin-top: 2500px; */
  font-size: 1rem;
  letter-spacing: 4px;
  color: #cfcfcf;
  padding-top: 25px;
}

#featured{
  max-width: 60vw;
  max-height: 20vh;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  position: absolute;
  bottom: 130px;     
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: transparent;
  width: 100%;
  z-index: 2;
  transition: filter 0.4s ease;
  filter: grayscale(100%) brightness(0.7);
  animation-delay: 0.5s;
  animation-timing-function: ease-out;
}

#featured p{
  font-family: 'Space Mono', monospace;
  font-size: 1.25rem;
  letter-spacing: 4px;
  color: white;
  text-align: center;
}

#scrolllogo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: nowrap;
   background: transparent;
  padding: 0px 32px;
  border-radius: 12px;
  transition: box-shadow 0.4s ease, background 0.4s ease;
}

#scrolllogo img {
  height: 50px;        
  width: auto;
  object-fit: contain;  
  transition: filter 0.3s ease;
  filter: grayscale(10%) brightness(1.0);
  opacity: 2.5;
}

#featured:hover {
  filter: drop-shadow(0 0 20px rgba(124, 92, 255, 0.4))
          drop-shadow(0 0 60px rgba(124, 92, 255, 0.15));
  
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}


#featured:hover #scrolllogo img {
  filter: grayscale(0%) brightness(1);
}
#scrolllogo a {
  display: inline-flex;
  transition: transform 0.3s ease;
}

#scrolllogo a:hover {
  transform: scale(1.27);   
}

#scrolllogo img[alt="Laasya Logo"] {
  height: 65px;   
}
#scrolllogo img[alt="ITA Logo"] {
  height: 85px;   
}
#scrolllogo img[alt="GitHub Logo"] {
  height: 75px;   
}
/* Scroll indicator in 1st page to 2nd page */
.scroll-indicator {
  margin-top: -100px;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.field {
  width: 40px;
  height: 55px;
  border: 2px solid rgb(250, 248, 248);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}


.scroll {
  width: 6px;
  height: 10px;
  background: rgb(254, 254, 254);
  border-radius: 20px;
  animation: scrollBounce 1.6s ease-in-out infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(14px);
    opacity: 0.3;
  }
}
#expertise{
  margin-top: 100px;
}

#expertise h2{
  font-size: 4.5vw;          
  font-weight: 1500;
  letter-spacing: 2px;
  color: #ffffff;
  line-height: 1.1;
  text-align: center;
}

.work {
  padding: 120px 8% 8px 8%;
  position: relative;
}

.work-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.work-left {
  flex: 1;
  max-width: 480px;
}

.work-title {
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  margin-bottom: 32px;
}

.work-desc {
  font-family: 'Space Mono', monospace;
  font-size: 1.2rem;
  color: #faf1f1;
  line-height: 1.3;
  max-width: 480px;
}

.work-right {
  flex: 1;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 500px;
}

.phone-mockup {
  position: absolute;
  transform: rotate(-5deg);
  transform-origin: bottom center;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5));
}

.phone-mockup video {
  width: 750px;
  height: 600px;
  display: block;
}

.featured-project {
  position: absolute;
  justify-content: center;
  bottom: -20px;
  left: 60px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.arrow-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #f3ecec;
  font-size: 1.3rem;
  width: 180px;
  height: 140px;
}

.arrow-label img {
  width: 120px;
  height: 120px;
  margin-left: 50px;
}

.project-name {
  font-family: 'Space Mono', monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

.btn-view {
  display: inline-block;
  padding: 12px 28px;
  background: #7c5cff;
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  width: fit-content;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn-view:hover {
  background: #6a4de0;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .work-inner {
    flex-direction: column;
  }
  .work-right {
    width: 100%;
    min-height: 400px;
  }
  .phone-mockup {
    width: 200px;
    right: 20px;
  }
}
#filter-section{
  margin-left: 45px;
}
.filter-bar {
  display: flex;
}

.filter-bar h3 {
  font-family: 'Roboto Mono', monospace;
  font-size: 16px;
  color: #aaa;
  margin-bottom: 45px;
}

.filter-bar span {
  cursor: pointer;
  transition: 0.3s;
}

.filter-bar span:hover {
  color: rgb(3, 243, 247);
}

.grid-container {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 48px;
}

.grid {
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.grid--wide {
  grid-column: span 2;
}

.grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.grid--wide img {
  height: 320px;
}

.grid:hover img {
  transform: scale(1.03);
}

.card-content {
  padding: 20px 24px 24px;
}

.card-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.card-content p {
  font-size: 0.8rem;
  color: #888;
  text-transform: capitalize;
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--wide {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
  .grid--wide {
    grid-column: span 1;
  }
  .grid--wide img {
    height: 260px;
  }
}