/* Global Variables */
:root {
  --primary-color: #3b82f6;
  --primary-dark: #2563eb;
  --secondary-color: #06b6d4;
  --dark-bg: #0f172a;
  --light-bg: #f8fafc;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --transition: all 0.3s ease;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Navigation */
.glass-nav {
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  padding: 1rem 0;
}

.glass-nav.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-family: "Playfair Display", serif;
}

.nav-link {
  font-weight: 500;
  position: relative;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #1e293b 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(59, 130, 246, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(6, 182, 212, 0.15) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Typing Animation */
.typing-text {
  border-right: 3px solid var(--primary-color);
  animation: blink 0.7s step-end infinite;
  white-space: nowrap;
  overflow: hidden;
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.mouse {
  width: 25px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    top: 8px;
  }
  100% {
    opacity: 0;
    top: 20px;
  }
}

/* Social Icons */
.social-icon {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
}

.social-icon:hover {
  color: white;
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

/* Buttons */
.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

/* About Section */
.about-image-wrapper {
  position: relative;
}

.about-image {
  position: relative;
  z-index: 1;
}

.about-image::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  border: 3px solid var(--primary-color);
  border-radius: 1rem;
  z-index: -1;
  transition: var(--transition);
}

.about-image-wrapper:hover .about-image::before {
  top: -10px;
  left: -10px;
  right: 10px;
  bottom: 10px;
}

.experience-badge {
  bottom: -20px;
  right: -20px;
  z-index: 2;
}

/* Skills Progress Bars */
.progress {
  background-color: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  border-radius: 10px;
  transition: width 1.5s ease;
}

.skill-badges .badge {
  font-weight: 500;
  transition: var(--transition);
}

.skill-badges .badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Projects Section */
.project-card {
  transition: var(--transition);
  border: none;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.project-image-wrapper {
  height: 240px;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image {
  transform: scale(1.1);
}

.project-overlay {
  top: 0;
  left: 0;
  background: rgba(15, 23, 42, 0.8);
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.hover-scale {
  transition: var(--transition);
}

.hover-scale:hover {
  transform: scale(1.1);
}

/* Contact Section */
.icon-box {
  transition: var(--transition);
}

.contact-info:hover .icon-box {
  background: var(--primary-color) !important;
  color: white !important;
}

.social-btn {
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-btn:hover {
  transform: translateY(-3px) rotate(360deg);
  color: white !important;
}

.social-btn:hover.btn-outline-dark {
  background: #333;
  border-color: #333;
}

.social-btn:hover.btn-outline-primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.social-btn:hover.btn-outline-info {
  background: #0dcaf0;
  border-color: #0dcaf0;
}

.social-btn:hover.btn-outline-danger {
  background: #dc3545;
  border-color: #dc3545;
}

.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown) {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

.submit-btn {
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Footer */
.hover-white {
  transition: var(--transition);
  text-decoration: none;
  font-size: 1.2rem;
}

.hover-white:hover {
  color: white !important;
  transform: translateY(-3px);
  display: inline-block;
}

/* Utility Classes */
.tracking-widest {
  letter-spacing: 0.2em;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .about-image::before {
    display: none;
  }

  .experience-badge {
    right: 0;
    bottom: -10px;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2rem;
  }

  .typing-text {
    white-space: normal;
    border-right: none;
    animation: none;
  }

  .display-5 {
    font-size: 2rem;
  }
}

/* Animation Classes for AOS */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

/* Loading Animation */
.btn-loading .btn-text {
  opacity: 0.7;
}

.btn-loading .spinner-border {
  display: inline-block !important;
}

/* Custom Form Validation Styles */
.form-control.is-valid {
  border-color: #198754;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
}

.form-control.is-invalid {
  border-color: #dc3545;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
}
