/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: url('../bg.jpg') no-repeat center center fixed;
  background-size: cover;
  color: white;
  overflow-x: hidden;
  padding: 60px 20px 40px; /* top padding for navbar space, bottom for breathing room */
  box-sizing: border-box;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 40px; /* Adjust right padding only */
  background: linear-gradient(90deg, #1cb5e0, #000046);
  position: fixed;
  width: 100vw;
  left: 0;
  top: 0;
  z-index: 10;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
  height: 60px;
  margin: 0;
}
.navbar:hover {
  box-shadow: 0 0 20px cyan;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 35px;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 1.2rem;
  position: relative;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -6px;
  left: 0;
  background: #00f5ff;
  transition: 0.3s;
}

.nav-links a:hover {
  text-shadow: 0 0 8px cyan;
  color: #0ff;
}

.nav-links a:hover::after {
  width: 100%;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: start;
  align-items: start;
  margin: auto;
  padding: 5vh 3vw;
  max-width: 1400px;
  width: 100%;
  box-sizing: border-box;
}


.about-left {
  flex: 1 1 320px;
  display: flex;
  justify-content: flex-start;
  min-width: 300px;
  transform: translateX(1vw);
}

.profile-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px #0ff;
  text-align: center;
  max-width: 320px;
  width: 100%;
  transition: transform 0.3s;
}

.profile-card:hover {
  transform: scale(1.05);
}

.profile-img {
  border-radius: 50%;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border: 4px solid #0ff;
  margin-bottom: 20px;
}

.tagline {
  font-style: italic;
  color: #ccc;
}

.about-right {
  flex: 2 1 600px;
  min-width: 320px;
  transform: translateX(-1vw);
}

.glow-title {
  font-size: clamp(1.8rem, 2.5vw, 2.8rem);
  text-shadow: 0 0 15px #0ff, 0 0 25px #0ff;
  margin-bottom: 20px;
}

.bio {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  color: #eee;
  margin-bottom: 40px;
  animation: fadeIn 2s ease-out;
}

/* Flip Cards */
.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 30px;
  padding-left: 1vw;
}

.flip-card {
  background: transparent;
  width: 200px;
  height: 160px;
  perspective: 1000px;
  flex: 0 0 auto;
}


.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}

.flip-front, .flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 15px;
  box-shadow: 0 0 15px #0ff;
}

.flip-front {
  background: rgba(0, 255, 255, 0.1);
}

.flip-back {
  background: rgba(255, 255, 255, 0.1);
  transform: rotateY(180deg);
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}