/* ===== PROFESSIONAL DARK THEME - CONSISTENT DESIGN ===== */

/* Professional Dark Color Palette */
:root {
  --primary-color: #10b981;
  --primary-dark: #059669;
  --primary-light: #34d399;
  --accent-color: #6ee7b7;
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-light: #9ca3af;
  --text-muted: #6b7280;
  --bg-primary: #111827;
  --bg-secondary: #1f2937;
  --bg-card: #374151;
  --bg-light: #4b5563;
  --bg-accent: #1a2332;
  --border-color: #4b5563;
  --border-light: #6b7280;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --gradient-primary: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-accent: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

/* Clean Typography for Dark Theme */
body {
  font-family: 'Inter', -apple-system, sans-serif !important;
  line-height: 1.6;
  color: var(--text-primary);
  font-size: 16px;
  background: var(--bg-primary);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
}

p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Header - Dark Theme */
.header {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  background: var(--gradient-primary);
}

/* Profile - Dark Theme */
.my-photo {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.profile-image, .mobile-profile-image {
  width: 120px !important;
  height: 120px !important;
  border-radius: 50% !important;
  border: 3px solid var(--primary-color) !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3) !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: all 0.3s ease !important;
}

.mobile-profile-image {
  width: 50px !important;
  height: 50px !important;
  border-width: 2px !important;
}

.profile-image:hover {
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.5) !important;
  transform: scale(1.05);
}

