/* ------------------------------
   Global & Theme
------------------------------ */

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

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

body {
  font-family: 'Fira Code', monospace;
  background: radial-gradient(circle at top left, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  min-height: 100vh;
  overflow-x: hidden; /* allow vertical scroll */
}
html {
  scroll-behavior: smooth;
}

/* Canvas behind everything */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ------------------------------
   Layout
------------------------------ */

.container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100vh;
  padding: 0 8%;
  z-index: 1;
}

/* Left (text side) */
.left {
  flex: 1;
  max-width: 55%;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #38bdf8;
  text-shadow: 0 0 8px #38bdf8;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.subtitle {
  font-size: 1rem;
  line-height: 1.6;
  color: #e2e8f0;
  margin-bottom: 2rem;
}

/* Button */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1px solid #38bdf8;
  color: #38bdf8;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease-in-out;
}

.btn:hover {
  background: #38bdf8;
  color: #0f172a;
  box-shadow: 0 0 12px #38bdf8;
}

/* Right (image side) */
.right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #38bdf8;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.3);
  transform: translateY(0);
  animation: float 4s ease-in-out infinite;
}


















/* Floating animation for image */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

/* ------------------------------
   Responsive Design
------------------------------ */

@media (max-width: 900px) {
  .container {
    flex-direction: column;
    text-align: center;
    padding: 5% 8%;
  }
  .left, .right {
    max-width: 100%;
  }
  .profile-img {
    width: 220px;
    height: 220px;
    margin-top: 2rem;
  }
}
@media (max-width: 768px) {
  .project-overlay h3 {
    font-size: 1rem;
  }
  .project-overlay p {
    font-size: 0.8rem;
    line-height: 1.4;
  }
  .tech-tag {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
  }
  .btn {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
  }
}
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
    text-align: center;
  }
  .subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    padding: 0 1rem;
  }
  .left, .right {
    max-width: 100%;
    flex: none;
  }
  .container {
    flex-direction: column;
    padding: 2rem 1rem;
  }
  .profile-img {
    width: 220px;
    height: 220px;
    margin-top: 1rem;
  }
}


/* ------------------------------
   Contact / Social Footer Bar
------------------------------ */

.contact-bar {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.5rem;
  z-index: 10;
}

@media (max-width: 768px) {
  .contact-bar {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
}

.icon-bubble {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #38bdf8;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
  transition: all 0.3s ease-in-out;
}

/* Target SVG icons, not <img> */
.icon-bubble svg {
  width: 28px;
  height: 28px;
  fill: #f8fafc;   /* bright white */
  transition: all 0.3s ease-in-out;
}

/* Hover: background glows cyan and icon turns dark */
.icon-bubble:hover {
  background: #38bdf8;
  box-shadow: 0 0 18px #38bdf8;
  transform: translateY(-4px);
}

.icon-bubble:hover svg {
  fill: #0f172a;   /* dark navy icon */
}


/* PROJECT CSS WORK */
.slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.project-card .slideshow img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.project-card .slideshow img.active {
  opacity: 1;
  z-index: 1;
}

