:root {
  --header-height: 60px;
}

/* Make sizing predictable and avoid horizontal overflow */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

@media (min-width: 651px) {

body{
  background-image: url(BG.jpg);
    background-size: 70%;
    background-position:0 vw 10vh;
    background-repeat: no-repeat;
    background-color: black;
  margin: 0;
  font-family: "Stack sans text", sans serif;
}

header {
  display: flex;
  justify-content: space-between;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  width: 100%;
  height: 10vh;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: fixed;
  top: 0;
  z-index: 1000;
}

h1 {
  color: white;
  margin-left: 50px;
  display: inline-block;
  letter-spacing: -1.5px;
  font-size: 2.5rem;
  
}

.menu-toggle {
    display: none; /* Hidden on larger screens */
}

nav {
  
  height: 100%;
  justify-content: space-between;
  margin-top: 30px;
}

nav a {
  color: white;
  text-decoration: none;
  margin-right: 50px;
  font-size: 1.2rem;
  padding: 5px; /* ensure padding is always there */
  border: 1px solid transparent; /* border already exists */
  border-radius: 2rem;
  transition: all 0.5s ease; /* smooth hover animation */
  display: inline-block;
}

nav a:hover {
  color: rgb(199, 64, 64);
  border-color: white; /* just change color, not size */
  background-color: white;
  box-shadow: 1px 1px 25px rgb(199, 64, 64);
  transform: scale(1.1);
}

hero {
    position: absolute;
    display: block; /* unknown elements default inline in some browsers */
    color: white;
    left: 65%;
    top: 35%;
    transform: translate(-50%, -50%);
    /* constrain width so the hero doesn't stretch across the page */
    width: min(45vw, 480px);
    max-width: 90%;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    backdrop-filter: blur(8px);
    border: solid 1px rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

@keyframes ColorCycle {
  0% { color: rgb(242, 59, 59); }
  32% { color: rgb(242, 59, 59); }
  33% { color: rgb(68, 93, 234); }
  65% { color: rgb(68, 93, 234); }
  66% { color: rgb(92, 239, 76); }
  99% { color: rgb(92, 239, 76); }
}

hero h2 {
    
    font-size: 3.5rem;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.1;
    position: relative;
    padding-bottom: 15px;
}

hero h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, rgb(199, 64, 64) 0%, rgba(255,255,255,0.5) 100%);
    border-radius: 2px;
}

 hero span {
   /* animation: ColorCycle 8s infinite ease-in-out; */
   color: rgb(199, 64, 64);
   text-shadow: 0 0 20px rgba(199, 64, 64, 0.3);
} 

hero p span {
    display: inline-block;
    position: relative;
  }
  
  hero p span::after {
    content: 'here';
    animation: wordCycle 6s infinite;
  }
  
  @keyframes wordCycle {
  0%, 31% {
    content: 'Designer';
    color: rgb(199, 64, 64);
    opacity: 1;
  }
  32%, 33% {
    content: 'Designer';
    color: rgb(199, 64, 64);
    opacity: 0;
  }
  
  34%, 64% {
    content: 'Developer';
    color: rgb(57, 57, 225);
    opacity: 1;
  }
  65%, 66% {
    content: 'Developer';
    color: rgb(57, 57, 225);
    opacity: 0;
  }
  
  67%, 98% {
    content: 'Freelancer';
    color: rgb(87, 228, 99);
    opacity: 1;
  }
  99%, 100% {
    content: 'Freelancer';
    color: rgb(87, 228, 99);
    opacity: 0;
  }
}

hero p {
    font-size: 1.2rem;
    margin: 12px 0;
    line-height: 1.6;
    opacity: 0.9;
}
hero .Changer {
    font-size: 2.2rem;
    font-weight: bold;
    margin: 15px 0;
    display: block;  
}

hero .btn {
   display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    border: 2px solid white;
    border-radius: 2rem;
    
    color: white;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(199, 64, 64, 0.2);
}

hero .btn:hover {
    background-color: white;
    color: rgb(199, 64, 64);
    transform: scale(1.1);
    box-shadow: 1px 1px 30px rgb(199, 64, 64);
}

/* Scroll indicator styles */
.scroll-indicator {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.scroll-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.arrow {
    font-size: 2rem;
    transform: rotate(90deg);
    display: block;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.scroll-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.scroll-arrow:hover .arrow {
    transform: rotate(90deg) translateX(5px);
    opacity: 1;
    color: rgb(199, 64, 64);
}

.scroll-arrow:hover .scroll-text {
    opacity: 1;
    transform: translateY(0);
}

/* Add smooth scrolling to the whole page */
html {
    scroll-behavior: smooth;
}

.about-section {
    min-height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    margin-top: 100vh; /* Push it below the first viewport */
    padding: 6rem 2rem 2rem;
    color: white;
    position: relative;
    z-index: 1;
}

/* Add a gradient transition between sections */
.about-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.9));
    pointer-events: none;
}

/* Optional: Add some depth to the about section */
.about-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: rgb(199, 64, 64);
}

