* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

:root {
  --bg-color:#021024;
  --second-bg-color: #02142d;
  --text-color: white;
  --main-color: #f5f1e8; /* Ivory */
  --accent-color: #00ffee; /* Blue */
}

html {
  font-size: 60%;
  overflow-x: hidden;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 12% 2rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}

.logo{
  display:flex;
  align-items: baseline;
  gap: 12px;
}

.logo .wordmark{
  height: 65px;
  width: auto;
  display:block;
}

.logo .studio{
  font-size: 1.6rem;
  letter-spacing: .2rem;
  opacity: .85;
}

/* ---------------- Navbar ---------------- */
.navbar a {
  position: relative;
  font-size: 1.8rem;
  color: var(--text-color);
  margin-left: 4rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 3px;
  background: var(--main-color);
  transition: width 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
  color: var(--main-color);
}

.navbar a:hover::after,
.navbar a.active::after {
  width: 100%;
}

.navbar a.active {
  animation: glow 3s ease-in-out infinite alternate;
}
/* ---------------------------------------- */

#menu-icon {
  font-size: 3.6rem;
  color: var(--main-color);
  display: none;
}

/* Removed glow animation */

.home {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.home::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background: linear-gradient(to right,
    transparent 0,
    rgba(245,245,240,.08) 0,
    rgba(245,245,240,.08) 1px,
    transparent 1px
  );
  background-size: 120px 100%;
}

.home::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 6vw; right: 6vw;
  border-left: 1px solid rgba(245,245,240,.10);
  border-right: 1px solid rgba(245,245,240,.10);
  pointer-events: none;
}

section {
  min-height: auto;
  padding: 10rem 12% 10rem;
}

.home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15rem;
}

.home-content {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  text-align: left;
  justify-content: center;
  margin-top: 3rem;
}

span {
  color: var(--main-color);
}

.logo span {
  color: var(--main-color);
}

.home-content h3 {
  margin-bottom: 2rem;
  margin-top: 1rem;
  font-size: 3.5rem;
}

.home-content h1 {
  font-size: 6rem;
  font-weight: 600;
  margin-top: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.home-img {
  display: none;
}

.home-content p {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.8;
  max-width: 1000px;
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4.5rem;
  height: 4.5rem;
  background: transparent;
  border: 2px solid var(--main-color);
  font-size: 2.5rem;
  border-radius: 50%;
  color: var(--main-color);
  margin: 3rem 1.5rem 3rem 0;
  transition: 0.3s ease-in-out;
}

.social-icons a:hover {
  color: var(--text-color);
  transform: scale(1.3) translateY(-5px);
  box-shadow: 0 0 25px var(--main-color);
  background-color: var(--main-color);
}

.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  background: var(--main-color);
  box-shadow: 0 0 25px var(--main-color);
  border-radius: 4rem;
  font-size: 1.6rem;
  color: black;
  border: 2px solid transparent;
  letter-spacing: 0.1rem;
  font-weight: 600;
  transition: 0.3s ease-in-out;
  cursor: pointer;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px var(--main-color);
}

.btn-group {
  display: flex;
  align-items: center;
  gap: 1.5em;
}

.btn-group a:nth-of-type(2) {
  background-color: black;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  box-shadow: 0 0 25px transparent;
}

.btn-group a:nth-of-type(3) {
  background-color: black;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  box-shadow: 0 0 25px transparent;
}

.btn-group a:nth-of-type(2):hover {
  box-shadow: 0 0 25px var(--main-color);
  background-color: var(--main-color);
  color: black;
}

.btn-group a:nth-of-type(3):hover {
  box-shadow: 0 0 25px var(--main-color);
  background-color: var(--main-color);
  color: black;
}

/* ====================== النص المتحرك ===================== */
.text-animation {
  font-size: 34px;
  font-weight: 600;
  min-width: 280px;
}

.text-animation span {
  position: relative;
}

.text-animation span::before {
  content: "Graphic Designer";
  color: var(--main-color);
  animation: words 20s infinite;
}

