:root {
    /* Light mode variables */
    --primary-color: #2563eb;
    --primary-color-rgb: 37, 99, 235;
    --secondary-color: #0284c7;
    --secondary-color-rgb: 2, 132, 199;
    --accent-color: #10b981;
    --accent-color-rgb: 16, 185, 129;
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-color-rgb: 226, 232, 240;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

/* Dark mode variables - improved color scheme */
.dark-mode {
  --primary-color: #4f94ff;
  --primary-color-rgb: 79, 148, 255;
  --secondary-color: #38bdf8;
  --secondary-color-rgb: 56, 189, 248;
  --accent-color: #34d399;
  --accent-color-rgb: 52, 211, 153;
  --background-color: #0f172a;
  --surface-color: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --text-muted: #64748b;
  --text-muted-dark: #94a3b8;
  --primary-color-dark: #60a5fa;
  --accent-color-dark: #34d399;
  --border-color: #334155;
  --border-color-rgb: 51, 65, 85;
  --shadow-color: rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: 'Courier New', Courier, monospace;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.025em;
}

h2 {
    font-size: 2rem;
    letter-spacing: -0.025em;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* Header */
header {
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: background var(--transition-speed);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 85%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

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

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

nav a:hover::after {
    width: 100%;
}

/* Container */
.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Sections */
.section {
    background: var(--surface-color);
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px var(--shadow-color);
    padding: 2.5rem;
    margin: 2.5rem 0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-color);
}

.section-title {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Dark mode toggle */
.dark-mode-toggle {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.footer {
    
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

/* Projects section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover; /* Maintain aspect ratio but fill the container */
  object-position: center; /* Center the image within the container */
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
  display: block; /* Remove any default spacing */
}

/* Project card consistent structure */
.project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  background-color: var(--surface-color);
  border-radius: 0.75rem;
  box-shadow: 0 4px 15px var(--shadow-color);
}

/* Project content with flexible height */
.project-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  /* Add this to create consistent spacing */
  justify-content: space-between;
}

/* Project description */
.project-content p {
  margin-bottom: 1.5rem;
}

/* Button container to ensure consistent positioning */
.project-button-container {
  margin-top: auto;
  padding-top: 1rem;
}

/* Style the View Project button */
.project-content .btn {
  display: inline-block;
  width: 100%;
  text-align: center;
}

/* Ensure consistent spacing */
.project-content h3 {
  margin-bottom: 0.75rem;
}

/* Center align project buttons on mobile */
@media (max-width: 768px) {
  .project-content .btn {
    align-self: center;
  }
}

/* Project card equal height */
.project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-image {
  flex-shrink: 0;
}

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

.project-tag {
    background-color: var(--border-color);
    color: var(--text-secondary);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* Updated Skills Section */
.skills-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.skill-category {
  background-color: var(--surface-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 15px var(--shadow-color);
  transition: transform 0.3s;
}

.skill-category:hover {
  transform: translateY(-5px);
}

.skill-category-title {
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.skill-category-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.skill-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1.25rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background-color: var(--background-color);
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px var(--shadow-color);
  transition: transform 0.3s, box-shadow 0.3s;
}

.skill-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px var(--shadow-color);
}

.skill-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

/* Software Icon Styling */
.skill-icon-img {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.software-icon {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.skill-item:hover .software-icon {
  transform: scale(1.1);
}

/* Dark mode filter for icons */
.dark-mode .software-icon {
  filter: brightness(0.9) contrast(1.1);
}

/* Dark mode styles for skills */
.dark-mode .skill-category {
  background-color: #1e293b;
}

.dark-mode .skill-item {
  background-color: #263548;
}

/* Contact form styling */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

.contact-info {
  padding: 1rem;
}

.contact-methods {
  margin-top: 2rem;
}

.contact-method {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-method i {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-right: 1rem;
}

/* Form status styling */
.form-status {
  margin-top: 1rem;
}

.alert {
  padding: 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
}

.alert-success {
  background-color: rgba(74, 222, 128, 0.2);
  color: #15803d;
  border: 1px solid rgba(74, 222, 128, 0.4);
}

.alert-error {
  background-color: rgba(252, 165, 165, 0.2);
  color: #b91c1c;
  border: 1px solid rgba(252, 165, 165, 0.4);
}

/* Alert info styling */
.alert-info {
  background-color: rgba(56, 189, 248, 0.1);
  color: #0284c7;
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-warning {
  background-color: rgba(250, 204, 21, 0.1);
  color: #ca8a04;
  border: 1px solid rgba(250, 204, 21, 0.2);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dark-mode .alert-info {
  background-color: rgba(56, 189, 248, 0.05);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.15);
}

.dark-mode .alert-warning {
  background-color: rgba(250, 204, 21, 0.05);
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.15);
}

/* Add responsive styles for the contact section */
@media (max-width: 767px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}

/* Button with icon */
#submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

#submit-btn i {
  transition: transform 0.3s ease;
}

#submit-btn:hover i {
  transform: translateX(4px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Responsive design */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .container { width: 90%; }
    .projects-grid { grid-template-columns: 1fr; }
}

/* Updated Hero Section with Profile Picture */
.hero-container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.profile-container {
  flex-shrink: 0;
}

.profile-picture-wrapper {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
  box-shadow: 0 8px 20px var(--shadow-color);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s;
}

.profile-picture-wrapper:hover {
  transform: scale(1.03);
}

.profile-picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--surface-color);
  transition: all 0.3s ease;
}

.highlight {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.lead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

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

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .profile-picture-wrapper {
    width: 180px;
    height: 180px;
    margin: 0 auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
}

/* Profile picture dark mode styling */
.dark-mode .profile-picture-wrapper {
  background: linear-gradient(145deg, #4f94ff, #38bdf8);
  box-shadow: 0 8px 25px rgba(79, 148, 255, 0.25);
}

.dark-mode .profile-picture {
  border-color: #0f172a; /* Darker border to blend with black background photo */
}

/* Skills item in dark mode */
.dark-mode .skill-item {
  background-color: #263548;
}

/* Project cards in dark mode */
.dark-mode .project-card {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Button styling in dark mode */
.dark-mode .btn {
  box-shadow: 0 4px 12px rgba(79, 148, 255, 0.3);
}

.dark-mode .btn-outline {
  border-color: #4f94ff;
}

/* Form styling in dark mode */
.dark-mode .form-input {
  background-color: #263548;
  border-color: #334155;
}

.dark-mode .form-input:focus {
  box-shadow: 0 0 0 3px rgba(79, 148, 255, 0.3);
}

/* Project tags in dark mode */
.dark-mode .project-tag {
  background-color: #334155;
  color: #cbd5e1;
}

/* Section hover effect in dark mode */
.dark-mode .section:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* Contact form improvements */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color);
}

.form-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

/* Dark mode adjustments */
.dark-mode .form-input {
  background-color: #334155;
  border-color: #475569;
  color: #f8fafc;
}

.dark-mode .form-input::placeholder {
  color: var(--text-muted-dark);
}

/* Certificate section styling */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.certificate-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--surface-color);
  border-radius: 0.75rem;
  box-shadow: 0 4px 15px var(--shadow-color);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
  border-top: 4px solid var(--primary-color);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
}

/* Add hover indicator */
.certificate-card::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  background: var(--primary-color);
  border-radius: 50%;
  bottom: 15px;
  right: 15px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" fill="white"><path d="M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.certificate-card:hover::after {
  opacity: 1;
  transform: scale(1.2);
}

/* Enhance the existing hover effect */
.certificate-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow-color);
}

