* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  
}
  
  ::selection {
  background-color: #FFEB3B;
  color: #043d68; 
}

::-moz-selection {
  background-color: #FFEB3B;
  color: #043d68;
}
body {
  background: #ffffff;
  min-height: 100vh;
  background-image: radial-gradient(
      at 0% 0%,
      hsla(212, 100%, 92%, 1) 0,
      transparent 50%
    ),
    radial-gradient(at 100% 100%, hsla(212, 100%, 95%, 1) 0, transparent 50%);
  color: #043d68;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: clip;
}
.background-pattern {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23043D68'%3E%3Cpath d='M8.5 5c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm7 0c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zM4.5 10c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm15 0c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zM12 11c1.9 0 3.5 1.6 3.5 3.5 0 2.5-1.1 3.5-3.5 3.5s-3.5-1-3.5-3.5c0-1.9 1.6-3.5 3.5-3.5z'/%3E%3C/svg%3E");
  background-size: 100px 100px;
  opacity: 0.03;
  mask-image: radial-gradient(circle, black 10%, transparent 60%);
  -webkit-mask-image: radial-gradient(circle, black 10%, transparent 60%);
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: transparent;
  position: sticky;
  top: 0;
  z-index: 10000;
  transition: 0.3s ease;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0; 
  transition: opacity 0.5s ease;
  pointer-events: none;
}
header.scrolled::before {
  opacity: 1;
}
header.scrolled {
  border-bottom: 1px solid rgba(4, 61, 104, 0.1);
}
.header-left {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  z-index: 1000;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.logo-icon {
  width: 35px;
  height: 35px;
  border-radius: 8px;
  object-fit: cover;
}
.desktop-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.desktop-nav a {
  text-decoration: none;
  color: #043d68;
  font-weight: 500;
  font-size: 0.95rem;
  transition: 0.3s;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}
.desktop-nav a:hover {
  background: rgba(211, 231, 255, 0.5);
}
.desktop-nav a.active {
  background: rgba(211, 231, 255, 0.8);
  font-weight: 700;
}
.search-container {
  position: relative;
  display: flex;
  align-items: center;
}
.search-media-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  margin-right: -32px;
  position: relative;
  z-index: 2;
  pointer-events: none;
}
.search-container input[type="text"] {
  padding: 0.5rem 1rem 0.5rem 2.8rem;
  border-radius: 50px;
  border: 1px solid #043d68;
  background: transparent;
  color: #043d68;
  width: 300px;
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  outline: #043d68;
  transition: 0.3s;
}
.search-container input[type="text"]:focus {
  border-color: #043d68;
  box-shadow: 0 0 10px rgba(4, 61, 104, 0.1);
}
.search-container img.trigger {
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.autocomplete-items {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(4, 61, 104, 0.1);
  z-index: 10001;
  overflow: hidden;
  margin-top: 5px;
}
.autocomplete-items div:hover {
  background-color: #f0f7ff;
}
.highlight {
  background: #ffeb3b;
  font-weight: 700;
  padding: 0 2px;
  border-radius: 3px;
}
.menu-btn-container {
  display: none;
  z-index: 10001;
  cursor: pointer;
  padding: 10px;
}
.menu-icon {
  width: 30px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 10001;
}
.menu-icon span {
  height: 3px;
  background: #043d68;
  border-radius: 2px;
  transition: 0.3s;
  transform-origin: left;
  z-index: 10001;
}
.show-nav .menu-icon span:nth-child(1) {
  transform: rotate(45deg);
}
.show-nav .menu-icon span:nth-child(2) {
  opacity: 0;
}
.show-nav .menu-icon span:nth-child(3) {
  transform: rotate(-45deg);
}
nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 250px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  padding-top: 6rem;
  transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 5000;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}