.text-animation span::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--bg-color); /* الخلفية زي خلفية الموقع */
  border-left: 3px solid var(--main-color);
  right: 0;
  animation: cursor 0.6s infinite, typing 20s steps(20) infinite;
}

@keyframes cursor {
  to {
    border-left: 3px solid transparent;
  }
}

@keyframes words {
  0%,25%   { content: "Brand Identity Studio"; }
  26%,50%  { content: "Visual Identity Systems"; }
  51%,75%  { content: "Strategy + Design"; }
  76%,100% { content: "Built with Vision."; }
}

@keyframes typing {
  0%,
  10%,
  30%,
  50%,
  70%,
  90%   { width: 0 }
  5%,
  20%,
  40%,
  60%,
  80%,
  100%  { width: 100% }
}
.heading{
font-size: 8rem;
text-align: center;
margin: 5rem 0;
}
.experience{
padding: 100px 15px;
background: var(--second-bg-color);
}
.experience h2{
margin-bottom: 5rem;
}
.timeline-items{
max-width: 1200px;
margin: auto;
display: flex;
flex-wrap: wrap;
position: relative;
}
.timeline-items::before{
content:"";
position: absolute;
width: 5px;
height: 100%;
background-color: var(--main-color);
left: calc(50% - 1px);
}
.timeline-item{
margin-bottom: 40px;
width: 100%;
position: relative;
}
.timeline-item:last-child{
margin-bottom: 0;
}
.timeline-item:nth-child(odd){
padding-right: calc(50% + 30px);
text-align: right;
}
.timeline-item:nth-child(even){
padding-left: calc(50% + 30px);
}
.timeline-dot{
height: 21px;
width: 21px;
background-color: var(--main-color);
box-shadow: 0 0 25px var(--main-color),
            0 0 50px var(--main-color);
position: absolute;
left: calc(50% - 8px);
border-radius: 50%;
top: 10px;
}
.timeline-date{
font-size: 20px;
font-weight: 800;
color: white;
margin: 6px 0 15px;
}
.timeline-content{
background-color: var(--bg-color);
border: 3px solid var(--main-color);
padding: 30px 50px;
border-radius: 4rem;
box-shadow: 0 0 10px var(--main-color);
cursor: pointer;
transition: 0.3s ease-in-out;
}
.timeline-content:hover{
transform: scale(1.05);
box-shadow: 0 0 25px var(--main-color);
}
.timeline-content h3{
font-size: 20px;
color: white;
margin: 0 0 10px;
font-weight: 500;
}
.timeline-content p{
color: white;
font-size: 16px;
font-weight: 300;
}
::-webkit-scrollbar{
width: 15px;
}
::-webkit-scrollbar-thumb{
background-color: var(--main-color);
}
::-webkit-scrollbar-track{
background-color: var(--bg-color);
width: 50px;
}
/* ==================== MODERN SERVICES SECTION ==================== */
.services {
  background: var(--bg-color);
  padding: 10rem 0;
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 70%, rgba(0, 255, 238, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.services h2 {
  margin-bottom: 6rem;
  color: var(--text-color);
  text-align: center;
  font-size: 4.5rem;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(0, 255, 238, 0.3);
}

.services-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  padding: 0 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.service-box {
  background: linear-gradient(135deg, rgba(12, 18, 29, 0.8), rgba(12, 18, 29, 0.9));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 238, 0.15);
  border-radius: 1.8rem;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 238, 0.1), transparent);
  transition: left 0.6s ease;
}

.service-box:hover::before {
  left: 100%;
}

.service-box:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 15px 35px rgba(0, 255, 238, 0.25);
  border-color: var(--main-color);
  background: linear-gradient(135deg, rgba(12, 18, 29, 0.95), rgba(12, 18, 29, 0.98));
}

.service-box i {
  font-size: 4.5rem;
  color: var(--main-color);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  display: block;
}

.service-box:hover i {
  transform: scale(1.15) rotate(5deg);
  text-shadow: 0 0 20px var(--main-color);
}

