:root {
  --primary-color: #00d2ff;
  --secondary-color: #3a7bd5;
  --bg-color: #0f0c29;
  --bg-gradient: linear-gradient(to right, #24243e, #302b63, #0f0c29);
  --text-color: #ffffff;
  --text-muted: #aab2bd;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --card-hover-transform: translateY(-10px);
  --transition-speed: 0.3s;
}

body {
  background: var(--bg-gradient);
  color: var(--text-color);
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
}

/* Glassmorphism Utility */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Navbar */
.navbar {
  background: rgba(15, 12, 41, 0.8);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
}

.nav-link {
  color: var(--text-color) !important;
  font-weight: 500;
  margin-left: 1.5rem;
  position: relative;
  transition: color var(--transition-speed);
}

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

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

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

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px; /* Prevent navbar overlap */
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.btn-primary-custom {
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  border: none;
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: transform var(--transition-speed),
    box-shadow var(--transition-speed);
}

.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 210, 255, 0.3);
  color: white;
}

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

.hero-img {
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: float 6s ease-in-out infinite;
}

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

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 4px;
  background: var(--primary-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* About Section */
.about-card {
  padding: 3rem;
}

.about-text {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.1rem;
}

.social-icons a {
  color: var(--text-color);
  font-size: 1.5rem;
  margin-right: 1rem;
  transition: color var(--transition-speed);
}

.social-icons a:hover {
  color: var(--primary-color);
}

/* Skills Section */
.skill-item {
  margin-bottom: 1rem;
  padding: 15px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.skill-item:hover {
  transform: translateY(-5px) scale(1.02);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.skill-name {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.skill-item:hover .skill-name {
  color: var(--primary-color);
}

.progress {
  height: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  transition: width 0.6s ease, box-shadow 0.3s ease;
}

.skill-item:hover .progress-bar {
  box-shadow: 0 0 15px var(--primary-color);
}

/* Portfolio Section */
.portfolio-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 30px;
  transition: transform var(--transition-speed);
}

.portfolio-item:hover {
  transform: var(--card-hover-transform);
}

.portfolio-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 12, 41, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity var(--transition-speed);
  padding: 20px;
  text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.portfolio-desc {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

/* Contact Section */
.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-color);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
  box-shadow: none;
  outline: none;
}

.contact-info-item {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.contact-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-right: 1.5rem;
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.3);
  padding: 3rem 0;
  margin-top: 5rem;
  text-align: center;
}

.footer-text {
  color: var(--text-muted);
}

/* Notification System */
.notification-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
  width: 100%;
  pointer-events: none;
}

.notification-alert {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 0;
  margin-bottom: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: all;
  position: relative;
}

.notification-alert.show {
  opacity: 1;
  transform: translateX(0);
}

.notification-content {
  display: flex;
  align-items: flex-start;
  padding: 20px;
  gap: 15px;
}

.notification-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.notification-message {
  flex: 1;
  min-width: 0;
}

.notification-message strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.notification-message p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.notification-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.notification-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.notification-progress::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  animation: progress 5s linear forwards;
}

@keyframes progress {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Success Notification */
.notification-success {
  border-left: 4px solid #10b981;
}

.notification-success .notification-icon {
  color: #10b981;
}

.notification-success .notification-progress::after {
  background: linear-gradient(to right, #10b981, #059669);
}

/* Error Notification */
.notification-error {
  border-left: 4px solid #ef4444;
}

.notification-error .notification-icon {
  color: #ef4444;
}

.notification-error .notification-progress::after {
  background: linear-gradient(to right, #ef4444, #dc2626);
}

/* Warning Notification */
.notification-warning {
  border-left: 4px solid #f59e0b;
}

.notification-warning .notification-icon {
  color: #f59e0b;
}

.notification-warning .notification-progress::after {
  background: linear-gradient(to right, #f59e0b, #d97706);
}

/* Info Notification */
.notification-info {
  border-left: 4px solid #3b82f6;
}

.notification-info .notification-icon {
  color: #3b82f6;
}

.notification-info .notification-progress::after {
  background: linear-gradient(to right, #3b82f6, #2563eb);
}

/* Responsive */
@media (max-width: 768px) {
  .notification-container {
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .notification-alert {
    transform: translateY(-100px);
  }

  .notification-alert.show {
    transform: translateY(0);
  }
}
