/* Modern Tech-Savvy Portfolio Design System with Royal Blue & Nature Theme */

:root {
  /* Royal Blue & Nature Color Palette */
  --primary-color: hsl(225, 73%, 57%);
  --primary-glow: hsl(225, 73%, 67%);
  --primary-dark: hsl(225, 73%, 47%);
  
  --secondary-color: hsl(218, 27%, 20%);
  --secondary-light: hsl(218, 27%, 16%);
  
  --accent-color: hsl(142, 52%, 57%);
  --accent-light: hsl(142, 52%, 67%);
  
  --success-color: hsl(120, 60%, 50%);
  --warning-color: hsl(45, 93%, 47%);
  --info-color: hsl(200, 85%, 60%);
  --danger-color: hsl(0, 84%, 60%);
  
  --background-light: hsl(210, 20%, 98%);
  --background-dark: hsl(218, 27%, 8%);
  
  --text-primary: hsl(218, 27%, 20%);
  --text-secondary: hsl(215, 16%, 47%);
  --text-light: hsl(210, 20%, 98%);
  
  --border-color: hsl(214, 32%, 91%);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-glow));
  --gradient-hero: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  --gradient-nature: linear-gradient(180deg, var(--background-light) 0%, hsl(142, 20%, 96%) 100%);
  --gradient-tech: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  
  /* Shadows */
  --shadow-soft: 0 2px 8px hsla(225, 73%, 57%, 0.08);
  --shadow-medium: 0 4px 16px hsla(225, 73%, 57%, 0.12);
  --shadow-strong: 0 8px 32px hsla(225, 73%, 57%, 0.16);
  --shadow-glow: 0 0 40px hsla(225, 73%, 67%, 0.3);
  
  /* Transitions */
  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.3s ease-out;
  --transition-slow: 0.5s ease-out;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

.navbar .container, .navbar .container-fluid {
  max-width: 100vw;
  overflow-x: hidden;
}

.navbar-nav {
  flex-wrap: wrap;
}

img, .profile-image {
  max-width: 100%;
  height: auto;
  display: block;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

/* Navigation */
.tech-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.tech-nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft);
}

.navbar-brand {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.25rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-primary) !important;
  transition: color var(--transition-normal);
  position: relative;
}

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

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

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

/* Active Navigation Link */
.nav-link.active {
  color: var(--primary-color) !important;
}

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

/* Hero Section */
.hero-section {
  background: var(--gradient-nature);
  position: relative;
  overflow: hidden;
}

.hero-bg-effects {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.tech-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(hsla(225, 73%, 57%, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, hsla(225, 73%, 57%, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-move 20s linear infinite;
}

.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.shape-3 {
  width: 80px;
  height: 80px;
  bottom: 20%;
  left: 60%;
  animation-delay: 4s;
}

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

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

.profile-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid var(--primary-color);
  box-shadow: var(--shadow-medium);
  transition: all var(--transition-normal);
}

.profile-image:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

.profile-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.3;
  filter: blur(20px);
  z-index: -1;
  animation: pulse-glow 3s ease-in-out infinite;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.hero-location {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.btn-hero {
  background: var(--gradient-primary);
  border: none;
  color: white;
  padding: 12px 30px;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition-normal);
  text-decoration: none;
  display: inline-block;
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: white;
}

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* About Section */
.about-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  text-align: center;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.about-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-card ul {
  text-align: left;
}

.about-card li {
  margin-bottom: 0.5rem;
  transition: color var(--transition-normal);
}

.about-card li:hover {
  color: var(--primary-color);
}

.tech-quote {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary-color);
  font-style: italic;
  box-shadow: var(--shadow-soft);
}

/* Projects Section */
.project-card {
  background: var(--secondary-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

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

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

.project-content {
  padding: 1.5rem;
}

.project-title {
  color: var(--primary-glow);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.project-description {
  color: #ccc;
  margin-bottom: 1rem;
}

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

.tech-badge {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Skills Section */
.skill-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.skill-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.skill-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.skill-list {
  list-style: none;
  text-align: left;
}

.skill-list li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  transition: color var(--transition-normal);
}

.skill-list li:hover {
  color: var(--primary-color);
}

/* Skill Card Variants */
.frontend-card:hover .skill-icon {
  color: #e34c26;
}

.backend-card:hover .skill-icon {
  color: var(--success-color);
}

.database-card:hover .skill-icon {
  color: var(--warning-color);
}

.tools-card:hover .skill-icon {
  color: var(--info-color);
}

/* Contact Section */
.contact-info h4 {
  color: var(--primary-glow);
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  color: #ccc;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all var(--transition-normal);
}

.social-link i {
  font-size: 1.5rem;
  margin-right: 1rem;
  width: 30px;
}

.social-link:hover {
  color: var(--primary-glow);
  transform: translateX(5px);
}

.contact-form {
  background: var(--secondary-light);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: var(--radius-sm);
}

.contact-form .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(74, 124, 246, 0.25);
  color: white;
}

.contact-form .form-label {
  color: #ccc;
  font-weight: 500;
}

.contact-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
  opacity: 1;
}

.contact-form .form-control::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact-form .form-control::-moz-placeholder {
  color: rgba(255, 255, 255, 0.6);
  opacity: 1;
}

.contact-form .form-control:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Footer */
.footer {
  background: var(--gradient-tech);
  color: var(--text-light);
}

.footer-info p {
  margin-bottom: 0.5rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-normal);
}

.footer-link:hover {
  color: var(--primary-glow);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary) !important;
  color: white !important;
  border: none !important;
  border-radius: 50% !important;
  font-size: 18px !important;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease !important;
  z-index: 1000;
  box-shadow: var(--shadow-medium) !important;
}

.back-to-top:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-glow) !important;
}

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

.float-animation {
  animation: float 6s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

@keyframes grid-move {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .profile-image {
    width: 150px;
    height: 150px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .profile-image {
    width: 120px;
    height: 120px;
  }
  
  .about-card,
  .skill-card {
    padding: 1.5rem;
  }
  
  .project-content {
    padding: 1rem;
  }
}