.service-info {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-info h4 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.service-info p {
  font-size: 1.5rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  transition: color 0.3s ease;
  flex: 1;
}

.service-box .btn {
  background: transparent;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  padding: 1rem 2.2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(10px);
  margin-top: auto;
}

.service-box:hover .btn {
  opacity: 1;
  transform: translateY(0);
  background: rgba(0, 255, 238, 0.1);
}

.service-box .btn:hover {
  background: var(--main-color);
  color: var(--bg-color);
  box-shadow: 0 0 20px var(--main-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .services-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .services {
    padding: 8rem 0;
  }
  
  .services h2 {
    font-size: 3.5rem;
    margin-bottom: 4rem;
  }
  
  .services-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.5rem;
  }
  
  .service-box {
    padding: 2.5rem 2rem;
    min-height: 350px;
  }
  
  .service-info h4 {
    font-size: 2.2rem;
  }
  
  .service-info p {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .services h2 {
    font-size: 3rem;
  }
  
  .service-box {
    padding: 2rem 1.5rem;
    min-height: 320px;
  }
  
  .service-box i {
    font-size: 3.8rem;
  }
  
  .service-info h4 {
    font-size: 2rem;
  }
}


/* Skills Section Styling - Modernized */
.skills {
  background: var(--second-bg-color);
  color: var(--text-color);
  padding-bottom: 10rem; /* Ensure enough space at the bottom */
}

.skills h2 {
  margin-bottom: 5rem;
  text-align: center;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Slightly wider min-width */
  gap: 3rem; /* Increased gap for better spacing */
  padding: 0 2rem;
  max-width: 1200px; /* Max width for container */
  margin: 0 auto; /* Center the container */
}

.skill-box {
  background-color: var(--bg-color); /* Dark background */
  border-radius: 1.5rem;
  padding: 3rem; /* Increased padding */
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.08); /* Softer, more diffused glow */
  display: flex; /* Use flexbox for internal alignment */
  flex-direction: column;
  justify-content: space-between; /* Push skill name up, bar down */
}

.skill-box:hover {
  transform: translateY(-15px); /* More pronounced lift effect */
  box-shadow: 0 0 40px var(--main-color); /* Stronger, but still diffused glow */
}

.skill-info h4 {
  font-size: 2.8rem; /* Slightly larger font for skill name */
  font-weight: 700;
  margin-bottom: 2rem; /* More space below title */
  color: var(--text-color);
}

.skill-bar {
  background-color: rgba(255, 255, 255, 0.08); /* Very subtle background for the bar track */
  border-radius: 10px;
  height: 25px; /* Taller bar */
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5); /* Inner shadow for depth */
}

.skill-progress {
  background: linear-gradient(90deg, var(--main-color), #00aaff); /* Gradient for modern look */
  height: 100%;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  box-shadow: 0 0 15px var(--main-color); /* Stronger glow for the filled bar */
  width: 0%; /* Start at 0% for animation */
  transition: width 1.5s ease-out; /* Slower, smoother animation */
}

.skill-progress.animate {
  /* This class will be added by JS to trigger animation */
  width: var(--target-width); /* Use CSS variable for target width */
}

.skill-progress span {
  color: var(--bg-color);
  font-size: 1.4rem; /* Larger percentage text */
  font-weight: 700; /* Bolder percentage text */
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5); /* Slight shadow for readability */
}

