* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0a0f1d 0%, #131a2e 100%);
  color: #e2e8f0;
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 300px;
  background: rgba(15, 23, 42, 0.9);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 2px solid #2c3e50;
  backdrop-filter: blur(10px);
  position: fixed;
  height: 100%;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid #5e81ac;
  margin-bottom: 20px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(94, 129, 172, 0.3);
  background: linear-gradient(135deg, #2c3e50, #1a2a3a);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.profile-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #5e81ac, #81a1c1, #88c0d0);
  color: #2e3440;
  font-size: 48px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background: linear-gradient(135deg, #5e81ac, #81a1c1, #88c0d0);
  }
  50% {
    background: linear-gradient(135deg, #88c0d0, #5e81ac, #81a1c1);
  }
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.profile-image img:hover {
  transform: scale(1.05);
}

.name {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
  color: #e2e8f0;
  text-shadow: 0 0 10px rgba(94, 129, 172, 0.5);
}

.title {
  color: #88c0d0;
  font-size: 16px;
  margin-bottom: 30px;
  text-align: center;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.social-links a {
  color: #81a1c1;
  font-size: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 52, 64, 0.5);
}

.social-links a:hover {
  color: #5e81ac;
  transform: translateY(-3px);
  background: rgba(94, 129, 172, 0.3);
  box-shadow: 0 0 10px rgba(94, 129, 172, 0.5);
}

.contact-info {
  width: 100%;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  background: rgba(46, 52, 64, 0.5);
  border-radius: 8px;
  border-left: 3px solid #5e81ac;
}

.contact-item span {
  margin-right: 10px;
  font-size: 16px;
  color: #88c0d0;
}

.contact-item div {
  font-size: 12px;
  color: #d8dee9;
}

.contact-item div strong {
  color: #eceff4;
}

/* Fix for email overflow */
.contact-item .email-content {
  word-break: break-all;
  line-height: 1.4;
}

.contact-item .phone-content {
    line-height: 1.4;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 30px;
  position: relative;
  margin-left: 300px;
  padding-top: 70px;
}

/* Navigation */
.nav-tabs {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  justify-content: center;
  flex-wrap: wrap;
  position: sticky;
  top: 20px;
  z-index: 90;
  background: rgba(15, 23, 42, 0.95);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #2c3e50;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.nav-tab {
  padding: 10px 20px;
  background: transparent;
  border: 2px solid #5e81ac;
  color: #d8dee9;
  cursor: pointer;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-tab:hover,
.nav-tab.active {
  background: #5e81ac;
  color: #eceff4;
  box-shadow: 0 0 15px rgba(94, 129, 172, 0.4);
}

/* Content Sections */
.content-section {
  display: none;
  animation: fadeIn 0.5s ease-in;
  scroll-margin-top: 100px;
}

.content-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  font-size: 36px;
  margin-bottom: 30px;
  color: #81a1c1;
  border-bottom: 2px solid #5e81ac;
  padding-bottom: 10px;
  text-align: center;
  text-shadow: 0 0 10px rgba(94, 129, 172, 0.3);
  padding-top: 20px;
}

/* Terminal Style */
.terminal {
  background: rgba(15, 23, 42, 0.8);
  border: 2px solid #5e81ac;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  font-family: 'Courier New', monospace;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: #d8dee9;
}

.terminal-header {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red {
  background: #bf616a;
}

.dot-yellow {
  background: #ebcb8b;
}

.dot-green {
  background: #a3be8c;
}

.terminal-content {
  line-height: 1.6;
}

.command-prompt {
  color: #5e81ac;
  font-weight: bold;
}

.command-output {
  color: #88c0d0;
  margin-left: 20px;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.skill-item {
  background: rgba(46, 52, 64, 0.6);
  border: 1px solid #4c566a;
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.skill-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(94, 129, 172, 0.3);
  border-color: #5e81ac;
}

.skill-icon {
  font-size: 24px;
  margin-bottom: 10px;
  color: #5e81ac;
}

.skill-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #e5e9f0;
}

.skill-description {
  color: #d8dee9;
  font-size: 14px;
  line-height: 1.4;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.portfolio-item {
  background: rgba(46, 52, 64, 0.6);
  border: 1px solid #4c566a;
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(94, 129, 172, 0.3);
  border-color: #5e81ac;
}

.portfolio-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #e5e9f0;
}

.portfolio-category {
  color: #88c0d0;
  font-size: 12px;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: 600;
}

.portfolio-description {
  color: #d8dee9;
  font-size: 14px;
  line-height: 1.4;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 20px auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: rgba(46, 52, 64, 0.6);
  border: 2px solid #4c566a;
  border-radius: 8px;
  color: #e5e9f0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #88c0d0;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #5e81ac;
  box-shadow: 0 0 0 3px rgba(94, 129, 172, 0.2);
}

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

.submit-btn {
  background: #5e81ac;
  border: none;
  color: #eceff4;
  padding: 15px 30px;
  cursor: pointer;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border-radius: 30px;
  font-weight: 600;
  display: block;
  margin: 0 auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.submit-btn:hover {
  background: #81a1c1;
  box-shadow: 0 5px 15px rgba(94, 129, 172, 0.4);
  transform: translateY(-3px);
}

/* Experience Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 40px auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #5e81ac;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(94, 129, 172, 0.5);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  width: 50%;
  padding: 20px;
  background: rgba(46, 52, 64, 0.7);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid #4c566a;
}

.timeline-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(94, 129, 172, 0.3);
  border-color: #5e81ac;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #5e81ac;
  border: 4px solid #2e3440;
  top: 20px;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 10px rgba(94, 129, 172, 0.5);
}

.timeline-item:nth-child(odd)::after {
  right: -10px;
}

.timeline-item:nth-child(even)::after {
  left: -10px;
}

.timeline-content {
  display: none;
  padding: 20px;
  margin-top: 10px;
  background: rgba(30, 37, 48, 0.9);
  border-radius: 8px;
  border-left: 3px solid #5e81ac;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease-out;
}

.timeline-content.active {
  display: block;
}

.experience-title {
  font-size: 20px;
  font-weight: bold;
  color: #e5e9f0;
  margin-bottom: 5px;
}

.experience-company {
  color: #88c0d0;
  font-size: 16px;
  margin-bottom: 5px;
  font-weight: 600;
}

.experience-date {
  color: #81a1c1;
  font-size: 14px;
  margin-bottom: 10px;
  font-weight: 500;
}

.experience-description {
  color: #d8dee9;
  font-size: 14px;
  line-height: 1.6;
}

.experience-description li {
  margin-bottom: 8px;
  list-style-position: inside;
}

/* Responsive design */
@media (max-width: 992px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    position: relative;
    height: auto;
    padding: 20px;
    border-right: none;
    border-bottom: 2px solid #4c566a;
  }

  .main-content {
    margin-left: 0;
    padding-top: 30px;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    width: calc(100% - 60px);
    margin-left: 60px;
  }

  .timeline-item:nth-child(even),
  .timeline-item:nth-child(odd) {
    left: 0;
  }

  .timeline-item::after {
    left: -10px;
  }

  .nav-tabs {
    position: relative;
    top: 0;
  }
}

/* Animation for timeline items */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(94, 129, 172, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(94, 129, 172, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(94, 129, 172, 0);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Notification styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  background: linear-gradient(135deg, #a3be8c, #8fbcbb);
}

.notification.error {
  background: linear-gradient(135deg, #bf616a, #d08770);
}

.notification.info {
  background: linear-gradient(135deg, #5e81ac, #81a1c1);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Loading overlay */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-spinner {
  text-align: center;
  color: #e2e8f0;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid #4c566a;
  border-top: 3px solid #5e81ac;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Scroll to top button */
#scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: #5e81ac;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#scroll-top.show {
  opacity: 1;
  visibility: visible;
}

#scroll-top:hover {
  background: #81a1c1;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(94, 129, 172, 0.4);
}

/* Mobile menu button - hidden */
.mobile-menu-btn {
  display: none;
}

/* Mobile menu overlay - removed */
.mobile-menu-overlay {
  display: none;
}

/* Particles background */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(94, 129, 172, 0.3);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(100vh) scale(0);
  }
  50% {
    transform: translateY(-10px) scale(1);
  }
}

/* Enhanced responsive design */
@media (max-width: 992px) {
  .mobile-menu-btn {
    display: none;
  }

  .sidebar {
    width: 100%;
    position: relative;
    height: auto;
    padding: 15px;
    transform: none;
    transition: none;
  }

  .mobile-menu-overlay {
    display: none;
  }

  .notification {
    right: 10px;
    left: 10px;
    transform: translateY(-100%);
  }

  .notification.show {
    transform: translateY(0);
  }

  .profile-image {
    width: 120px;
    height: 120px;
  }

  .name {
    font-size: 20px;
  }

  .title {
    font-size: 14px;
  }

  .contact-item {
    padding: 12px;
    margin-bottom: 12px;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .contact-item span {
    margin-right: 0;
    margin-bottom: 8px;
    font-size: 18px;
    color: #88c0d0;
    align-self: center;
  }

  .contact-item div {
    font-size: 13px;
    width: 100%;
    text-align: center;
  }

  .contact-item div strong {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: #88c0d0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .contact-item .email-content {
    word-break: break-all;
    line-height: 1.4;
  }

  .main-content {
    padding: 15px;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .nav-tabs {
    padding: 10px;
    gap: 8px;
  }

  .nav-tab {
    padding: 8px 12px;
    font-size: 12px;
  }

  .skills-grid, .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .skill-item, .portfolio-item {
    padding: 15px;
  }

  .terminal {
    padding: 15px;
    margin: 15px 0;
  }

  .command-output {
    font-size: 13px;
  }

  .edu-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .edu-text {
    font-size: 13px;
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .sidebar {
    padding: 20px 15px;
  }

  .contact-item {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 12px;
    background: rgba(46, 52, 64, 0.7);
  }

  .contact-item span {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .contact-item div {
    font-size: 14px;
    line-height: 1.5;
  }

  .contact-item div strong {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .contact-form {
    margin: 15px 0;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px;
    font-size: 14px;
  }

  .submit-btn {
    padding: 12px 25px;
    font-size: 13px;
  }

  .timeline-item {
    width: calc(100% - 40px);
    margin-left: 40px;
    padding: 15px;
  }

  .experience-title {
    font-size: 18px;
  }

  .experience-company {
    font-size: 14px;
  }

  .experience-date {
    font-size: 12px;
  }

  .experience-description {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .sidebar {
    padding: 15px 10px;
  }

  .contact-item {
    padding: 18px 12px;
    margin-bottom: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .contact-item span {
    font-size: 22px;
    margin-bottom: 12px;
    color: #5e81ac;
  }

  .contact-item div {
    font-size: 15px;
    line-height: 1.6;
    color: #e5e9f0;
  }

  .contact-item div strong {
    font-size: 10px;
    margin-bottom: 8px;
    color: #81a1c1;
    font-weight: 700;
  }

  .contact-item .email-content {
    font-size: 13px;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .nav-tabs {
    flex-direction: column;
    gap: 5px;
  }

  .nav-tab {
    width: 100%;
    text-align: center;
  }

  .social-links {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .social-links a {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .terminal-content {
    font-size: 12px;
  }

  .edu-item {
    padding: 3px 0;
  }

  .portfolio-title, .skill-title {
    font-size: 16px;
  }

  .portfolio-description, .skill-description {
    font-size: 13px;
  }
}

/* Theme support */
body[data-theme="light"] {
  background: linear-gradient(135deg, #eceff4 0%, #e5e9f0 100%);
  color: #2e3440;
}

body[data-theme="light"] .sidebar {
  background: rgba(255, 255, 255, 0.9);
  color: #2e3440;
}

body[data-theme="light"] .nav-tabs {
  background: rgba(255, 255, 255, 0.95);
}

/* Education info styling */
.education-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.edu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
}

.edu-icon {
  font-size: 16px;
  min-width: 20px;
}

.edu-text {
  font-size: 14px;
  line-height: 1.4;
}

/* Enhanced animations */
.skill-item, .portfolio-item, .timeline-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-item:hover, .portfolio-item:hover {
  transform: translateY(-10px) scale(1.02);
}
