/* =====================================================================
   CONTACT PAGE – FINAL CSS (QC Analytics Hub)
   ===================================================================== */

/* ================= GLOBAL RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: radial-gradient(circle at top, #3f3f3f, #1e1e1e);
  color: #e0e0e0;
  overflow: hidden; /* Match home page */
  height: 100vh; /* Match home page */
  position: relative; /* Match home page */
  max-width: 100vw;
}

/* ================= PAGE TRANSITIONS ================= */
.fade-in {
  animation: fadeInPage 0.6s ease forwards;
}

.fade-out {
  animation: fadeOutPage 0.4s ease forwards;
}

@keyframes fadeInPage {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOutPage {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* ================= VARIABLES ================= */
:root {
    --primary-color: #ff6b00;
    --text-white: #ffffff;
}

/* ================= NAVBAR ================= */
.glass-nav {
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo i {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
}

.nav-item {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.4);
    transform: translateY(-2px);
}

/* ================= HERO SECTION ================= */
.hero-contact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(145deg, #1a1a1a, #2b2b2b);
  padding: 40px 60px;
  border-radius: 25px;
  position: absolute;
  top: 90px;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ================= LEFT CONTENT ================= */
.hero-left-contact {
  flex: 1;
  padding-right: 5%;
}

#dev-title {
  font-size: 25px;
  font-weight: 900;
  background: linear-gradient(90deg, #f5d76e, #ffffff, #c9c9c9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shimmerTitle 4s linear infinite;
  margin-bottom: 15px;
}

@keyframes shimmerTitle {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 200% 50%;
  }
}

.glow-line-contact {
  width: 100%;
  height: 2px;
  border-radius: 5px;
  background: linear-gradient(90deg, #f5d76e, #c9c9c9);
  box-shadow: 0 0 20px #f5d76e;
  margin-bottom: 15px;
}

.dev-description {
  font-size: 1rem;
  line-height: 1.8;
  color: #ffffff;
  margin-bottom: 25px;
}

/* ================= CONTACT DETAILS ================= */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-details-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(245, 215, 110, 0.05);
  border: 1px solid rgba(245, 215, 110, 0.2);
  padding: 12px 18px;
  border-radius: 14px;
  width: fit-content;
  box-shadow: 0 0 15px rgba(245, 215, 110, 0.08);
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
}

.contact-item:hover {
  transform: translateX(8px);
  box-shadow: 0 0 25px rgba(245, 215, 110, 0.4);
}

.contact-item i {
  font-size: 20px;
  color: #f5d76e;
}

.contact-item strong {
  color: #f5d76e;
}

.contact-item a,
.contact-item a:visited,
.contact-item a:active {
  color: #c9c9c9;
  text-decoration: none;
}

.contact-item a:hover {
  color: #f5d76e;
}

/* ================= PORTFOLIO LINK ================= */
.portfolio-link {
  color: #f5d76e;
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

.portfolio-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #ffffff;
  transition: width 0.3s ease;
}

.portfolio-link:hover {
  color: #ffffff;
}

.portfolio-link:hover::after {
  width: 100%;
}

/* ================= RIGHT IMAGE ================= */
.hero-image-container {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 40px #f5d76e;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 40px #f5d76e;
  }
  50% {
    box-shadow: 0 0 60px #c9c9c9;
  }
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  object-position: center 20%; /* Shift image down slightly */
}

.glow-circle {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 40px;
  background: radial-gradient(
    circle,
    rgba(245, 215, 110, 0.8),
    transparent 70%
  );
  filter: blur(30px);
}

/* ================= FOOTER ================= */
.glass-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    text-align: center;
    z-index: 100;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.glass-footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin: 0;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .hero-image-container {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .hero-contact {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 20px;
  }

  .hero-left-contact {
    padding-right: 0;
  }

  .contact-details-row {
    flex-direction: column;
    align-items: center;
  }

  .contact-item {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  #dev-title {
    font-size: 18px;
  }

  .hero-image-container {
    width: 150px;
    height: 150px;
  }

  .dev-description {
    font-size: 0.85rem;
  }
}
