/* ============================================
   MODERN PORTFOLIO - SITE STYLESHEET v2.0
   ============================================ */

:root {
  /* Colors - Modern Indigo & Purple Theme */
  --primary-color: #6366f1;
  --primary-light: #e0e7ff;
  --primary-dark: #4f46e5;
  --secondary-color: #a855f7;
  --secondary-light: #f3e8ff;
  --success-color: #06b6d4;
  
  /* Neutral Colors */
  --gray-900: #0f172a;
  --gray-800: #1e293b;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-400: #94a3b8;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --light: #f8fafc;
  --white: #ffffff;
  
  /* Shadows */
  --shadow-md: 0 4px 6px -1px rgba(99, 102, 241, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(99, 102, 241, 0.15);
  --shadow-xl: 0 20px 25px -5px rgba(99, 102, 241, 0.2);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-700);
  background-color: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--gray-900);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--primary-dark); }

/* Navigation */
.navbar-modern {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  box-shadow: var(--shadow-md);
}

.navbar { padding: 1rem 0; }

.navbar-nav .nav-link {
  color: var(--gray-300) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  border-radius: 0.5rem;
  transition: all var(--transition-fast);
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
  background-color: rgba(37, 99, 235, 0.1);
}

.navbar-brand {
  color: var(--white) !important;
  font-size: 1.5rem;
  margin-right: 2rem;
}

.brand-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  margin-right: 0.5rem;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--light) 0%, var(--white) 50%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

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

.greeting-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background-color: var(--primary-light);
  border-radius: 50px;
  font-weight: 600;
  color: var(--primary-dark);
  border: 1px solid var(--primary-color);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2rem;
  color: var(--gray-900);
}

.gradient-text {
  /* Primary visible text - always visible */
  color: #fff !important;
  font-weight: 700;
  display: inline-block;
  font-size: inherit;
  line-height: inherit;
  
  /* Gradient overlay for supported browsers */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  animation: gradient-shine 8s ease infinite;
  
  /* Remove transparency that causes invisibility */
  -webkit-text-fill-color: unset;
  
  /* Enhanced visibility */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  cursor: default;
  user-select: text;
}

@keyframes gradient-shine {
  0%, 100% { 
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--primary-color);
  }
  50% {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--secondary-color);
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 600px;
  color: var(--gray-600);
}

.avatar-container {
  width: 350px;
  height: 350px;
  margin: 0 auto;
}

.avatar-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  animation: float 3s ease-in-out infinite;
  box-shadow: var(--shadow-xl);
}

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

/* Social Links */
.social-links { flex-wrap: wrap; }

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 50%;
  color: var(--gray-700);
  font-size: 1.25rem;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-color: transparent;
  color: var(--white);
  transform: translateY(-5px);
}

/* Buttons */
.btn {
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  box-shadow: var(--shadow-md);
}

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

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background-color: transparent;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* Sections */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  color: var(--gray-900);
  font-weight: 700;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.title-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* About Section */
.about-section { background-color: var(--white); }

.about-content h3 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--gray-900);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.info-item {
  padding: 1.5rem;
  background-color: var(--light);
  border-radius: 0.75rem;
  border-left: 4px solid var(--primary-color);
  transition: all var(--transition-fast);
}

.info-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.info-label {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.info-value {
  color: var(--gray-600);
  margin: 0;
}

.info-value a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
}

/* Skills Section */
.skills-section { background-color: var(--light); }

.skill-category {
  background: var(--white);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.category-title {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.category-title i { font-size: 1.5rem; }

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.skill-name {
  font-weight: 600;
  color: var(--gray-900);
}

.skill-percent {
  color: var(--primary-color);
  font-weight: 700;
}

.progress {
  height: 8px;
  background-color: var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 1s ease-out;
  border-radius: 10px;
}

/* Projects Section */
.projects-section { background-color: var(--white); }

.project-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  padding: 2rem;
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.project-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--gray-100);
}

.project-title { font-size: 1.25rem; margin: 0; }

.project-link {
  color: var(--primary-color);
  transition: all var(--transition-fast);
}

.project-link:hover { color: var(--primary-dark); }

