@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0f172a;
    color: #f8fafc;
    scroll-behavior: smooth;
}

.gradient-text {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.skill-bar {
    height: 8px;
    border-radius: 4px;
    background: #1e293b;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 1.5s ease-in-out;
}

.project-card {
    perspective: 1000px;
}

.project-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.project-card:hover .project-inner {
    transform: rotateY(180deg);
}

.project-front, .project-back {
    backface-visibility: hidden;
}

.project-back {
    transform: rotateY(180deg);
}

.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.active-nav::after {
    width: 100%;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

#home {
    opacity: 1;
    transform: none;
}

#typed-name {
    display: inline-block;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: #8b5cf6;
    margin-left: 2px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

.cursor.show {
    opacity: 1;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

#neural-network-bg {
    background-color: #0f172a;
}

#neural-network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

}

#home h1 {
    font-size: 2.5rem;
}
@media (min-width: 768px) {
  #home h1 {
    font-size: 4.5rem;
  }
}
#typed-name {
    display: inline-block;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background-color: #8b5cf6;
    margin-left: 2px;
    animation: blink 1s infinite;
    vertical-align: middle;
}
.cursor.show {
    opacity: 1;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.category-tab {
    background-color: #1e293b;
    color: #cbd5e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.category-tab:hover {
    background-color: #334155;
    color: #f8fafc;
    border-color: #64748b;
}

.category-tab.active {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.skill-item {
    position: relative;
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #1e293b;
    color: #cbd5e1;
    font-size: 0.875rem;
    border-radius: 9999px;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease, transform 0.2s ease;
    text-align: center;
    margin: 0.25rem;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid #8b5cf6;
    border-radius: 9999px;
    z-index: -1;
}

.skill-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(25deg);
    transition: all 0.6s ease;
    z-index: -1;
    opacity: 0;
}

.skill-item:hover {
    color: #f8fafc;
    transform: translateY(-2px);
    cursor: pointer;
}

.skill-item:hover::after {
    opacity: 1;
    left: 120%;
}

.skills-category {
    display: none;
}

.skills-category.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}


.skills-category.active {
    text-align: center;
}


.skills-category.active > div.flex.flex-wrap {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.contact-info-box {
    transition: all 0.3s ease;
}

.contact-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 0px 30px -10px rgba(139, 92, 246, 1), 0 0px 15px -5px rgba(139, 92, 246, 1);
    border-color: #475569;
}

.gradient-separator-line {
    width: 500px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

.basic-project-card {
    transition: all 0.3s ease;
}

.basic-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes shine {
  0% {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
  }
  100% {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  }
}

@keyframes shineWhite {
  0% {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  }
  100% {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  }
}

.achievement-box:hover {
  transform: scale(1.05) rotateY(5deg);
  animation: shineWhite 2s infinite;
}

.achievement-box {
  transition: all 0.3s ease;
  perspective: 1000px;
  transform-style: preserve-3d;
  cursor: pointer;
}

.achievement-icon {
  animation: float 3s ease-in-out infinite;
}

.gradient-text {
  background: linear-gradient(to right, #3b82f6, #9333ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#home h1 .gradient-text {
  display: inline-block;
  min-width: 0;
}

#typed-name {
  display: inline-block;
  min-width: 0;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background-color: #8b5cf6;
    margin-left: 2px;
    animation: blink 1s infinite;
    vertical-align: middle;
    flex-shrink: 0;
}

#contact .contact-info-box p {
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

#contact .contact-info-box .flex > div:first-child {
  flex-shrink: 0;
}

#contact .contact-info-box i {
  font-size: 1.25rem;
}

#contact .contact-info-box .flex.space-x-4 a {
  flex-shrink: 0;
  min-width: 2.5rem;
  min-height: 2.5rem;
  font-size: 1.25rem;
}