/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

/* CSS Variables */
:root {
  --primary-color: #facc15;
  --secondary-color: #f97316;
  --dark-bg: #0f172a;
  --dark-secondary: #1e293b;
  --dark-card: #334155;
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --gradient: linear-gradient(135deg, #facc15 0%, #f97316 100%);
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  --border-radius: 1rem;
  --transition: all 0.3s ease;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Utility Classes */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-dark-secondary {
  background-color: var(--dark-secondary) !important;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

/* Navigation */
.custom-navbar {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(248, 250, 252, 0.1);
  transition: var(--transition);
}

.custom-navbar.scrolled {
  background: rgba(15, 23, 42, 0.98) !important;
  box-shadow: var(--shadow);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
}

.navbar-nav .nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  position: relative;
  transition: var(--transition);
}

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

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: var(--transition);
  transform: translateX(-50%);
}

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

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(250, 204, 21, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  z-index: 2;
  position: relative;
}

.hero-image-container {
  position: relative;
  display: inline-block;
}

.hero-image-wrapper {
  position: relative;
  z-index: 2;
}

.hero-image {
  width: 350px;
  height: 350px;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  box-shadow: 0 0 50px rgba(250, 204, 21, 0.3);
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.floating-1 {
  width: 80px;
  height: 80px;
  background: rgba(250, 204, 21, 0.2);
  top: -20px;
  right: -20px;
  animation-delay: 0s;
}

.floating-2 {
  width: 60px;
  height: 60px;
  background: rgba(249, 115, 22, 0.2);
  bottom: -20px;
  left: -20px;
  animation-delay: 3s;
}

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

/* Typing Animation */
#typed-text {
  min-height: 1.2em;
  display: inline-block;
}

.cursor {
  animation: blink 1s infinite;
}

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

/* Social Links */
.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: var(--transition);
  font-size: 1.2rem;
}

.social-link.facebook {
  background: #3b5998;
}

.social-link.linkedin {
  background: #0077b5;
}

.social-link.github {
  background: #333;
}

.social-link:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  color: white;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--primary-color);
  font-size: 2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* About Section */
.info-item {
  margin-bottom: 0.5rem;
}

.about-image-container {
  position: relative;
}

.about-image-border {
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  z-index: -1;
}

/* Stats */
.stat-card {
  background: rgba(51, 65, 85, 0.5);
  border-radius: var(--border-radius);
  padding: 2rem 1rem;
  transition: var(--transition);
  border: 1px solid rgba(248, 250, 252, 0.1);
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  background: rgba(51, 65, 85, 0.7);
}

.stat-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
}

/* Skills Section */
.skill-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.skill-filter {
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: var(--transition);
}

.skill-filter.active,
.skill-filter:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--dark-bg);
}

.skill-card {
  background: rgba(51, 65, 85, 0.5);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  border: 1px solid rgba(248, 250, 252, 0.1);
  transition: var(--transition);
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  background: rgba(51, 65, 85, 0.7);
}

.skill-icon {
  font-size: 1.5rem;
}

.skill-progress {
  height: 8px;
  background-color: rgba(248, 250, 252, 0.1);
}

.skill-progress .progress-bar {
  background: var(--gradient);
  transition: width 1.5s ease-in-out;
}

/* Projects Section */
.project-card {
  background: rgba(51, 65, 85, 0.5);
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid rgba(248, 250, 252, 0.1);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.project-image {
  position: relative;
  overflow: hidden;
}

.project-image img {
  transition: transform 0.3s ease;
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-content {
  padding: 1.5rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Contact Section */
.contact-icon {
  width: 60px;
  height: 60px;
  background: rgba(250, 204, 21, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.contact-form-container {
  background: rgba(51, 65, 85, 0.5);
  border-radius: var(--border-radius);
  padding: 2rem;
  border: 1px solid rgba(248, 250, 252, 0.1);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(250, 204, 21, 0.25);
}

/* Footer */
.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color) !important;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--gradient);
  color: var(--dark-bg);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

/* Section Spacing */
section {
  scroll-margin-top: 80px;
}

/* Loading Animation */
.loading {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.loading.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(250, 204, 21, 0.3);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