.project-period {
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-description {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

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

.tech-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--primary-color);
}

.project-highlights { margin-bottom: 1.5rem; }

.project-highlights p {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-600);
}

.project-card-cta {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
  border: 2px dashed var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.project-card-cta .project-title { color: var(--primary-color); }

/* Education Section */
.education-section { background-color: var(--light); }

.education-timeline {
  position: relative;
  padding: 2rem 0;
}

.education-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
  top: 0;
}

.education-item {
  display: flex;
  margin-bottom: 3rem;
  position: relative;
}

.education-item:nth-child(odd) { flex-direction: row-reverse; }

.education-item:nth-child(odd) .education-card {
  margin-right: auto;
  margin-left: 50%;
  padding-left: 2rem;
}

.education-item:nth-child(even) .education-card {
  margin-left: auto;
  margin-right: 50%;
  padding-right: 2rem;
}

.education-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--white);
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  top: 0;
  z-index: 2;
}

.education-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
  width: 100%;
}

.education-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.education-degree {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.education-period {
  color: var(--gray-500);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.education-institution {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin: 0.5rem 0;
}

.education-institution a {
  color: var(--primary-color);
  font-weight: 500;
}

/* Contact Section */
.contact-section { background-color: var(--white); }

.contact-info {
  padding: 2rem;
  background-color: var(--light);
  border-radius: 0.75rem;
  height: 100%;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  border-radius: 0.75rem;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-details h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.contact-details a,
.contact-details p {
  color: var(--gray-600);
  margin: 0;
  font-size: 0.95rem;
}

.social-grid {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 0.75rem;
  margin-top: 1.5rem;
}

.social-grid-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
}

.social-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--light);
  border-radius: 0.75rem;
  color: var(--gray-700);
  transition: all var(--transition-fast);
  text-decoration: none;
  gap: 0.5rem;
}

.social-grid-item:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-4px);
}

.social-grid-item i { font-size: 1.5rem; }
.social-grid-item span { font-size: 0.75rem; font-weight: 600; }

/* Contact Form */
.contact-form {
  background: var(--light);
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.form-label {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.form-control {
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  transition: all var(--transition-fast);
  font-family: 'Inter', sans-serif;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  color: var(--gray-300);
  padding: 4rem 0 1rem;
}

.footer-title {
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

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

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

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-fast);
  z-index: 999;
}

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

.back-to-top.show { display: flex; }

/* Responsive */
@media (max-width: 768px) {
  section { padding: 50px 0; }
  
  .hero-section { padding: 100px 0 50px; }
  .avatar-container { width: 250px; height: 250px; }
  
  .info-grid { grid-template-columns: 1fr; }
  
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  
  .education-timeline::before { left: 8px; }
  .education-marker { left: 8px; }
  .education-item:nth-child(odd) .education-card,
  .education-item:nth-child(even) .education-card {
    margin: 0 0 0 30px !important;
    padding: 1.5rem !important;
  }
}

@media (max-width: 576px) {
  .hero-title { font-size: 1.5rem; }
  .section-title { font-size: 1.5rem; }
  
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
  
  .social-grid-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   ACHIEVEMENTS & LANGUAGES SECTIONS
   ============================================ */

.achievements-section {
  background: linear-gradient(135deg, var(--light) 0%, var(--white) 100%);
}

.achievement-card {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

.achievement-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.achievement-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
  font-size: 1.75rem;
  color: var(--primary-color);
}

.achievement-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.achievement-content p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Languages and Links Section */
.languages-section {
  background-color: var(--light);
}

.skills-group h4 {
  font-size: 1.2rem;
  color: var(--gray-900);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

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

.link-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-base);
}

.link-item:hover {
  background: var(--primary-light);
  border-color: var(--primary-color);
  transform: translateX(4px);
}

.link-item i {
  color: var(--primary-color);
  font-size: 1rem;
}

.skill-label {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 600;
  background: var(--primary-light);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

/* Skill Badges */
.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
  color: var(--primary-dark);
  border: 2px solid var(--primary-color);
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-base);
  cursor: default;
}

.skill-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.2);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  border-color: var(--secondary-color);
}

