:root {
  --primary: #e11d48;
  --secondary: #f97316;
  --dark: #1f2937; /* slightly darker */
  --text: #f1f5f9;
  --light: rgba(248, 250, 252, 0.2);
  --gradient: linear-gradient(135deg, #e11d48, #f97316);
  --glass-bg: rgba(31, 41, 55, 0.3);
  --shadow-color: rgba(0, 0, 0, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
  scroll-behavior: smooth;
}

body {
  background: #111827;
  color: var(--text);
  line-height: 1.6;
}

/* ================= NAVBAR ================= */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(31,41,55,0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

#navbar.scrolled {
  background: rgba(31,41,55,0.8);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#navbar .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}

#navbar ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

#navbar ul li a {
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  color: var(--text);
  position: relative;
  padding: 5px 0;
}

#navbar ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
  border-radius: 2px;
}

#navbar ul li a:hover::after,
#navbar ul li a.active::after {
  width: 100%;
}

/* ================= HERO ================= */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 6rem 3rem 3rem;
  max-width: 1200px;
  margin: auto;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeInLeft 1s ease forwards;
}

#hero .intro {
  font-size: 5rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#hero h2 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text);
}

#hero h4 {
  font-size: 1.3rem;
  font-weight: 500;
  color: #cbd5e1;
}

#hero p {
  font-size: 1.1rem;
  color: #cbd5e1;
  max-width: 600px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.hero-buttons .btn {
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  backdrop-filter: blur(5px);
}

.btn.primary {
  background: var(--gradient);
  color: #fff;
}

.btn.primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(225,29,72,0.4);
}

.btn.secondary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn.secondary:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
}

/* Hero Image */
.hero-image {
  flex: 1;
  display: flex;
  border-radius: 50%;
  justify-content: center;
  background-color: #1f2937;
  align-items: center;
}

.hero-image img {
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.hero-image:hover img {
  transform: scale(1.05);
}
/* ================= HERO FLOATING SHAPES ================= */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.6;
  z-index: 0;
  animation: float 20s linear infinite;
}

/* Gradient floating shapes */
.hero::before {
  width: 350px;
  height: 350px;
  background: linear-gradient(45deg, #e11d48, #f97316);
  top: -100px;
  left: -150px;
}

.hero::after {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #10b981, #3b82f6);
  bottom: -100px;
  right: -100px;
  animation-duration: 25s;
}

/* Floating animation */
@keyframes float {
  0% { transform: translateY(0) translateX(0) rotate(0deg); }
  50% { transform: translateY(-40px) translateX(20px) rotate(180deg); }
  100% { transform: translateY(0) translateX(0) rotate(360deg); }
}

/* Ensure hero content above shapes */
#hero .hero-content,
#hero .hero-image {
  position: relative;
  z-index: 10;
}

/* ================= SECTIONS ================= */
section {
  padding: 6rem 3rem;
  max-width: 1200px;
  margin: auto;
}

section h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  position: relative;
  color: var(--text);
}

section h2 i {
  color: var(--primary);
  margin-right: 8px;
}

section h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background: var(--gradient);
  left: 0;
  bottom: -10px;
  border-radius: 2px;
}

/* ================= CARDS ================= */
.card-container,
.edu-card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  perspective: 1200px;
}

/* Glass Card Base */
.card, .project-card, .edu-card, .achievement {
  background: var(--glass-bg);
  border-radius: 20px;
  padding: 1.5rem;
  color: var(--text);
  box-shadow: 0 8px 24px var(--shadow-color);
  backdrop-filter: blur(10px);
  transform-style: preserve-3d;
  cursor: pointer;
  transition: all 0.4s ease;
}

.achievement-img {
  border-radius: 15px;
  overflow: hidden;
}

.achievement-img img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.achievement-img:hover img {
  transform: scale(1.05);
}

/* 3D Hover Effect */
.card:hover, .project-card:hover, .edu-card:hover, .achievement:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Card Titles & Text */
.card h3, .project-card h3, .edu-card h3, .achievement h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
  text-transform: capitalize;
}

.tags {
  margin: 0.8rem 0;
}
.tag {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  font-size: 0.8rem;
  margin: 0.2rem;
  backdrop-filter: blur(5px);
}

.links a {
  text-decoration: none;
  color: var(--secondary);
  margin-right: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}
.links a:hover {
  color: var(--primary);
}

/* Education Images */
.edu-card .edu-img img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 20%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.edu-card:hover .edu-img img {
  transform: scale(1.1);
}

/* Socials */
.socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.socials a {
  font-size: 2rem;
  color: var(--text);
  transition: all 0.3s ease;
}
.socials a:hover {
  color: var(--primary);
  transform: scale(1.2);
}

/* Animations */
@keyframes fadeInLeft {
  0% { opacity: 0; transform: translateX(-40px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 900px) {
  #hero { flex-direction: column; text-align: center; }
  .hero-buttons { justify-content: center; }
  .hero-image img { max-width: 80%; }
}