.certificate-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.certificate-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.certificate-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.certificate-issuer {
  font-weight: 500;
  color: var(--primary-color);
}

.certificate-date {
  color: var(--text-muted);
}

.certificate-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Arrow button styling for certificates */


/* Chat Button & Modal Styling */
.chat-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #4f94ff, #38bdf8);
  color: white;
  border-radius: 30px;
  padding: 14px 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.25);
  z-index: 99;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
  font-weight: 500;
}

.chat-button:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.35);
}

.chat-button i {
  font-size: 1.2rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Chat Modal */
.chat-modal {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background-color: var(--bg-color);
  border-radius: 16px;
  width: 380px;
  max-width: calc(100% - 60px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 100;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px) scale(0.95);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

/* Light mode background for chat modal */
.chat-modal {
  background: linear-gradient(145deg, #ffffff, #f8fafc); /* Light gradient background */
}

.chat-modal-header {
  background: linear-gradient(to right, var(--primary-color), #38bdf8);
}

.chat-modal-header h3 {
  color: white;
}

.chat-modal-body {
  background-color: rgba(255, 255, 255, 0.9);
}

.chat-close {
  color: rgba(255, 255, 255, 0.9);
}

.chat-close:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
}

.chat-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-modal-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--surface-color);
}

.chat-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-color);
  font-weight: 600;
}

