
body{
    margin:3% 10%;
}

nav{
    display:flex;
    padding:0px 10px;
    align-items:center;
    width:100%;
    border:1px solid rgb(163, 163, 163);
    gap: 50px;
    height:50px;
    justify-content: center;
}

.logo{
    margin-right:auto;
}


.socialmedia{
  display: flex;
  gap: 20px;
    margin-left:auto;
    list-style-type: none;
}
.app{
    margin-left: 10%;
}
.hi{
    width: 100%;
    text-align: center;
}
.he{
    color: rgb(153, 150, 150);

}
.gallery{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    grid-gap:20px;
    width:100%;
}
.black{
  position: absolute;
  width: 200px;
  height:200px;
  background-color:transparent;
  z-index: 1;
  animation-name: sq;
  animation-duration: 1s;
  animation-timing-function: ease-in-out;
  animation-play-state: paused;
  animation-iteration-count: infinite;
}
.card {
  position: relative;
  width: 290px;
  height: 380px;
  overflow: hidden;
  color:rgb(85, 5, 31);
  font-style:oblique;
  font-size:x-large;
   padding: 20px;
   border-radius: 12px;
  box-shadow: 0 0 10px rgba(22, 22, 22, 0.281);
text-decoration:overline;
}

/* Shared style for all animated blocks */
.card .one,
.card .two,
.card .three,
.card .four {
  position: absolute;
  width: 50%;
  height: 50%;
  background-color: rgba(65, 64, 64, 0.699);
  transition: all 0.25s ease-in-out;
}

/* Initial off-screen positions */
.one {
  top: 0;
  left: -100%;
  transition-delay: 0s;
}

.two {
  top: 0;
  left: -100%;
  transition-delay: 0.25s;
}

.three {
  top: -100%;
  right: 0;
  transition-delay: 0.5s;
}

.four {
  bottom: 0;
  right: -100%;
  transition-delay: 0.75s;
}

/* Final positions on hover */
.card:hover .one {
  left: 0;
  transition-delay: 0s;
}

.card:hover .two {
  left: 50%;
  transition-delay: 0.25s;
}

.card:hover .three {
  top: 50%;
  transition-delay: 0.5s;
}

.card:hover .four {
  right: 50%;
  transition-delay: 0.75s;
}

.card .one,
.card .two,
.card .three,
.card .four {
  transition-property: all;
  transition-timing-function: ease-in-out;
  transition-duration: 0.25s;
}



/* @keyframes sq {
  0%{
    background-color: transparent;
    width: 0;
    height:200;
  }
  25%{
    background-color: #000;
    width: 140px;
    height: 200px;
  }
  50%{
    width: 280px;

  }
  75%{
    height: 400px;
  }
  100%{
    width: 280px;
    height: 400px; 
  }
} */
 /* @keyframes sq {
  0%{
    background-color: transparent;
  }
  25%{
    background:linear-gradient(to right,rgba(0,0,0,1)40%,transparent);
    height: 200px;
  }
  50%{
       background:linear-gradient(to right,rgba(0,0,0,1)100%,transparent);
       height: 200px;

  }
  75%{
      height: 400px;
      background: linear-gradient(90deg,transparent,rgba(0,0,0,1)40%);
  }
  100%{
 
  }
} */
.card:hover .black{
  animation-play-state: running;
}
 .card img{
    width:100%;
    height:auto;
}

 .card-content p{
    font-size: 14px;
    color: rgb(42, 42, 43);
 }   
.hey{
    color: rgb(51, 51, 51);
    text-align: center;
    
}
.container {
  text-align: center;
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;

}
.card-content{
  position: relative;
  top:-200px;
  left: 20px;
}


.subtitle {
  color: #535252;
  margin: 0;
  font-size: 1rem;
}

.email {
  font-size: 1.5rem;
  margin: 10px 0 0;
  font-weight: bold;
  color: #000;
  height: 100px;
  
}

.email span {
  display: inline-block;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 45px;
  margin-bottom: 20px;
  

}

.social-icons a {
  color: #000;
  font-size: 1.3rem;
  text-decoration: none;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #555;
}

.copyright {
  font-size: 0.9rem;
  color: #888;
 
}
.mid{
    margin-top: 30px;
}
.h {
display: none;
}


.fa-arrow-down:hover{
    cursor:pointer ;
}
.icons{
margin-top: 110px; 
 font-size:1.5em;
  margin-left: 200px;
  color: rgb(0, 0, 0);
}

 /* Overlay Section */
        .braille-overlay {
            position: fixed;
            top:0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            z-index: 1000;
            transform: translateY(100%);
            transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgb(0, 0, 0);
            display: none;
        }

        .braille-overlay.active {
          display:flex ;
            transform: translateY(0);
        }

        .overlay-content {
            background-color:#667eea;
            text-align: center;
            max-width: 600px;
            padding: 40px;
            
            animation: fadeInUp 1s ease 0.3s both;
        }

        .braille-overlay.active .overlay-content {
            animation: fadeInUp 1s ease 0.3s both;
        }

        .overlay-content h2 {
            font-size: 48px;
            margin-bottom: 30px;
            font-weight: 300;
            opacity: 0;
            animation: fadeInUp 0.8s ease 0.5s forwards;
        }

        .overlay-content p {
            font-size: 20px;
            line-height: 1.6;
            margin-bottom: 40px;
            opacity: 0;
            animation: fadeInUp 0.8s ease 0.7s forwards;
        }

        .overlay-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 30px;
            margin-top: 50px;
        }

        .overlay-item {
            background: rgba(255, 255, 255, 0.1);
            padding: 30px;
            border-radius: 15px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
            opacity: 0;
            transform: translateY(30px);
        }

        .overlay-item:nth-child(1) { animation: fadeInUp 0.8s ease 0.9s forwards; }
        .overlay-item:nth-child(2) { animation: fadeInUp 0.8s ease 1.1s forwards; }
        .overlay-item:nth-child(3) { animation: fadeInUp 0.8s ease 1.3s forwards; }

        .overlay-item:hover {
            transform: translateY(-10px);
            background: rgba(255, 255, 255, 0.2);
        }

        .overlay-item i {
            font-size: 32px;
            margin-bottom: 20px;
            display: block;
        }

        .overlay-item h3 {
            font-size: 20px;
            margin-bottom: 15px;
            font-weight: 500;
        }

        .overlay-item p {
            font-size: 14px;
            opacity: 0.9;
            animation: none;
        }

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

        /* Responsive */
        @media (max-width: 768px) {
            nav {
                padding: 15px 20px;
                gap: 15px;
            }
            
            .main-content {
                padding: 40px 20px;
            }
            
            .main-content h1 {
                font-size: 32px;
            }
            
            .overlay-content {
                padding: 20px;
            }
            
            .overlay-content h2 {
                font-size: 36px;
            }
            
            .overlay-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
        }

 .scroll-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 60px;
            height: 60px;
            background: linear-gradient(45deg, #fad7f5, #e95992);
            border: none;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            transition: all 0.3s ease;
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
            z-index: 1000;
        }

        .scroll-to-top.visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .scroll-to-top:hover {
            transform: translateY(-5px) scale(1.1);
            box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
        }

        .scroll-to-top svg {
            width: 24px;
            height: 24px;
            fill: white;
            transition: transform 0.3s ease;
        }

        .scroll-to-top:hover svg {
            transform: translateY(-2px);
        }

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