.status-indicator {
  width: 14px;
  height: 14px;
  background: var(--primary-light);
  border: 2px solid var(--bg-card);
  border-radius: 50%;
  position: absolute;
  bottom: 15px;
  right: 15px;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.site-title {
  font-size: 1.4rem !important;
  font-weight: 600 !important;
  color: var(--text-primary);
}

.site-subtitle, .mobile-subtitle {
  color: var(--text-secondary) !important;
  font-size: 0.9rem !important;
  margin-top: 0.5rem;
}

/* Navigation - Dark Theme */
.header .site-main-menu a {
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  display: block;
  margin-bottom: 0.25rem;
}

.header .site-main-menu a:hover,
.header .site-main-menu a.active {
  color: var(--text-primary);
  background: var(--bg-light);
  transform: translateX(4px);
}

/* Hero Section - Dark Theme */
.start-page-full-width {
  padding: 2rem 0 !important;
  background: var(--bg-secondary);
  border-radius: 12px;
  margin: 1rem 0 !important;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.start-page-full-width::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.start-page-full-width .row {
  margin: 0;
  min-height: auto !important;
}

.start-page-full-width .col-12 {
  padding: 1rem !important;
}

/* Hero Text - Dark Theme */
.hp-text-block {
  text-align: center;
  padding: 1rem !important;
  max-width: 800px;
  margin: 0 auto;
}

.hp-text-block .owl-carousel {
  margin-bottom: 1.5rem;
  background: var(--bg-card);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.hp-text-block .owl-carousel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 8px 8px 0 0;
}

.hp-text-block .owl-carousel .item {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--primary-light);
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.hp-main-title {
  font-size: clamp(2rem, 4vw, 3rem) !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  margin-bottom: 1rem !important;
  background: none !important;
  -webkit-text-fill-color: unset !important;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

#main-summary {
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 1rem auto 2rem auto;
  max-width: 600px;
  text-align: center;
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

/* Buttons - Dark Theme */
.hp-buttons {
  margin-top: 2rem;
  text-align: center;
}

.btn-primary {
  background: var(--gradient-primary) !important;
  border: none !important;
  padding: 12px 32px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  color: white !important;
  transition: all 0.3s ease !important;
  box-shadow: var(--shadow-sm);
  text-transform: none !important;
  letter-spacing: normal !important;
}

.btn-primary:hover {
  background: var(--gradient-accent) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4) !important;
}

/* Cards - Dark Theme */
.section-inner {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 2rem;
  margin: 1rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.section-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.section-inner h1, 
.section-inner h2, 
.section-inner h3, 
.section-inner h4, 
.section-inner h5, 
.section-inner h6 {
  color: var(--text-primary) !important;
}

.section-inner p {
  color: var(--text-secondary) !important;
  line-height: 1.6;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem) !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  text-align: center;
  margin-bottom: 1rem !important;
  background: none !important;
  -webkit-text-fill-color: unset !important;
  text-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.section-description {
  color: var(--text-secondary) !important;
  font-size: 1.1rem;
  text-align: center;
  margin: 0 auto 2rem auto !important;
  max-width: 600px;
  background: var(--bg-card);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

/* Block Titles - Dark Theme */
.block-title {
  margin-bottom: 2rem;
  text-align: center;
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.block-title h3 {
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  margin-bottom: 0 !important;
  background: none !important;
  -webkit-text-fill-color: unset !important;
}

.block-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* Timeline - Dark Theme */
.timeline-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.timeline-item:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.timeline-item:hover::before {
  width: 8px;
}

.timeline-item p, 
.timeline-item div {
  color: var(--text-secondary) !important;
  line-height: 1.6;
}

.timeline-item .item-title {
  color: var(--text-primary) !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  margin-bottom: 0.5rem !important;
}

.timeline-item .item-period {
  background: var(--gradient-primary);
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.timeline-item .item-company {
  color: var(--primary-light) !important;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* Services - Dark Theme */
.info-block-w-icon {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.info-block-w-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.info-block-w-icon:hover::before {
  transform: scaleX(1);
}

.info-block-w-icon:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  background: var(--bg-light);
}

.ci-icon i {
  font-size: 2.5rem !important;
  color: var(--primary-color) !important;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.3));
}

.ci-text h4 {
  color: var(--text-primary) !important;
  font-weight: 600 !important;
  margin: 1rem 0 !important;
}

.ci-text p {
  color: var(--text-secondary) !important;
  line-height: 1.6;
  margin: 0;
}

/* Contact Cards - Dark Theme */
.contact-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 8px !important;
  padding: 1.5rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 1rem;
  height: 100%;
  transition: all 0.3s ease !important;
  box-shadow: var(--shadow-sm) !important;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-primary);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.contact-card:hover::before {
  transform: scaleY(1);
}

.contact-card:hover {
  border-color: var(--primary-color) !important;
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-2px);
  background: var(--bg-light) !important;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.contact-icon i {
  color: white !important;
  font-size: 1.2rem !important;
}

.contact-details h5 {
  color: var(--text-light) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.25rem !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-details h4 {
  color: var(--text-primary) !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  margin-bottom: 0.25rem !important;
}

.contact-details h4 a {
  color: inherit !important;
  text-decoration: none;
}

.contact-details h4 a:hover {
  color: var(--primary-light) !important;
}

.contact-details p {
  color: var(--text-secondary) !important;
  font-size: 0.8rem !important;
  margin: 0 !important;
}

/* Legacy Contact - Dark Theme */
.lm-info-block {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 8px !important;
  padding: 1.5rem !important;
  text-align: center;
  transition: all 0.3s ease !important;
  box-shadow: var(--shadow-sm) !important;
}

.lm-info-block:hover {
  border-color: var(--primary-color) !important;
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-2px);
  background: var(--bg-light) !important;
}

.lm-info-block i {
  color: var(--primary-color) !important;
  font-size: 2rem !important;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.3));
}

.lm-info-block h4 {
  color: var(--text-primary) !important;
  font-weight: 600 !important;
}

.lm-info-block h4 a {
  color: var(--primary-light) !important;
  text-decoration: none;
}

/* Social Links - Dark Theme */
.social-links-section {
  text-align: center;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.social-links-section h4 {
  color: var(--text-primary) !important;
  font-weight: 600 !important;
  margin-bottom: 1rem;
}

.social-links-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  font-weight: 500;
}

.social-link.linkedin {
  color: #0ea5e9 !important;
}

.social-link.github {
  color: var(--text-primary) !important;
}

.social-link:hover {
  border-color: currentColor;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.social-link.linkedin:hover {
  background: #0ea5e9 !important;
  color: white !important;
}

.social-link.github:hover {
  background: var(--text-primary) !important;
  color: var(--bg-card) !important;
}

/* Skills - Dark Theme */
.skills-section {
  padding: 1rem 0;
}

.skills-section h4 {
  color: var(--text-primary) !important;
}

.skill-category {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
}

.skill-category h4 {
  color: var(--text-primary) !important;
  font-weight: 600 !important;
  margin-bottom: 1rem;
}

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

.skill-tag {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bg-light);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
}

/* Portfolio - Dark Theme */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

.portfolio-grid h4, 
.portfolio-grid h5, 
.portfolio-grid .name {
  color: var(--text-primary) !important;
  font-weight: 600 !important;
}

.portfolio-grid .category, 
.portfolio-grid p {
  color: var(--text-secondary) !important;
}

.portfolio-grid figure {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.portfolio-grid figure::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.portfolio-grid figure:hover::before {
  transform: scaleX(1);
}

.portfolio-grid figure:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  background: var(--bg-light);
}

.portfolio-item-img {
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.portfolio-filters .filter {
  background: var(--bg-card) !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 6px !important;
  padding: 0.5rem 1rem !important;
  margin: 0 0.5rem 0.5rem 0 !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

.portfolio-filters .active .filter,
.portfolio-filters .filter:hover {
  background: var(--gradient-primary) !important;
  color: white !important;
  border-color: var(--primary-color) !important;
}

/* Mobile Header - Dark Theme */
.mobile-header {
  background: var(--bg-secondary) !important;
  border-bottom: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow-md) !important;
  padding: 1rem !important;
}

.mobile-header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.mobile-header .mobile-site-title a {
  color: var(--text-primary) !important;
  font-weight: 600 !important;
  font-size: 1.2rem !important;
}

.menu-toggle {
  background: var(--gradient-primary) !important;
  color: white !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 0.5rem !important;
  transition: all 0.3s ease !important;
}

.menu-toggle:hover {
  background: var(--gradient-accent) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Remove excessive spacing */
.pt-page {
  padding: 0 !important;
}

.row {
  margin-bottom: 1rem;
}

.row:last-child {
  margin-bottom: 0;
}

.col-inner {
  padding: 0.5rem;
}

.bs-30 {
  margin-bottom: 1.5rem !important;
}

.ts-30 {
  margin-top: 1.5rem !important;
}

.ts-20 {
  margin-top: 1rem !important;
}

/* Loading States - Dark Theme */
#page-title:empty::after,
#main-name:empty::after,
#contact-phone:empty::after,
#contact-email:empty::after,
#contact-location:empty::after {
  content: 'Loading...';
  color: var(--text-light);
}

/* RESPONSIVE - Mobile First */
@media (max-width: 1199px) {
  .section-inner {
    padding: 1.5rem;
    margin: 0.5rem;
  }
}

@media (max-width: 991px) {
  .header {
    background: var(--bg-secondary);
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .page {
    margin-left: 0 !important;
  }
  
  .section-inner {
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  
  .timeline-item {
    margin: 0 0 1rem 0;
  }

  .start-page-full-width {
    margin: 0.5rem 0 !important;
    padding: 1.5rem 0 !important;
  }
  
  .profile-image {
    width: 100px !important;
    height: 100px !important;
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .section-inner {
    padding: 1rem;
  }
  
  .info-block-w-icon,
  .lm-info-block {
    padding: 1rem !important;
  }
  
  .timeline-item {
    padding: 1rem;
  }

  .start-page-full-width {
    padding: 1rem 0 !important;
    border-radius: 8px;
  }

  .hp-text-block {
    padding: 0.5rem !important;
  }

  .contact-card {
    padding: 1rem !important;
    flex-direction: row;
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
  }
  
  .social-links-grid {
    flex-direction: column;
    align-items: center;
  }
  
  .social-link {
    width: 180px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.8rem !important;
  }
  
  .hp-main-title {
    font-size: 1.8rem !important;
  }

  .start-page-full-width {
    padding: 1rem 0 !important;
    margin: 0.25rem 0 !important;
  }

  .contact-card {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .profile-image {
    width: 80px !important;
    height: 80px !important;
  }
  
  .status-indicator {
    width: 10px;
    height: 10px;
  }
}

/* Mobile Menu - Dark Theme */
@media (max-width: 991px) {
  .site-main-menu {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    padding: 1rem !important;
    margin-top: 1rem !important;
    box-shadow: var(--shadow-md) !important;
  }
  
  .site-main-menu li a {
    padding: 0.75rem 1rem !important;
    border-radius: 6px !important;
    display: block !important;
    background: var(--bg-light) !important;
    margin-bottom: 0.5rem !important;
    color: var(--text-secondary) !important;
  }
  
  .site-main-menu li a:hover {
    background: var(--gradient-primary) !important;
    color: white !important;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Clean scrolling */
html {
  scroll-behavior: smooth;
}

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

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

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

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

/* Print styles */
@media print {
  .header,
  .mobile-header,
  .preloader {
    display: none !important;
  }
  
  .page {
    margin-left: 0 !important;
  }
  
  .section-inner {
    box-shadow: none !important;
    border: 1px solid #666 !important;
    page-break-inside: avoid;
    margin-bottom: 1rem;
    background: white !important;
    color: black !important;
  }
}