.chat-close {
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}

.chat-close:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--primary-color);
}

.chat-modal-body {
  padding: 24px 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.chat-modal .form-group {
  margin-bottom: 18px;
}

.chat-modal .form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-color);
}

.chat-modal .form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-size: 0.95rem;
  transition: all 0.2s;
}

.chat-modal .form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
  outline: none;
}

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

#chat-submit-btn {
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(135deg, #4f94ff, #38bdf8);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
  margin-top: 10px;
}

#chat-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
}

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

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
}

.alert {
  padding: 12px;
  border-radius: 8px;
  margin-top: 12px;
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Dark mode adjustments */
.dark-mode .chat-modal {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-color: rgba(51, 65, 85, 0.7);
}

.dark-mode .chat-modal-content::before {
  background-image: radial-gradient(rgba(56, 189, 248, 0.08) 2px, transparent 2px);
}

.dark-mode .chat-modal-body {
  background-color: rgba(15, 23, 42, 0.8);
}

.dark-mode .chat-close {
  color: rgba(255, 255, 255, 0.8);
}

.dark-mode .chat-close:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
}

/* Improved form fields */
.chat-modal .form-input {
  background-color: white;
  border: 1px solid #e2e8f0;
}

.dark-mode .chat-modal .form-input {
  background-color: #334155;
  border-color: #475569;
  color: #f8fafc;
}

/* Location styling */
.location {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.location-icon {
  color: var(--primary-color);
  font-size: 1.1rem;
}

/* Dark mode support */
.dark-mode .location {
  color: var(--text-muted-dark);
}

.dark-mode .location-icon {
  color: var(--primary-color-dark);
}

/* University styling */
.university {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.university-icon {
  color: var(--accent-color);
  font-size: 1.1rem;
}

/* Dark mode support for university */
.dark-mode .university {
  color: var(--text-muted-dark);
}

.dark-mode .university-icon {
  color: var(--accent-color-dark);
}

/* Messenger option styling */
.contact-options {
  margin-bottom: 20px;
}

.option-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 15px 0;
}

.option-divider::before,
.option-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.option-divider span {
  padding: 0 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.messenger-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 15px 0;
}

.messenger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #0084ff;
  color: white;
  border-radius: 8px;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 300px;
}

.messenger-btn:hover {
  background: #0070db;
  transform: translateY(-2px);
}

.messenger-btn i {
  font-size: 1.2rem;
}

.messenger-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Dark mode support */
.dark-mode .option-divider::before,
.dark-mode .option-divider::after {
  border-bottom: 1px solid var(--border-color-dark);
}

.dark-mode .option-divider span,
.dark-mode .messenger-note {
  color: var(--text-muted-dark);
}

/* Skills Slider Styles - Updated for seamless loop without boxes */
/* Modern skills wrapper */
.skills-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 2rem 0;
  background: transparent;
}

/* Vertical layout container with improved spacing */
.skills-categories-container {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Enhanced skill category section with subtle card styling */
.skills-category-section {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  background-color: var(--surface-color);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.skills-category-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Modern category header with icon */
.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.category-icon i {
  font-size: 1.5rem;
  color: white;
}

/* Improved category titles with modern styling */
.skills-category-title {
  font-size: 1.6rem;
  color: var(--text-primary);
  font-weight: 700;
  position: relative;
  margin: 0;
  padding-bottom: 0.5rem;
}

.skills-category-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
}

/* Enhanced logos container with better overflow handling */
.skills-logos-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 1rem 0;
}

/* Improved track animation with smoother motion */
.skills-track {
  display: flex;
  gap: 4rem;
  animation: slideLoop 25s linear infinite;
  width: max-content;
  align-items: center;
  will-change: transform;
}

.skills-track:hover {
  animation-play-state: paused;
}

/* Redesigned skill category layout */
.skill-category {
  background: transparent;
  padding: 0;
  flex-shrink: 0;
  display: flex;
  gap: 4rem;
}