/* Media Queries for Responsiveness */
@media (max-width: 991px) {
  .skills-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
  .skill-box {
    padding: 2.5rem;
  }
  .skill-info h4 {
    font-size: 2.5rem;
  }
  .skill-progress span {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .skills-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    padding: 0 1rem;
  }
  .skill-box {
    padding: 2rem;
  }
  .skill-info h4 {
    font-size: 2.2rem;
  }
  .skill-progress span {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .skills-container {
    grid-template-columns: 1fr;
  }
}

/* Projects Section Styling - Title disappears on hover */
.projects {
  background: var(--bg-color);
  color: var(--text-color);
  padding-bottom: 10rem;
}

.projects h2 {
  margin-bottom: 5rem;
  text-align: center;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-box {
  background-color: var(--second-bg-color);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.08);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer; /* Indicates this is interactive */
}

.project-box:hover {
  transform: translateY(-15px);
  box-shadow: 0 0 40px var(--main-color);
}

.project-img-container {
  overflow: hidden;
  position: relative;
  height: 400px; /* Back to original height */
}

.project-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.project-box:hover img {
  transform: scale(1.1);
}

.project-title {
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
  padding: 2rem;
  color: var(--text-color);
  margin: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  /* Removed background-color and z-index */
}

.project-box:hover .project-title {
  opacity: 0; /* Title fades out on hover */
  transform: translateY(-10px); /* Optional: slight upward movement */
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Now covers entire box including title area */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 255, 238, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  padding: 2rem;
  box-sizing: border-box;
}

.project-box:hover .project-overlay {
  opacity: 1;
  visibility: visible;
}

.project-info {
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.5s ease 0.2s;
  width: 100%;
}

.project-box:hover .project-info {
  transform: translateY(0);
}

.project-info h4 { /* Adding title inside overlay too */
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}

.project-info p {
  font-size: 1.6rem;
  line-height: 1.6;
  color: #fff;
  margin-bottom: 2.5rem;
}

.project-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Secondary button style for overlay */
.project-overlay .btn.btn-secondary {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.project-overlay .btn.btn-secondary:hover {
  background-color: #fff;
  color: var(--bg-color);
  box-shadow: 0 0 15px #fff;
}

.project-overlay .btn {
  box-shadow: 0 0 15px var(--main-color);
}

/* Media Queries for Responsiveness */
@media (max-width: 991px) {
  .projects-container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
  }
  .project-img-container {
    height: 230px;
  }
  .project-title {
    font-size: 2.2rem;
    padding: 1.8rem;
  }
  .project-info h4 {
    font-size: 2.4rem;
  }
  .project-info p {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .projects-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    padding: 0 1rem;
    gap: 2rem;
  }
  .project-img-container {
    height: 210px;
  }
  .project-title {
    font-size: 2rem;
    padding: 1.5rem;
  }
  .project-info h4 {
    font-size: 2.2rem;
  }
  .project-info p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
  }
  .project-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .projects-container {
    grid-template-columns: 1fr;
  }
  .project-overlay {
    position: relative;
    opacity: 1;
    visibility: visible;
    background: var(--second-bg-color);
    height: auto;
    padding: 1.5rem;
  }
  .project-title {
    opacity: 0; /* Hide static title on mobile */
    display: none;
  }
  .project-info {
    transform: translateY(0);
  }
  .project-info h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
  }
  .project-info p {
    color: var(--text-color);
    margin-bottom: 2rem;
  }
  .project-overlay .btn,
  .project-overlay .btn.btn-secondary {
    color: var(--text-color);
    border-color: var(--main-color);
  }
  .project-overlay .btn.btn-secondary {
    background-color: transparent;
  }
  .project-overlay .btn.btn-secondary:hover {
    background-color: var(--main-color);
    color: black;
  }
}



.contact{
  background-color: var(--bg-color);
}
.contact h2{
  margin-bottom: 3rem;
  color: white;
}
.contact form{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin: 5rem auto;
  text-align: center;
}
.contact form .input-box{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.contact form .input-box input,
.contact form textarea{
  width: 100%;
  padding: 2.5rem;
  font-size: 1.8rem;
  color: var(--text-color);
  background: var(--second-bg-color);
  border-radius: 2rem;
  border: 2px solid var(--main-color);
  margin: 1.5rem 0;
  resize: none;
}
.contact form .btn{
  margin-top: 2rem;
}

.footer {
  position: relative;
  bottom: 0;
  width: 100%;
  padding: 40px 0;
  background-color: var(--second-bg-color);
}
.footer .social {
  text-align: center;
  padding-bottom: 25px;
  color: var(--main-color);
}
.footer .social a{
  font-size: 25px;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  width: 42px;
  height: 42px;
  line-height: 42px;
  display: inline-block;
  text-align: center;
  border-radius: 50%;
  margin: 0 10px;
  transition: 0.3s ease-in-out;
}
.footer .social a:hover{
  transform: scale(1.2) translateY(-10px);
  background-color: var(--main-color);
  color: black;
  box-shadow: 0 0 25px var(--main-color);
}
.footer ul{
  margin-top: 0;
  padding: 0;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 0;
  text-align: center;
}
.footer ul li a{
  color: white;
  border-bottom: 3px solid transparent;
  transition: 0.3s ease-in-out;
}
.footer ul li a:hover{
  border-bottom: 3px solid var(--main-color);
}
.footer .built-with {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--main-color);
  margin: 2rem 0 1rem;
  letter-spacing: 0.1rem;
  opacity: 0.9;
}