body.show-nav nav {
  right: 0;
}
nav a {
  display: block;
  padding: 0.8rem 1.5rem;
  color: #043d68;
  text-decoration: none;
  font-weight: 500;
  width: 85%;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 0.5rem;
  transition: 0.3s ease;
}
nav a:hover {
  background-color: #d3e7ff;
}
.home-content {
  max-width: 800px;
  margin: 4rem auto;
  text-align: center;
  padding: 0 1.5rem;
  flex: 1;
}
.icon-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}
.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.icon-item::after {
  content: attr(data-tooltip);
  position: absolute;
  background: #d3e7ff;
  backdrop-filter: blur(5px);
  color: #043d68;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  pointer-events: none;
  z-index: 10000;
}
.icon-item:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-5px);
}
.icon-circle {
  width: 65px;
  height: 65px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(4, 61, 104, 0.08);
  margin-bottom: 10px;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid #f0f4f8;
}
.icon-circle img,
.icon-circle svg {
  width: 28px;
  height: 28px;
}
.icon-item:hover .icon-circle {
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 15px 30px rgba(4, 61, 104, 0.15);
  border-color: #d3e7ff;
}
.icon-label {
  font-weight: 900;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.button-group {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}
.portfolio-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s all ease;
  font-size: 0.95rem;
}
.cv-btn {
  background: #043d68;
  color: white;
  box-shadow: 0 10px 20px rgba(4, 61, 104, 0.15);
}
.cv-btn:hover {
  transform: translateY(-3px);
  background: #06548d;
  box-shadow: 0 15px 25px rgba(4, 61, 104, 0.25);
}
.about-btn {
  border: 2px solid #043d68;
  color: #043d68;
  background: transparent;
}
.about-btn:hover {
  background: rgba(211, 231, 255, 0.4);
  transform: translateY(-3px);
}
#mobileSearchTrigger {
  display: none;
}
.mobile-controls {
  display: none;
  align-items: center;
  gap: 0.5rem;
  z-index: 11000;
}
@media (max-width: 600px) {
  .desktop-nav {
    display: none;
  }
  .header-left .search-container {
    display: none;
  }
  header {
    padding: 1rem;
  }
  .mobile-controls {
    display: flex;
  }
  .menu-btn-container {
    display: block;
    padding: 5px;
  }
  #mobileSearchTrigger {
    display: block;
    width: 24px;
    height: 24px;
    cursor: pointer;
  }
  nav {
    width: 100%;
    right: -110%;
  }
  .home-content {
    margin: 3rem auto;
    padding: 0 1.2rem;
  }
  .info-box h1 {
    font-size: 3.2rem !important;
    letter-spacing: -2px !important;
    line-height: 0.95 !important;
  }
  .info-box h2 {
    font-size: 2.2rem !important;
    letter-spacing: -1px !important;
  }
  .info-box p {
    font-size: 1rem !important;
    max-width: 100% !important;
    line-height: 1.6 !important;
  }
  .button-group {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .portfolio-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 0.4rem 1.8rem;
  }
  .icon-grid {
    gap: 2rem;
    margin-top: 2.5rem;
  }
  .icon-circle {
    width: 45px;
    height: 45px;
  }
  .icon-circle svg,
  .icon-circle img {
    width: 20px;
    height: 20px;
  }
  .icon-label {
    font-size: 0.8rem;
  }
}
#mobileSearchOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(15px);
  z-index: 15000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mobile-search-box {
  width: 85%;
  max-width: 400px;
  position: relative;
}
.mobile-search-box input {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  border: 1px solid rgba(4, 61, 104, 0.2);
  background: white;
  font-size: 1.1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.close-search {
  margin-top: 20px;
  color: #043d68;
  font-weight: 600;
  cursor: pointer;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.info-box > *,
.button-group > *,
.icon-item,
.fade-up,
header .search-container,
header .desktop-nav a,
#mobileSearchTrigger,
.menu-btn-container,
.logo {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.search-container input[type="text"],
.search-media-icon {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.logo {
  animation-delay: 0.1s;
}
.search-container {
  animation-delay: 0.3s;
}
#mobileSearchTrigger {
  animation-delay: 0.4s;
}
.menu-btn-container {
  animation-delay: 0.5s;
}
.info-box h1 {
  animation-delay: 0.2s !important;
}
.info-box h2 {
  animation-delay: 0.4s !important;
}
.info-box p {
  animation-delay: 0.6s !important;
}
.button-group a:nth-child(1) {
  animation-delay: 0.8s !important;
}
.button-group a:nth-child(2) {
  animation-delay: 0.9s !important;
}
.icon-item:nth-child(1) {
  animation-delay: 1.1s !important;
}
.icon-item:nth-child(2) {
  animation-delay: 1.2s !important;
}
.icon-item:nth-child(3) {
  animation-delay: 1.3s !important;
}
.about-content h1.fade-up {
  animation-delay: 0.2s;
}
.about-content p.fade-up {
  animation-delay: 0.4s;
}
.about-content .cv-btn.fade-up {
  animation-delay: 0.6s;
}
.about-content section:nth-of-type(1) {
  animation-delay: 0.8s;
}
.about-content section:nth-of-type(2) {
  animation-delay: 1s;
}
.logo {
  animation-delay: 0s;
}
.desktop-nav a:nth-child(1) {
  animation-delay: 0.1s;
}
.desktop-nav a:nth-child(2) {
  animation-delay: 0.2s;
}
.desktop-nav a:nth-child(3) {
  animation-delay: 0.3s;
}
.desktop-nav a:nth-child(4) {
  animation-delay: 0.4s;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 30px;
  width: 100%;
}

.glass-card {
  max-width: 350px;
  background: #043d68;  
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); 
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07); 
  transition: all 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  background: #043d68;
  border-color: rgba(255, 255, 255, 0.8);
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.skill-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a; 
  margin: 0;
}

.skill-cat-icon {
  width: 24px;
  height: 24px;
}

.glass-tag {
  max-width: 130px;
  background: #EBF0FF;
  border: 1px solid rgba(0, 0, 0, 0.08); 
  color: #1e293b; 
  padding: 4px 6px;
  border-radius: 10px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03); 
  transition: all 0.2s ease;
}

