/* ============================================
   MODERN PORTFOLIO DESIGN STYLES
   Light/Dark Mode + Enhanced UI
   ============================================ */

/* Light Theme Variables */
:root {
  --light-bg-primary: #ffffff;
  --light-bg-secondary: #f6f8fa;
  --light-bg-tertiary: #eef2f5;
  --light-text-primary: #1f2937;
  --light-text-secondary: #4b5563;
  --light-text-tertiary: #6b7280;
}

/* Light Theme */
body.light-mode {
  background: linear-gradient(135deg, var(--light-bg-primary) 0%, var(--light-bg-secondary) 50%, var(--light-bg-tertiary) 100%) !important;
  color: var(--light-text-primary) !important;
}

body.light-mode::before {
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(79, 195, 247, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(41, 182, 246, 0.08) 0%, transparent 50%) !important;
}

body.light-mode section {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-mode p,
body.light-mode li {
  color: var(--light-text-secondary) !important;
}

body.light-mode strong,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4 {
  color: var(--light-text-primary) !important;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(24px) saturate(220%);
  -webkit-backdrop-filter: blur(24px) saturate(220%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

body.light-mode .navbar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
}

body.light-mode .nav-logo {
  color: var(--light-text-primary);
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

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

.nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

body.light-mode .nav-links a {
  color: var(--light-text-secondary);
}

.nav-links a:hover {
  color: var(--accent-primary);
  background: rgba(79, 195, 247, 0.1);
  transform: translateY(-2px);
}

.theme-toggle {
  background: rgba(33, 38, 45, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 0.75rem;
  cursor: pointer;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

body.light-mode .theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(10deg);
  border-color: var(--accent-primary);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  position: relative;
  transition: all 0.3s ease;
}

body.light-mode .hamburger {
  background: var(--light-text-primary);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

body.light-mode .hamburger::before,
body.light-mode .hamburger::after {
  background: var(--light-text-primary);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 4rem 2rem !important;
  margin-bottom: 6rem !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

body.light-mode .hero-title {
  color: var(--light-text-primary);
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulseGlow 3s infinite alternate;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

body.light-mode .hero-subtitle {
  color: var(--light-text-secondary);
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-tertiary);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 550px;
}

body.light-mode .hero-description {
  color: var(--light-text-tertiary);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.cta-primary,
.cta-secondary {
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.8);
}

.cta-secondary {
  background: rgba(33, 38, 45, 0.6);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .cta-secondary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--light-text-primary);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.cta-secondary:hover {
  background: rgba(48, 54, 61, 0.8);
  transform: translateY(-3px);
}

.hero-social {
  display: flex;
  gap: 1rem;
}

.hero-social a {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(33, 38, 45, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

body.light-mode .hero-social a {
  background: rgba(0, 0, 0, 0.05);
  color: var(--light-text-primary);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.hero-social a:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-3px) scale(1.1);
  border-color: var(--accent-primary);
}

.hero-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-container {
  position: relative;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent-primary);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.8), 0 0 60px rgba(79, 195, 247, 0.3);
  animation: float 6s ease-in-out infinite;
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* About Section */
.about-section .about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

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

.about-image {
  display: flex;
  justify-content: center;
}

.about-image img {
  width: 100%;
  max-width: 300px;
  border-radius: 24px;
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.05) rotate(2deg);
}

/* Skills Tags */
.skills-tags {
  margin-top: 3rem;
  text-align: center;
}

.skills-tags h3 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.3rem, 4vw, 1.5rem);
  color: var(--text-primary);
}

body.light-mode .skills-tags h3 {
  color: var(--light-text-primary);
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.skill-tag {
  padding: 0.75rem 1.5rem;
  background: rgba(33, 38, 45, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
  cursor: pointer;
}

body.light-mode .skill-tag {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--light-text-primary);
}

.skill-tag:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-3px) scale(1.05);
  border-color: var(--accent-primary);
  box-shadow: 0 5px 15px rgba(79, 195, 247, 0.3);
}

/* Skills Progress Bars */
.skills-progress {
  margin-top: 3rem;
}

.skills-progress h3 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: clamp(1.3rem, 4vw, 1.5rem);
  color: var(--text-primary);
}

body.light-mode .skills-progress h3 {
  color: var(--light-text-primary);
}

.progress-bars {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.progress-item {
  width: 100%;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.progress-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

body.light-mode .progress-label {
  color: var(--light-text-primary);
}

.progress-percentage {
  font-weight: 600;
  color: var(--accent-primary);
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: var(--bg-quaternary);
  border-radius: 50px;
  overflow: hidden;
  position: relative;
}

body.light-mode .progress-bar {
  background: rgba(0, 0, 0, 0.1);
}

.progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 50px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background: rgba(33, 38, 45, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

body.light-mode .project-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 32px 128px rgba(0, 0, 0, 0.9);
  border-color: var(--accent-primary);
}

.project-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: rgba(13, 17, 23, 0.5);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  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(13, 17, 23, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

.project-link {
  padding: 0.75rem 1.5rem;
  background: var(--accent-gradient);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease;
}

.project-link:hover {
  transform: scale(1.05);
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  font-size: clamp(1.1rem, 3vw, 1.25rem);
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

body.light-mode .project-content h3 {
  color: var(--light-text-primary);
}

.project-content p {
  color: var(--text-tertiary);
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

body.light-mode .project-content p {
  color: var(--light-text-tertiary);
}

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

.tag {
  padding: 0.4rem 0.9rem;
  background: rgba(79, 195, 247, 0.1);
  color: var(--accent-primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Resume Section */
.resume-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.resume-column h3 {
  font-size: clamp(1.3rem, 4vw, 1.5rem);
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

body.light-mode .resume-column h3 {
  color: var(--light-text-primary);
}

.resume-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(33, 38, 45, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: all 0.3s ease;
}

body.light-mode .resume-item {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.resume-item:hover {
  transform: translateX(10px);
  border-color: var(--accent-primary);
}

.resume-item h4 {
  font-size: clamp(1rem, 3vw, 1.125rem);
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

body.light-mode .resume-item h4 {
  color: var(--light-text-primary);
}

.resume-meta {
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.resume-detail {
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

body.light-mode .resume-detail {
  color: var(--light-text-tertiary);
}

.resume-item ul {
  margin-top: 0.75rem;
  padding-left: 1.5rem;
  list-style: disc;
}

.resume-item li {
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

body.light-mode .resume-item li {
  color: var(--light-text-tertiary);
}

.resume-download {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.download-btn {
  padding: 1.25rem 2.5rem;
  background: var(--accent-gradient);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 32px 128px rgba(0, 0, 0, 0.9);
}

/* Contact Section */
.contact-intro {
  text-align: center;
  font-size: clamp(1rem, 3vw, 1.125rem);
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

body.light-mode .contact-intro {
  color: var(--light-text-secondary);
}

.contact-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

body.light-mode .form-group label {
  color: var(--light-text-primary);
}

.form-group input,
.form-group textarea {
  padding: 1rem 1.25rem;
  background: rgba(33, 38, 45, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

body.light-mode .form-group input,
body.light-mode .form-group textarea {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--light-text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  padding: 1.25rem 2rem;
  background: var(--accent-gradient);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.8);
}

.submit-btn:active {
  transform: translateY(0);
}

.contact-info h3 {
  font-size: clamp(1.3rem, 4vw, 1.5rem);
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

body.light-mode .contact-info h3 {
  color: var(--light-text-primary);
}

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

.social-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(33, 38, 45, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

body.light-mode .social-link {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--light-text-primary);
}

.social-link:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateX(10px);
  border-color: var(--accent-primary);
}

.contact-details {
  padding: 1.5rem;
  background: rgba(33, 38, 45, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

body.light-mode .contact-details {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-details p {
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

body.light-mode .contact-details p {
  color: var(--light-text-tertiary);
}

.contact-details strong {
  color: var(--text-primary);
}

body.light-mode .contact-details strong {
  color: var(--light-text-primary);
}

#form-status {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
  border-radius: 16px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#form-status.show {
  opacity: 1;
}

/* Section Titles */
.section-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 2.25rem);
  margin-bottom: 1rem;
  color: var(--text-primary);
}

body.light-mode .section-title {
  color: var(--light-text-primary);
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-image-container {
    width: 300px;
    height: 300px;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-social {
    justify-content: center;
  }
  
  .about-section .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .about-text {
    text-align: left;
  }
  
  .resume-content {
    grid-template-columns: 1fr;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  body.light-mode .nav-links {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 1rem;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  main {
    padding: 5rem 1rem 2rem;
  }
  
  .tags-container {
    gap: 0.5rem;
  }
  
  .skill-tag {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero-image-container {
    width: 250px;
    height: 250px;
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .cta-primary,
  .cta-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .nav-container {
    padding: 0 1rem;
  }
  
  .project-image {
    height: 200px;
  }
}