.footer .copyright{
  margin-top: 50px;
  text-align: center;
  font-size: 16px;
  color: white;
}

/* ===== Lock + Hide page until intro finishes ===== */
body.intro-lock{
  overflow: hidden;
}

body.intro-lock main,
body.intro-lock section{
  opacity: 0;
  transform: translateY(8px);
}

/* smooth reveal when intro is done */
body.intro-done main,
body.intro-done section{
  opacity: 1;
  transform: none;
  transition: opacity .6s ease, transform .6s ease;
}

.contact-sub{
  font-size: 1.9rem;
  line-height: 1.6;
  color: rgba(245,241,232,.8);
  margin: 1.2rem auto 3.5rem;
  max-width: none;
}

.contact-sub.center{
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 768px){
  .contact-sub.center{
    white-space: normal;
    padding: 0 2rem;
  }
}
@media (max-width: 1285px){
html{
font-size: 55%;
}
.services-container{
padding-bottom: 7rem;
grid-template-columns: repeat(2,1fr);
margin: 0 5rem;
}
}
@media (max-width:991px){
header {
padding: 2rem 3%;
}
section{
padding: 10rem 3% 2rem;
}
.timeline-items::before{
left: 7px;
}
.timeline-item:nth-child(odd) {
padding-right: 0;
text-align: left;
}
.timeline-item:nth-child(odd),
.timeline-item:nth-child(even) {
padding-left: 37px;
}
.timeline-dot{
left: 0;
}
.services{
padding-bottom: 7rem;
}
.testimonials .wrapper{
grid-template-columns: repeat(1,1);
}
.contact form{
flex-direction: column;
}
.footer{
padding: 2rem 3%;
}
}
@media (max-width:895px) {
#menu-icon{
display: block;
}
.navbar{
position: absolute;
top: 100%;
right: 0;
width: 50%;
padding: 1rem 3%;
background: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(20px);
border-bottom-left-radius: 2rem;
border-left: 2px solid var(--main-color);
border-bottom: 2px solid var(--main-color);
display: none;
}
.navbar.active{
display: block;
}
.navbar a{
display: block;
font-size: 2rem;
margin: 3rem 0;
color: white;
}
.home{
flex-direction: column-reverse;
margin: 5rem 4rem;
}
.home-content h3{
font-size: 2.6rem;
}
.home-content h1{
font-size: 8rem;
margin-top: 3rem;
}
.home-content p{
max-width: 600px;
margin: 0 auto;
}
.home-img img{
width: 56vw;
height: 56vw;
}
.services h2{
margin-bottom: 3rem;
}
.services-container{
grid-template-columns: repeat(1,1);
}
}
/* Intro Screen */
#intro {
  position: fixed;
  inset: 0;
  background: #021024;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: clip-path 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.intro-inner {
  text-align: center;
  position: relative;
  animation: backgroundScale 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 1.5s;
}