.glass-tag:hover {
  background: #EBF0FF; 
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.glass-tag img {
  width: 16px;
  height: 16px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1)); 
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
  
.fade-up {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.skills-grid > .fade-up {
  display: flex;
  justify-content: center;
  width: 100%;
}

.project-card {
  width: 100%;
  background: #043d68;
  border-radius: 8px;
  max-width: 400px;
  overflow: hidden;
  padding: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(0px); 
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover; 
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-info {
  padding: 20px;
}

.project-title {
  font-size: 1rem !important; 
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.project-description {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
  line-height: 1.5;
  height: 30px; 
  overflow-y: auto;  
  padding-right: 8px; 
}

.project-description::-webkit-scrollbar {
  width: 3px; 
}

.project-description::-webkit-scrollbar-track {
  background: transparent; 
}

.project-description::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.8); 
  border-radius: 10px;
}

.project-description::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 1);
}

.project-description {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.8) transparent;
}

.project-tag {
  background: rgba(235, 240, 255, 0.15); 
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
}
.project-link {
  display: flex;
  align-items: center;
  gap: 8px; 
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.85rem !important;
  font-weight: 700;
  transition: 0.2s ease;
  line-height: 1;
}

.project-link svg {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0;
  fill: none !important;
}

.project-links {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
  align-items: stretch;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #fff;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.contact-form-column .glass-card {
  max-width: 100%;
}

.contact-info-column .glass-card {
  max-width: 100%;
  position: relative;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}

.form-group label {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

.form-group input, .form-group textarea {
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  outline: none;
  transition: 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

.social-links {
  display: flex;
  gap: 10px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-left: -10px; 
}

.contact-box-link {
  text-decoration: none;
  display: block;
  border-radius: 12px;
  transition: background 0.3s ease;
}

.contact-box-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  color: #ffffff;
  margin-bottom: 0 !important;
}

.contact-item .icon-circle {
  width: 40px; 
  height: 40px;
  background: rgba(255, 255, 255, 0.1); 
  border: 1px solid #FFFFFF;
  flex-shrink: 0;
  margin-bottom: 0; 
}

.contact-item div {
  line-height: 1.4;
}

.contact-item div strong {
  display: inline-block;
  margin-bottom: 2px; 
}

@media (max-width: 600px) {
  body {
    font-size: 14px;
  }

  .about-content h1 {
    font-size: 2rem !important;
    letter-spacing: -1px !important;
  }

  .about-content h2 {
    font-size: 1.4rem !important;
  }

  .about-content p, 
  .about-content div {
    font-size: 0.9rem !important; 
    line-height: 1.5 !important;
  }

  .glass-card h3 {
    font-size: 1rem !important;
  }
  
  .glass-tag {
    font-size: 0.75rem !important;
    padding: 3px 8px !important;
  }

  nav a {
    font-size: 1.1rem !important;
  }
  .about-content section div[style*="grid-template-columns"] {
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 10px !important; 
  }

  .interest-box {
    padding: 12px 10px !important;
    font-size: 0.8rem !important;
    justify-content: center; 
  }
  
  .interest-box svg {
    width: 16px !important;
    height: 16px !important;
  }
  
.contact-container {
grid-template-columns: 1fr !important;
display: flex;
flex-direction: column;
gap: 20px;
}

.contact-form-column {
min-height: 700px;
width: 100%;
}

.form-wrapper {
width: 100% !important;
max-width: 100% !important;
margin: 0 !important;
padding: 0 !important;
min-height: 700px; 
display: flex; 
flex-direction: column;
}

.form-wrapper iframe {
flex: 1;
width: 100%;
min-height: 700px; 
border: none;
display: block;
}
}
