/* --- Root Variables for Easy Theming --- */
:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --background-gradient: linear-gradient(135deg, #000428 0%, #004e92 100%);
  --text-light: #fff;
  --text-dark: #2d3748;
  --text-muted: #4a5568;
  --card-bg: rgba(255, 255, 255, 0.95);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--background-gradient);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  color: var(--text-dark);
  position: relative;
}

/* --- Animated Background --- */
.hexagon-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hexagon {
  position: absolute;
  width: 60px;
  height: 34.64px;
  background: linear-gradient(135deg, #ffb347 0%, #ff5e62 100%);
  border: 2px solid var(--text-light);
  box-shadow: 0 0 16px 4px #ffb34780, 0 0 32px 8px #ff5e6280;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  opacity: 0.85;
  animation: float 20s infinite linear;
}

.hexagon:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 25s;
}
.hexagon:nth-child(2) {
  left: 20%;
  animation-delay: -5s;
  animation-duration: 22s;
}
.hexagon:nth-child(3) {
  left: 30%;
  animation-delay: -10s;
  animation-duration: 28s;
}
.hexagon:nth-child(4) {
  left: 40%;
  animation-delay: -15s;
  animation-duration: 24s;
}
.hexagon:nth-child(5) {
  left: 50%;
  animation-delay: -20s;
  animation-duration: 26s;
}
.hexagon:nth-child(6) {
  left: 60%;
  animation-delay: -25s;
  animation-duration: 23s;
}
.hexagon:nth-child(7) {
  left: 70%;
  animation-delay: -30s;
  animation-duration: 27s;
}
.hexagon:nth-child(8) {
  left: 80%;
  animation-delay: -35s;
  animation-duration: 21s;
}
.hexagon:nth-child(9) {
  left: 90%;
  animation-delay: -40s;
  animation-duration: 29s;
}
.hexagon:nth-child(even) {
  animation-name: floatPulse;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes floatPulse {
  0% {
    transform: translateY(100vh) rotate(0deg) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.4;
  }
  50% {
    transform: translateY(50vh) rotate(180deg) scale(1.2);
    opacity: 0.6;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg) scale(1);
    opacity: 0;
  }
}

/* --- Main Container --- */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  animation: fadeInUp 1.2s ease-out;
  padding: 1rem;
}

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

/* --- Profile Section --- */
.profile-section {
  text-align: center;
  margin-bottom: 2rem;
}

.profile-picture-container {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem auto;
  border: 4px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.profile-picture-container:hover {
  transform: scale(1.05);
}

.profile-picture-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.name {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  background: linear-gradient(45deg, #fff, #e0e7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.3rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.tagline {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

/* --- Tech Stack Section --- */

/* Tech stack hint styling */
.tech-stack-hint {
  background: rgba(102, 126, 234, 0.12);
  color: #4a5568;
  font-size: 1.05rem;
  font-family: inherit;
  border-radius: 10px;
  padding: 0.7rem 1.2rem;
  margin: 0 0 1.2rem 0;
  border: 1px solid rgba(102, 126, 234, 0.18);
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.07);
  text-align: center;
  letter-spacing: 0.01em;
  white-space: pre-line;
  display: block;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.tech-stack {
  margin-bottom: 3rem;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tech-item {
  position: relative;
  width: 80px;
  height: 80px;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 40% 60% 70% 30% / 40% 50% 50% 60%;
}

.tech-item:hover {
  transform: translateY(-10px) scale(1.15) rotate(5deg);
  z-index: 10;
  border-radius: 0% 25% 0% 25% / 0% 25% 0% 25%;
}

.tech-item i,
.tech-item .hover-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.tech-item i {
  font-size: 2.8rem;
  color: var(--text-light);
  display: grid;
  place-items: center;
  z-index: 2;
}

.tech-item .hover-img {
  padding: 1.2rem;
  opacity: 0;
  z-index: 1;
}

.tech-item:hover i {
  opacity: 0;
}

.tech-item:hover .hover-img {
  opacity: 1;
  background: rgba(255, 255, 226);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  border-radius: 0% 25% 0% 25% / 0% 25% 0% 25%;
}

.tooltip {
  position: absolute;
  bottom: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: var(--text-light);
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.tech-item:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(5px);
}

/* --- Main Card --- */
.main-card {
  background: var(--card-bg);
  backdrop-filter: blur(25px);
  padding: 3rem;
  border-radius: 28px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
  text-align: center;
  max-width: 550px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  background: var(--background-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-text {
  font-size: 1.15rem;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.highlight {
  color: var(--primary-color);
  font-weight: 600;
}

/* --- Status & Progress --- */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: var(--text-light);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 500;
  margin: 1.5rem auto;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--text-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.progress-container {
  margin: 2rem auto;
  text-align: left;
}

.progress-label {
  font-size: 0.9rem;
  color: #718096;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.progress-wrapper {
  position: relative;
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: visible;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #39ff14, #00b82b);
  border-radius: 10px;
  width: 0%;
  box-shadow: 0 0 5px #39ff14, 0 0 10px #39ff14, 0 0 15px #39ff14;
  transition: width 0.1s linear;
  position: relative;
}

.laptop-icon {
  position: absolute;
  top: -7px;
  right: -20px;
  color: #39ff14;
  filter: drop-shadow(0 0 5px #39ff14);
}

.laptop-icon::before {
  content: "💻";
  font-size: 24px;
}

/* --- Social Links --- */
.social-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.social-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  color: var(--primary-color);
  font-size: 1.6rem;
  transition: all 0.3s ease;
  padding: 0.8rem;
  border-radius: 12px;
  background: rgba(102, 126, 234, 0.1);
  text-decoration: none;
  line-height: 1;
}

.social-link:hover {
  color: var(--text-light);
  background: var(--background-gradient);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.more-link {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.9rem 1.2rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .profile-picture-container {
    width: 120px;
    height: 120px;
  }
  .name {
    font-size: 2.8rem;
  }
  .main-card {
    padding: 2.5rem 2rem;
  }
  .card-title {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  .profile-picture-container {
    width: 100px;
    height: 100px;
  }
  .name {
    font-size: 2.2rem;
  }
  .tech-item {
    width: 70px;
    height: 70px;
  }
  .tech-stack {
    gap: 1.5rem;
  }
  .tech-stack i {
    font-size: 2.4rem;
  }
}