.intro-mark {
  width: 320px;
  max-width: 60vw;
  height: auto;
  opacity: 0;
  transform: scale(0.95);
  animation: markIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.intro-line {
  width: 0;
  height: 1px;
  background: rgba(245,241,232,.6);
  margin: 16px auto;
  animation: lineIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.4s;
}

.intro-wordmark {
  width: 200px;
  max-width: 40vw;
  height: auto;
  opacity: 0;
  transform: translateY(10px);
  animation: wordmarkIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards,
             splitLeft 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.7s, 2s;
}

.intro-tagline {
  opacity: 0;
  letter-spacing: .3rem;
  font-size: 1.2rem;
  margin-top: 10px;
  animation: fadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards,
             splitRight 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 1s, 2s;
  color: rgba(245,241,232,.8);
}

@keyframes markIn {
  to { opacity: 1; transform: scale(1); }
}

@keyframes lineIn {
  to { width: 120px; }
}

@keyframes wordmarkIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes backgroundScale {
  to { transform: scale(1.02); }
}

@keyframes splitLeft {
  to { transform: translateX(-50px); }
}

@keyframes splitRight {
  to { transform: translateX(50px); }
}

#intro.hide {
  clip-path: circle(0% at center);
  pointer-events: none;
}

/* Add this new class at the end of your style.css */
.header.hidden {
  transform: translateY(-100%);
  transition: transform 0.3s ease-out;
}

/* AMAVI Rebrand CSS Patch */

.eyebrow{
  font-size: 1.3rem;
  letter-spacing: .28rem;
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: 1.6rem;
}

.subhead{
  font-size: 2.2rem;
  font-weight: 600;
  opacity: .9;
  margin-top: 1.2rem;
  margin-bottom: 2rem;
}

.hairline{
  width: 72px;
  height: 1px;
  background: rgba(245,241,232,.25);
  margin: 2.2rem 0 0;
}

.scroll-indicator{
  margin-top: 4rem;
  font-size: 1.2rem;
  letter-spacing: .25rem;
  opacity: .55;
}

.logo span {
  text-shadow: none;
  animation: none;
}

.navbar a.active {
  animation: none;
}

@keyframes glow {
  /* Removed */
}

.home-img img {
  box-shadow: none;
}

.home-img img:hover {
  box-shadow: none;
}

.social-icons a {
  border-color: var(--main-color);
  color: var(--main-color);
  box-shadow: none;
}

.social-icons a:hover {
  box-shadow: none;
  background-color: var(--accent-color);
  color: #000;
  border-color: var(--accent-color);
}

.btn {
  background: var(--main-color);
  box-shadow: none;
  color: black;
}

.btn:hover {
  box-shadow: none;
}

.btn-group a:nth-of-type(1) {
  background: var(--accent-color);
  color: #000;
  border: none;
}

.btn-group a:nth-of-type(1):hover {
  background: var(--accent-color);
}

.btn-group a:nth-of-type(2) {
  background-color: transparent;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  box-shadow: none;
}

.btn-group a:nth-of-type(2):hover {
  box-shadow: none;
  background-color: var(--main-color);
  color: black;
}

.timeline-dot {
  box-shadow: none;
}

.timeline-content {
  border-color: var(--main-color);
  box-shadow: none;
}

.timeline-content:hover {
  box-shadow: none;
}

.service-box {
  border-color: rgba(255, 255, 240, 0.15);
  box-shadow: none;
}

.service-box:hover {
  box-shadow: 0 10px 25px rgba(255, 255, 240, 0.15);
  border-color: var(--main-color);
}

.service-box i {
  text-shadow: none;
}

.service-box .btn {
  border-color: var(--main-color);
  color: var(--main-color);
}

.service-box .btn:hover {
  background: var(--main-color);
  color: black;
  box-shadow: none;
}

.skill-box {
  box-shadow: none;
}

.skill-box:hover {
  box-shadow: 0 0 20px rgba(255, 255, 240, 0.1);
}

.skill-progress {
  box-shadow: none;
}

.skill-progress span {
  display: none; /* Hide skill % text */
}

.project-box {
  box-shadow: none;
}

.project-box:hover {
  box-shadow: 0 0 20px rgba(255, 255, 240, 0.1);
}

.project-overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(245, 245, 240, 0.1));
}

.project-overlay .btn {
  box-shadow: none;
}