/* Improved skill group spacing */
.skill-group {
  display: flex;
  gap: 4rem;
  flex-wrap: nowrap;
  align-items: center;
}

/* Modern skill items with hover effects */
.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem;
  background: transparent;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  min-width: 80px;
  border: none;
  flex-shrink: 0;
  position: relative;
}

/* Custom skill item styling based on data attribute */
.skill-item[data-skill="html5"]:hover .skill-icon { color: #E44D26; }
.skill-item[data-skill="css3"]:hover .skill-icon { color: #264DE4; }
.skill-item[data-skill="javascript"]:hover .skill-icon { color: #F7DF1E; }
.skill-item[data-skill="python"]:hover .skill-icon { color: #3776AB; }
.skill-item[data-skill="git"]:hover .skill-icon { color: #F05032; }
.skill-item[data-skill="react"]:hover .skill-icon { color: #61DAFB; }

.skill-item:hover {
  transform: translateY(-10px);
}

/* Skill icon wrapper for better styling */
.skill-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .skill-icon-wrapper {
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.skill-item:hover .skill-icon-wrapper {
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.25);
  transform: scale(1.05);
}

/* Enhanced logo styling with better visibility */
.skill-icon {
  font-size: 2.25rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

/* Enhanced image icon container */
.skill-icon-img {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .skill-icon-img {
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.skill-item:hover .skill-icon-img {
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.25);
  transform: scale(1.05);
}

/* Improved software icon styling */
.software-icon {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.skill-item:hover .software-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2)) brightness(1.1);
}

.skill-item:hover .skill-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.3));
}

/* Modern skill name styling */
.skill-item span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  transition: all 0.3s ease;
  white-space: nowrap;
  margin-top: 0.5rem;
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.85;
}

.skill-item:hover span {
  opacity: 1;
  transform: scale(1.05);
}

.skill-item:hover span {
  color: var(--primary-color);
  font-weight: 700;
}

/* Animation keyframes for seamless loop - FIXED */
@keyframes slideLoop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 2rem));
  }
}

/* Add glowing effect for dark mode */
.dark-mode .skill-icon-wrapper,
.dark-mode .skill-icon-img {
  background-color: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.dark-mode .skill-item:hover .skill-icon-wrapper,
.dark-mode .skill-item:hover .skill-icon-img {
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.3), 0 0 0 1px rgba(79, 148, 255, 0.1);
}

.dark-mode .skills-slider {
  background: transparent;
  box-shadow: none;
}

.dark-mode .skills-category-section {
  background: transparent;
  box-shadow: none;
}

.dark-mode .skill-icon {
  filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.1));
}

.dark-mode .skill-icon-img {
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.1));
}

.dark-mode .software-icon {
  filter: brightness(0.9) contrast(1.1) drop-shadow(0 2px 8px rgba(255, 255, 255, 0.1));
}

.dark-mode .skill-item:hover .software-icon {
  filter: brightness(1.2) contrast(1.2) drop-shadow(0 4px 12px rgba(79, 148, 255, 0.3));
}

.dark-mode .skill-item:hover .skill-icon {
  filter: drop-shadow(0 4px 12px rgba(79, 148, 255, 0.4));
}

.dark-mode .skill-item span {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .skills-categories-container {
    gap: 2rem;
    padding: 0 1rem;
  }
  
  .skills-category-title {
    font-size: 1.3rem;
  }
  
  .skills-track {
    gap: 2.5rem;
    animation-duration: 12s;
  }
  
  .skill-group {
    gap: 2.5rem;
  }
  
  .skill-item {
    min-width: 60px;
    padding: 0.4rem;
  }
  
  .skill-icon-img {
    width: 45px;
    height: 45px;
  }
  
  .skill-icon {
    font-size: 2rem;
  }
  
  .skill-item span {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .skills-categories-container {
    gap: 1.5rem;
  }
  
  .skills-category-title {
    font-size: 1.2rem;
  }
  
  .skills-track {
    gap: 2rem;
    animation-duration: 10s;
  }
  
  .skill-group {
    gap: 2rem;
  }
  
  .skill-item {
    min-width: 55px;
    padding: 0.3rem;
  }
  
  .skill-icon-img {
    width: 40px;
    height: 40px;
  }
  
  .skill-icon {
    font-size: 1.8rem;
  }
  
  .skill-item span {
    font-size: 0.7rem;
  }
}