:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --dark-bg: #0b1727;
  --card-bg: #ffffff;
  --text-main: #212529;
  --text-muted: #6c757d;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- NAVBAR STYLING --- */
.navbar {
  background-color: transparent !important;
  backdrop-filter: none;
  transition: all 0.4s ease;
  padding-top: 20px;
  padding-bottom: 20px;
}

/* State when scrolled down */
.navbar.scrolled {
  background-color: rgba(11, 23, 39, 0.95) !important;
  backdrop-filter: blur(10px);
  padding-top: 10px;
  padding-bottom: 10px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-link {
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
}

/* --- HERO SECTION --- */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0b1727 0%, #1c2e4a 100%);
  color: #fff;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 0;
}

#heroCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.6;
}

#hero .container {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  background-color: var(--primary-color);
  animation: blink 1s infinite;
}

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

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
}

.hero-img-container {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

.profile-img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 30px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: rotate(-3deg);
  transition: transform 0.3s;
}

.profile-img:hover {
  transform: rotate(0deg) scale(1.02);
}

/* --- ABOUT IMAGE --- */
.about-img-container {
  padding: 20px;
}

.about-img {
  width: 100%;
  max-width: 450px;
  height: auto;
  object-fit: cover;
  border-radius: 30px;
  border: 8px solid #ffffff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  transform: rotate(3deg);
  transition: all 0.4s ease;
}

.about-img:hover {
  transform: rotate(0deg) scale(1.03) translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  border-color: var(--primary-color);
}

/* --- ANIMATIONS & SECTIONS --- */
.reveal {
  position: relative;
  transform: translateY(50px);
  opacity: 0;
  transition: all 1s ease;
}

.reveal.active {
  transform: translateY(0);
  opacity: 1;
}

section {
  padding: 5rem 0;
}

.section-title {
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  font-size: 2.5rem;
}

.section-title::after {
  content: "";
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  border-radius: 2px;
  transition: width 0.3s;
}

.section-title:hover::after {
  width: 100%;
}

/* Cards */
.card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.1s;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* Skills */
.skill-item {
  margin-bottom: 1.5rem;
}

.progress {
  height: 10px;
  border-radius: 5px;
  background-color: #e9ecef;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary-color), #4dabf7);
  border-radius: 5px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.1, 0.7, 1.0, 0.1);
}

/* Back to Top */
#btn-back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  z-index: 1000;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
  color: white;
}

/* Utilities */
.text-gradient {
  background: linear-gradient(45deg, #0d6efd, #0dcaf0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-primary {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
  transition: all 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.4);
}

.social-icon {
  width: 45px;
  height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.3s;
  text-decoration: none;
}

.social-icon:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-3px) rotate(360deg);
}