.project-overlay .btn.btn-secondary {
  border-color: #fff;
}

.project-overlay .btn.btn-secondary:hover {
  box-shadow: none;
}

.footer .social a {
  border-color: var(--main-color);
  color: var(--main-color);
  box-shadow: none;
}

.footer .social a:hover {
  background-color: var(--main-color);
  color: black;
  box-shadow: none;
}

.footer ul li a:hover {
  border-bottom-color: var(--main-color);
}

/* =========================
   Case Studies (Home)
========================= */

.section-head{
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.heading-left{
  text-align: left;
  margin: 0 0 1.2rem;
  font-size: 6.2rem;
  line-height: 1.05;
}

.section-sub{
  font-size: 1.7rem;
  color: rgba(245,241,232,.75);
  max-width: 70ch;
}

.case-grid{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.2rem;
}

.case-card{
  grid-column: span 6;
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid rgba(245,241,232,.18);
  border-radius: 2.2rem;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.case-card:hover{
  transform: translateY(-6px);
  border-color: rgba(245,241,232,.35);
  background: rgba(255,255,255,0.03);
}

.case-thumb{
  height: 320px;
  overflow: hidden;
  background: #0b0b0b;
}

.case-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .5s ease;
  display:block;
}

.case-card:hover .case-thumb img{
  transform: scale(1.07);
}

.case-meta{
  padding: 2.2rem 2.2rem 2.4rem;
}

.case-top{
  display:flex;
  justify-content: space-between;
  align-items:center;
  margin-bottom: 1.2rem;
  gap: 1rem;
}

.case-tag{
  font-size: 1.2rem;
  letter-spacing: .22rem;
  text-transform: uppercase;
  color: rgba(245,241,232,.75);
}

.case-year{
  font-size: 1.2rem;
  color: rgba(245,241,232,.6);
}

.case-title{
  font-size: 2.6rem;
  margin-bottom: .8rem;
}

.case-title{
  color: var(--accent-color);
}

.case-desc{
  font-size: 1.5rem;
  line-height: 1.7;
  color: rgba(245,241,232,.75);
  margin-bottom: 1.8rem;
}

.case-cta{
  display:flex;
  align-items:center;
  justify-content: space-between;
  font-size: 1.5rem;
  color: var(--main-color);
}

.case-cta .arrow{
  font-size: 1.9rem;
}

/* Responsive */
@media (max-width: 900px){
  .case-card{ grid-column: span 12; }
  .heading-left{ font-size: 5.2rem; }
}

/* =========================
   Case Study Page
========================= */

.case-page{
  padding-top: 10rem;
}

.case-wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.case-hero{
  padding: 10rem 0 6rem;
}

.case-hero .case-wrap{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 4rem;
  align-items: center;
}

.case-eyebrow{
  font-size: 1.2rem;
  letter-spacing: .28rem;
  text-transform: uppercase;
  color: rgba(245,241,232,.7);
  margin-bottom: 1.2rem;
}

.case-h1{
  font-size: 6.2rem;
  line-height: 1.05;
  margin-bottom: 1.6rem;
}

.case-lead{
  font-size: 1.8rem;
  line-height: 1.8;
  color: rgba(245,241,232,.78);
  max-width: 62ch;
}

.case-facts{
  margin-top: 2.2rem;
  display:grid;
  gap: 1.2rem;
  max-width: 60ch;
}

.fact{
  display:flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(245,241,232,.14);
  border-radius: 1.4rem;
  background: rgba(255,255,255,0.02);
}

.fact-k{
  color: rgba(245,241,232,.65);
  font-size: 1.4rem;
  letter-spacing: .12rem;
  text-transform: uppercase;
}

.fact-v{
  color: rgba(245,241,232,.9);
  font-size: 1.5rem;
  text-align: right;
}

.case-hero-actions{
  margin-top: 2.6rem;
  display:flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.btn-outline{
  background: transparent !important;
  border: 2px solid var(--main-color) !important;
  color: var(--main-color) !important;
}

.case-hero-media{
  border-radius: 2.4rem;
  overflow:hidden;
  border: 1px solid rgba(245,241,232,.16);
  background: #0b0b0b;
}

.case-hero-media img{
  width:100%;
  height: 520px;
  object-fit: cover;
  display:block;
}

.case-section{
  padding: 6rem 0;
}

.case-two{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.2rem;
}

.case-block{
  border: 1px solid rgba(245,241,232,.14);
  border-radius: 2rem;
  padding: 2.4rem;
  background: rgba(255,255,255,0.02);
}

.case-h2{
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

.case-p{
  font-size: 1.6rem;
  line-height: 1.8;
  color: rgba(245,241,232,.78);
}

.case-muted{
  color: rgba(245,241,232,.6);
}

.palette{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 2rem;
}

.swatch{
  border: 1px solid rgba(245,241,232,.14);
  border-radius: 1.8rem;
  overflow:hidden;
  background: rgba(255,255,255,0.02);
}

.swatch-chip{
  height: 90px;
}

.swatch-meta{
  display:flex;
  justify-content: space-between;
  padding: 1.4rem 1.6rem;
  font-size: 1.4rem;
  color: rgba(245,241,232,.8);
}

.gallery{
  margin-top: 2.2rem;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.6rem;
}

.g-item{
  grid-column: span 4;
  border: 1px solid rgba(245,241,232,.14);
  border-radius: 1.8rem;
  overflow:hidden;
  background: rgba(255,255,255,0.02);
  cursor:pointer;
  padding: 0;
}

.g-wide{
  grid-column: span 8;
}

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

.g-wide img{ height: 260px; }

.g-item:hover img{
  transform: scale(1.06);
}

.case-next{
  padding: 5rem 0 9rem;
}

.next-wrap{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  border: 1px solid rgba(245,241,232,.14);
  border-radius: 2.2rem;
  padding: 2.6rem;
  background: rgba(255,255,255,0.02);
}

.next-title{
  font-size: 2.4rem;
  margin-top: .6rem;
}

/* Lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 2rem;
}

.lightbox.show{ display:flex; }

.lightbox img{
  max-width: min(1100px, 96vw);
  max-height: 86vh;
  border-radius: 1.4rem;
  border: 1px solid rgba(245,241,232,.18);
}

.lb-close{
  position: absolute;
  top: 22px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(245,241,232,.2);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-size: 2.8rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 980px){
  .case-hero .case-wrap{ grid-template-columns: 1fr; }
  .case-h1{ font-size: 5.2rem; }
  .case-hero-media img{ height: 420px; }
  .case-two{ grid-template-columns: 1fr; }
  .palette{ grid-template-columns: 1fr; }
  .g-item{ grid-column: span 12; }
  .g-wide{ grid-column: span 12; }
  .g-item img{ height: 240px; }
}

/* Header starts invisible until intro transition completes */
.header {
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.header.ready {
  opacity: 1;
  pointer-events: auto;
}

/* Hide the real header wordmark while the flying clone animates */
.header .wordmark {
  opacity: 0;
  transition: opacity .2s ease;
}

.header.ready .wordmark {
  opacity: 1;
}

/* Optional: make intro hide not kill the animation timing */
#intro.hide {
  clip-path: circle(0% at center);
  pointer-events: none;
}

/* =========================
   Header reveal after intro
========================= */
.header{
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.header.ready{
  opacity: 1;
  pointer-events: auto;
}

/* Hide the real header wordmark while the flying clone animates */
.header .wordmark{
  opacity: 0;
  transition: opacity .2s ease;
}

.header.ready .wordmark{
  opacity: 1;
}

/* ===== Lock + Hide page until intro finishes ===== */
body.intro-lock{
  overflow: hidden;
}

body.intro-lock main,
body.intro-lock section{
  opacity: 0;
  transform: translateY(8px);
}

/* smooth reveal when intro is done */
body.intro-done main,
body.intro-done section{
  opacity: 1;
  transform: none;
  transition: opacity .6s ease, transform .6s ease;
}