.about-section p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}




}
@media (max-width:650px) {
body {
        background-image: url(BG.jpg);
        background-size: 400%;
        background-position: 50% -30vh;
        background-repeat: no-repeat;
        background-color: #000;
        margin: 0;
        padding-top: 1vh;
        font-family: "Stack Sans Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
        color: #fff;
    }

header {
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.05); /* slight transparency */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.15);
  width: 100%;
  height: 10vh;
  padding: 0 1rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(4px);
  
}

.header-content{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

h1 {
  color: white;
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.5px;
  
}

.menu-toggle {
  background: none;
  border: none;
  width: 36 px;
  height: 36px;
  padding: 6px;
  position: relative;
  cursor: pointer;
  z-index: 2;
}

.hamburger {
  position: relative;
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: all 0.3s ease;

}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: white;
  transition: all 0.3s ease;
}

.hamburger::before { top: -8px; }
    .hamburger::after { bottom: -8px; }

.menu-toggle.active .hamburger {
  background: transparent;
}

.menu-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
  background: rgb(199, 64, 64);
}

.menu-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  bottom: 0;
  background: rgb(199, 64, 64);
}

nav {
  position: absolute;
  top: 10vh;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.65);
  padding: 1rem;
  display: none; /* hidden by default */
  flex-direction: column;
  gap: 0.75rem;
  backdrop-filter: blur(4px);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

  nav.active {
    display: flex; /* show when toggled */
  }

  nav a {
    color: white;
        text-decoration: none;
        font-size: 1rem;
        padding: 0.75rem 1rem;
        border: 1px solid white;
        border-radius: 2rem;
        transition: all 0.2s ease;
        text-align: center;
  }

nav a:hover,
nav a:focus {
  color: rgb(199, 64, 64);
  border: 1px solid white;
  background-color: white;
  box-shadow: 1px 1px 25px rgb(199, 64, 64);
  transform: scale(1.02);
}


hero {
    position: absolute;
    display: block;
    color: white;
    left: 50%;
    top: 70%;
    transform: translate(-50%, -50%);
    /* mobile: mostly full width but constrained so it doesn't look stretched */
    width: min(92%, 520px);
    max-width: 92%;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    backdrop-filter: blur(8px);
    border: solid 1px rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

@keyframes ColorCycle {
  0% { color: rgb(242, 59, 59); }
  32% { color: rgb(242, 59, 59); }
  33% { color: rgb(68, 93, 234); }
  65% { color: rgb(68, 93, 234); }
  66% { color: rgb(92, 239, 76); }
  99% { color: rgb(92, 239, 76); }
}

hero h2 {
    
    font-size: 2.5rem;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.1;
    position: relative;
    padding-bottom: 15px;
}

hero h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, rgb(199, 64, 64) 0%, rgba(255,255,255,0.5) 100%);
    border-radius: 2px;
}

 hero span {
   /* animation: ColorCycle 8s infinite ease-in-out; */
   color: rgb(199, 64, 64);
   text-shadow: 0 0 20px rgba(199, 64, 64, 0.3);
} 

hero p span {
    display: inline-block;
    position: relative;
  }
  
  hero p span::after {
    content: 'here';
    animation: wordCycle 6s infinite;
  }
  
  @keyframes wordCycle {
  0%, 31% {
    content: 'Designer';
    color: rgb(199, 64, 64);
    opacity: 1;
  }
  32%, 33% {
    content: 'Designer';
    color: rgb(199, 64, 64);
    opacity: 0;
  }
  
  34%, 64% {
    content: 'Developer';
    color: rgb(57, 57, 225);
    opacity: 1;
  }
  65%, 66% {
    content: 'Developer';
    color: rgb(57, 57, 225);
    opacity: 0;
  }
  
  67%, 98% {
    content: 'Freelancer';
    color: rgb(87, 228, 99);
    opacity: 1;
  }
  99%, 100% {
    content: 'Freelancer';
    color: rgb(87, 228, 99);
    opacity: 0;
  }
}

hero p {
    font-size: 1.2rem;
    margin: 12px 0;
    line-height: 1.6;
    opacity: 0.9;
}
hero .Changer {
    font-size: 1.7rem;
    font-weight: bold;
    margin: 15px 0;
    display: block;  
}

hero .btn {
   display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    border: 2px solid white;
    border-radius: 2rem;
    
    color: white;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(199, 64, 64, 0.2);
}

hero .btn:hover {
    background-color: white;
    color: rgb(199, 64, 64);
    transform: scale(1.1);
    box-shadow: 1px 1px 30px rgb(199, 64, 64);
}

.scroll-indicator {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.scroll-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.arrow {
    font-size: 2rem;
    transform: rotate(90deg);
    display: block;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.scroll-text {
    display: none;
}

.scroll-arrow:hover .arrow {
    transform: rotate(90deg) translateX(5px);
    opacity: 1;
    color: rgb(199, 64, 64);
}

.scroll-arrow:hover .scroll-text {
    opacity: 1;
    transform: translateY(0);
}

/* Add smooth scrolling to the whole page */
html {
    scroll-behavior: smooth;
}

.about-section {
    min-height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    margin-top: 100vh; /* Push it below the first viewport */
    padding: 6rem 2rem 2rem;
    color: white;
    position: relative;
    z-index: 1;
}


}