 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 body {
     background: linear-gradient(135deg, #0f2147 0%, #1a3a7f 100%);
     color: #ffffff;
     overflow-x: hidden;
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
     scroll-behavior: smooth;
 }

 .navbar {
     position: fixed;
     top: 0;
     width: 100%;
     background-color: rgba(10, 30, 60, 0.95);
     backdrop-filter: blur(10px);
     z-index: 1000;
     box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
     transition: all 0.3s ease;
 }

 .nav-container {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 20px;
     display: flex;
     justify-content: space-between;
     align-items: center;
     height: 70px;
 }

 .nav-link.active,
 .mobile-nav-link.active {
     color: #06f7ff;
     background-color: rgba(6, 247, 255, 0.06);
     border-radius: 6px;
 }
 
.navbar.scrolled {
  background-color: rgba(10, 30, 60, 0.98);
  box-shadow: 0 5px 25px rgba(0,0,0,0.35);
}

.project-card.fade-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}
.project-card.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

 .emoji-circle {
     width: 40px;
     height: 40px;
     border-radius: 50%;
     overflow: hidden;
     display: flex;
     align-items: center;
     justify-content: center;
     background-color: white;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
 }

 .emoji-circle img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }


 section {
     padding: 80px 10%;
     min-height: 100vh;
     display: flex;
     flex-direction: column;
     justify-content: center;
 }

 a {
     text-decoration: none;
     color: inherit;
 }

 .section-title {
     font-size: 2.6rem;
     margin-bottom: 50px;
     position: relative;
     color: #06f7ff;
     font-weight: 700;
     text-shadow: 0 0 10px rgba(6, 247, 255, 0.3);
 }

 .section-title::after {
     content: "";
     position: absolute;
     left: 0;
     bottom: -10px;
     width: 60px;
     height: 4px;
     background-color: #06f7ff;
     box-shadow: 0 0 10px rgba(6, 247, 255, 0.5);
 }

 .logo {
     font-size: 1.5rem;
     font-weight: 700;
     color: #06f7ff;
     text-shadow: 0 0 8px rgba(6, 247, 255, 0.5);
 }

 .nav-menu {
     display: flex;
     list-style: none;
     gap: 30px;
     margin: 0;
     padding: 0;
 }

 .nav-link {
     color: #ffffff;
     text-decoration: none;
     font-weight: 500;
     position: relative;
     transition: all 0.3s ease;
     padding: 8px 16px;
     border-radius: 6px;
 }

 .nav-link::after {
     content: "";
     position: absolute;
     left: 50%;
     bottom: -2px;
     width: 0;
     height: 2px;
     background-color: #06f7ff;
     transition: all 0.3s ease;
     transform: translateX(-50%);
     box-shadow: 0 0 8px rgba(6, 247, 255, 0.5);
 }

 .nav-link:hover {
     color: #06f7ff;
     background-color: rgba(6, 247, 255, 0.1);
 }

 .nav-link:hover::after {
     width: 80%;
 }

 /* mobile menu */
 .mobile-menu-toggle {
     display: none;
     flex-direction: column;
     cursor: pointer;
     padding: 8px;
     border-radius: 4px;
     transition: all 0.3s ease;
 }

 .mobile-menu-toggle:hover {
     background-color: rgba(6, 247, 255, 0.1);
 }

 .hamburger {
     width: 25px;
     height: 3px;
     background-color: #ffffff;
     margin: 3px 0;
     transition: all 0.3s ease;
     border-radius: 2px;
 }

 .mobile-menu-toggle.active .hamburger:nth-child(1) {
     transform: rotate(-45deg) translate(-5px, 6px);
     background-color: #06f7ff;
 }

 .mobile-menu-toggle.active .hamburger:nth-child(2) {
     opacity: 0;
 }

 .mobile-menu-toggle.active .hamburger:nth-child(3) {
     transform: rotate(45deg) translate(-5px, -6px);
     background-color: #06f7ff;
 }

 .mobile-nav {
     position: fixed;
     top: 70px;
     left: 0;
     width: 100%;
     height: calc(100vh - 70px);
     background: linear-gradient(180deg, rgba(10, 30, 60, 0.98) 0%, rgba(15, 33, 71, 0.98) 100%);
     backdrop-filter: blur(20px);
     transform: translateX(-100%);
     transition: transform 0.3s ease;
     z-index: 999;
 }

 .mobile-nav-menu,
 .mobile-nav-menu li {
     list-style: none;
     margin: 0;
     padding: 0;
 }

 .mobile-nav.active {
     transform: translateX(0);
 }

 .mobile-nav-menu {
     display: flex;
     flex-direction: column;
     padding: 40px 30px;
     gap: 20px;
     height: 100%;
 }

 .mobile-nav-link {
     color: #ffffff;
     text-decoration: none;
     font-size: 1.2rem;
     font-weight: 500;
     padding: 15px 20px;
     border-radius: 10px;
     transition: all 0.3s ease;
     border: 1px solid rgba(255, 255, 255, 0.1);
     text-align: center;
 }

 .mobile-nav-link:hover {
     background: linear-gradient(135deg, rgba(6, 247, 255, 0.2) 0%, rgba(6, 247, 255, 0.1) 100%);
     border-color: rgba(6, 247, 255, 0.3);
     color: #06f7ff;
     transform: translateY(-2px);
 }

 /* hero */
 .hero {
     position: relative;
     background: linear-gradient(135deg, #0f2147 0%, #1a3a7f 100%);
     overflow: hidden;
 }

 .hero-content {
     position: relative;
     z-index: 2;
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 60px;
 }

 .hero-text {
     flex: 1;
 }

 .profile-container {
     flex: 0 0 300px;
     position: relative;
 }

 .profile-img {
     width: 300px;
     height: 300px;
     border-radius: 50%;
     object-fit: cover;
     border: 4px solid #06f7ff;
     box-shadow: 0 0 25px rgba(6, 247, 255, 0.4);
 }

 .greeting {
     font-size: 1.2rem;
     color: #06f7ff;
     margin-bottom: 10px;
     opacity: 0;
     animation: fadeInUp 1s forwards 0.5s;
 }

 .name {
     font-size: 4.2rem;
     font-weight: 700;
     margin-bottom: 10px;
     opacity: 0;
     animation: fadeInUp 1s forwards 0.7s;
     text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
 }

 .slogan {
     font-size: 2rem;
     margin-bottom: 30px;
     color: #b8c4ff;
     opacity: 0;
     animation: fadeInUp 1s forwards 0.9s;
 }

 .slogan span {
     color: #06f7ff;
     position: relative;
 }

 .slogan span::after {
     content: "|";
     position: absolute;
     right: -5px;
     animation: blink 1s infinite;
 }

 .cta-btn {
     display: inline-block;
     padding: 12px 28px;
     background-color: transparent;
     border: 2px solid #06f7ff;
     color: #06f7ff;
     border-radius: 6px;
     font-weight: 500;
     transition: all 0.3s ease;
     opacity: 0;
     animation: fadeInUp 1s forwards 1.1s;
     box-shadow: 0 0 15px rgba(6, 247, 255, 0.2);
 }

 .cta-btn:hover {
     background-color: rgba(6, 247, 255, 0.15);
     transform: translateY(-5px);
     box-shadow: 0 5px 20px rgba(6, 247, 255, 0.4);
 }

 /* bg anime */
 .code-bg {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     z-index: 1;
     opacity: 0.12;
     overflow: hidden;
 }

 .code-line {
     position: absolute;
     color: #06f7ff;
     font-family: monospace;
     font-size: 14px;
     white-space: nowrap;
     animation: codeFall linear infinite;
     text-shadow: 0 0 8px rgba(6, 247, 255, 0.5);
 }

 /* about */
 .about {
     background: linear-gradient(135deg, #1e3a7f 0%, #2547a3 100%);
 }

 .about-content {
     display: flex;
     gap: 50px;
     align-items: flex-start;
 }

 .about-text {
     flex: 2;
     font-family: 'Merriweather', serif;
     line-height: 1.8;
     font-size: 1.1rem;
     color: #d6e0ff;
 }

 .about-text p {
     margin-bottom: 20px;
 }

 .about-text p:first-of-type::first-letter {
     font-size: 3rem;
     font-weight: 700;
     color: #06f7ff;
     float: left;
     line-height: 0.8;
     margin-right: 8px;
     text-shadow: 0 0 8px rgba(6, 247, 255, 0.5);
 }

 .about-image {
     flex: 1;
     border-radius: 12px;
     overflow: hidden;
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
     transform: rotate(3deg);
     transition: all 0.3s ease;
     border: 3px solid rgba(6, 247, 255, 0.3);
     max-width: 100%;
     max-height: 100vh;
 }

 .about-image:hover {
     transform: rotate(0);
     box-shadow: 0 15px 35px rgba(6, 247, 255, 0.2);
 }

 .about-image img {
  width: 100%;
  height: 100%;
  max-height: 100vh; 
  object-fit: contain;
}

 /* projects*/
 .projects {
     background: linear-gradient(135deg, #0f2147 0%, #1a3a7f 100%);
 }

 .projects-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
     gap: 30px;
 }

 .project-card {
     background: linear-gradient(145deg, #1e3a7f 0%, #2547a3 100%);
     border-radius: 15px;
     overflow: hidden;
     box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
     transition: all 0.4s ease;
     border: 1px solid rgba(6, 247, 255, 0.1);
     display: flex;
     flex-direction: column;
 }

 .project-card:hover {
     transform: translateY(-10px) scale(1.02);
     box-shadow: 0 25px 50px rgba(6, 247, 255, 0.2);
     border-color: rgba(6, 247, 255, 0.3);
 }

 .project-img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 .project-content {
     padding: 25px;
     flex-grow: 1;
     display: flex;
     flex-direction: column;
 }

 .project-title {
     font-size: 1.3rem;
     margin-bottom: 12px;
     color: #ffffff;
 }

 .project-desc {
     color: #d6e0ff;
     margin-bottom: 20px;
     line-height: 1.6;
     flex-grow: 1;
 }

 .project-tags {
     display: flex;
     flex-wrap: wrap;
     gap: 8px;
     margin-bottom: 20px;
 }

 .project-tag {
     background-color: rgba(6, 247, 255, 0.15);
     color: #06f7ff;
     padding: 4px 12px;
     border-radius: 20px;
     font-size: 0.8rem;
     box-shadow: 0 0 10px rgba(6, 247, 255, 0.2);
 }

 .project-button {
     background-color: #06f7ff;
     color: #0f2147;
     padding: 10px 20px;
     border: none;
     border-radius: 8px;
     font-weight: 600;
     text-decoration: none;
     text-align: center;
     transition: all 0.3s ease;
     cursor: pointer;
 }

 .project-button:hover {
     background-color: #00e1ff;
     transform: translateY(-2px);
     box-shadow: 0 8px 20px rgba(6, 247, 255, 0.4);
 }

 .game-link {
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    color: #fff;
    font-weight: bold;
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    box-shadow: 
        0 6px 0 #e06446,    
        0 8px 15px rgba(255, 126, 95, 0.3); 
}

.game-link:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 0 #e06446,
        0 12px 20px rgba(255, 126, 95, 0.4);
}

.game-link:active {
    transform: translateY(3px);
    box-shadow: 
        0 3px 0 #e06446,
        0 6px 10px rgba(255, 126, 95, 0.3);
}


 /* skills */
 .skills {
     background: linear-gradient(135deg, #1e3a7f 0%, #2547a3 100%);
 }

 .skills-content {
     display: flex;
     flex-direction: column;
     gap: 50px;
 }

 .skills-category {
     margin-bottom: 30px;
 }

 .category-title {
     font-size: 1.6rem;
     color: #ffffff;
     margin-bottom: 20px;
     position: relative;
     display: inline-block;
     text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
 }

 .category-title::after {
     content: "";
     position: absolute;
     left: 0;
     bottom: -5px;
     width: 100%;
     height: 2px;
     background-color: #06f7ff;
     box-shadow: 0 0 10px rgba(6, 247, 255, 0.5);
 }

 .skills-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
     gap: 25px;
 }

 .skill-item {
     position: relative;
     background: linear-gradient(145deg, #2547a3 0%, #326ad1 100%);
     border-radius: 10px;
     padding: 25px;
     text-align: center;
     transition: all 0.3s ease;
     box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
     border: 1px solid rgba(6, 247, 255, 0.1);
 }

 .skill-item:hover {
     transform: translateY(-8px) scale(1.05);
     box-shadow: 0 15px 30px rgba(6, 247, 255, 0.2);
     border: 1px solid rgba(6, 247, 255, 0.3);
 }

 .skill-icon {
     font-size: 2.5rem;
     margin-bottom: 15px;
     color: #06f7ff;
     text-shadow: 0 0 15px rgba(6, 247, 255, 0.5);
 }

 .skill-name {
     font-size: 1.1rem;
     color: #ffffff;
 }

 .skill-level {
     width: 100%;
     height: 6px;
     background-color: rgba(255, 255, 255, 0.2);
     border-radius: 5px;
     margin-top: 12px;
     position: relative;
     overflow: hidden;
 }

 .skill-progress {
     position: absolute;
     left: 0;
     top: 0;
     height: 100%;
     background: linear-gradient(to right, #06f7ff, #00b8d4);
     border-radius: 5px;
     transition: width 1s ease;
     box-shadow: 0 0 10px rgba(6, 247, 255, 0.5);
 }

 /* contact */
 .contact {
     background: linear-gradient(135deg, #0f2147 0%, #1a3a7f 100%);
 }

 .contact-content {
     display: flex;
     flex-direction: column;
     align-items: center;
     text-align: center;
 }

 .contact-text {
     max-width: 600px;
     margin-bottom: 30px;
     color: #d6e0ff;
     line-height: 1.7;
     font-size: 1.1rem;
 }

 .email-btn {
     margin-top: 25px;
     display: inline-block;
     padding: 16px 32px;
     background-color: transparent;
     border: 2px solid #06f7ff;
     color: #06f7ff;
     border-radius: 6px;
     font-size: 1.2rem;
     font-weight: 500;
     transition: all 0.3s ease;
     box-shadow: 0 0 20px rgba(6, 247, 255, 0.2);
 }

 .email-btn:hover {
     background-color: rgba(6, 247, 255, 0.15);
     transform: translateY(-5px) scale(1.03);
     box-shadow: 0 10px 25px rgba(6, 247, 255, 0.3);
 }

 .social-links {
     display: flex;
     gap: 25px;
     margin-top: 50px;
 }

 .social-icon {
     width: 55px;
     height: 55px;
     background: linear-gradient(145deg, #1e3a7f 0%, #2547a3 100%);
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     color: #06f7ff;
     font-size: 1.5rem;
     transition: all 0.3s ease;
     box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
     border: 1px solid rgba(6, 247, 255, 0.2);
 }

 .social-icon:hover {
     background: #06f7ff;
     color: #0f2147;
     transform: translateY(-8px) scale(1.1);
     box-shadow: 0 12px 20px rgba(6, 247, 255, 0.3);
 }

 .mobile-nav {
     transform: translateX(-100%);
     opacity: 0;
     transition: transform 0.4s ease, opacity 0.4s ease;
 }

 .mobile-nav.active {
     transform: translateX(0);
     opacity: 1;
 }

 @keyframes fadeInUp {
     from {
         opacity: 0;
         transform: translateY(20px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 @keyframes blink {

     0%,
     100% {
         opacity: 1;
     }

     50% {
         opacity: 0;
     }
 }

 @keyframes codeFall {
     to {
         transform: translateY(100vh);
     }
 }

 @keyframes pulse {
     0% {
         transform: scale(1);
     }

     50% {
         transform: scale(1.1);
     }

     100% {
         transform: scale(1);
     }
 }

 @media (min-width: 969px) {
     .mobile-nav {
         display: none !important;
     }
 }

 @media (max-width: 968px) {
     .nav-menu {
         display: none;
     }

     .mobile-nav {
         display: block;
     }
 }

 @media (max-width: 968px) {
     .nav-menu {
         display: none;
     }

     .mobile-menu-toggle {
         display: flex;
     }

     .hero-content {
         grid-template-columns: 1fr;
         text-align: center;
         gap: 40px;
     }

     .about-content {
         grid-template-columns: 1fr;
         gap: 30px;
     }
 }

 @media (max-width: 768px) {
     .nav-container {
         padding: 0 15px;
     }

     .hero {
         padding: 80px 15px 40px;
     }

     .section {
         padding: 60px 15px;
     }

     .projects-grid {
         grid-template-columns: 1fr;
     }

     .skills-grid {
         grid-template-columns: 1fr;
     }

     .profile-img {
         max-width: 250px;
         height: 250px;
     }
 }

 @media (max-width: 480px) {
     .logo {
         font-size: 1.2rem;
     }

     .hero-text h1 {
         font-size: 2.2rem;
     }

     .cta-btn {
         padding: 12px 25px;
         font-size: 1rem;
     }

     .project-content {
         padding: 20px;
     }

     .skills-category {
         padding: 20px;
     }

     .contact-item {
         padding: 15px;
     }
 }

 @media screen and (max-width: 992px) {
     .hero-content {
         flex-direction: column-reverse;
         text-align: center;
         gap: 30px;
     }

     .section-title::after {
         left: 50%;
         transform: translateX(-50%);
     }

     .about-content {
         flex-direction: column;
     }

     .projects-grid {
         grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
     }
 }

 @media screen and (max-width: 768px) {
     .nav-links {
         display: none;
     }

     section {
         padding: 60px 5%;
     }

     .name {
         font-size: 3rem;
     }

     .slogan {
         font-size: 1.5rem;
     }
 }