:root {
  /* Light theme variables */
  --bg-color: #ffffff;
  --bg-overlay: rgba(255, 255, 255, 0.92);
  --terminal-overlay: rgba(44, 62, 80, 0.03);
  --background: #ffffff;
  --text: #2c3e50;
  --heading-color: #1a1a1a;
  --terminal-color: #94a3b8;
  --terminal-bg: rgba(44, 62, 80, 0.05);
  --link-color: #2c3e50;
  --icon-color: #e9573f;
  --modal-text: #2c3e50;
  --modal-link: #e9573f;
  --footer-color: #666666;
  --preloader-bg: #ffffff;
  --preloader-color: #e9573f;
  --bg-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%232c3e50' fill-opacity='0.04'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

[data-theme="dark"] {
  /* Dark theme variables */
  --bg-color: #121212;
  --bg-overlay: rgba(18, 18, 18, 0.95);
  --terminal-overlay: rgba(233, 87, 63, 0.03);
  --background: #121212;
  --text: #e0e0e0;
  --heading-color: #ffffff;
  --terminal-color: #666666;
  --terminal-bg: rgba(233, 87, 63, 0.05);
  --link-color: #e0e0e0;
  --icon-color: #e9573f;
  --modal-text: #e0e0e0;
  --modal-link: #ff7f66;
  --footer-color: #888888;
  --preloader-bg: #121212;
  --preloader-color: #ff7f66;
  --bg-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23e9573f' fill-opacity='0.06'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

body {
  background: var(--background) !important;
  background-image: var(--bg-pattern) !important;
  background-attachment: fixed;
  background-size: 100px 100px;
  color: var(--text) !important;
  transition: all 0.3s ease-in-out;
}

.theme-switch-wrapper {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  z-index: 999;
}

.theme-switch {
  display: inline-block;
  height: 34px;
  width: 60px;
  position: relative;
  border-radius: 34px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: #4A6FA5;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
  border-radius: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
}

.slider:before {
  background-color: #fff;
  bottom: 4px;
  content: "";
  height: 26px;
  left: 4px;
  position: absolute;
  transition: .4s;
  width: 26px;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
  background-color: #2c3e50;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Theme switch icons */
.light-icon, .dark-icon {
  color: white;
  font-size: 14px;
  position: relative;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.light-icon {
  margin-left: 4px;
  opacity: 0;
}

.dark-icon {
  margin-right: 4px;
  opacity: 1;
}

input:checked + .slider .light-icon {
  opacity: 1;
}

input:checked + .slider .dark-icon {
  opacity: 0;
}

/* Typography improvements */
h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color) !important;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.content h1 {
  font-size: 5rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .content h1 { font-size: 3.5rem !important; }
  .soon { font-size: 1rem !important; }
  .content { padding: 40px 20px !important; }
  #social-icons ul li a { font-size: 1.5rem; }
  .link-effect { margin: 0 10px; }
}

.soon {
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.2em !important;
  color: var(--link-color) !important;
  margin-bottom: 1.5rem;
}

.text-rotator-fade {
  font-size: 1.1rem !important;
  line-height: 1.6 !important;
  color: var(--text) !important;
  opacity: 0.9;
}

.lead, .soon, .text-rotator-fade {
  color: var(--text) !important;
}

.copyright {
  color: var(--footer-color) !important;
}

.bgterminal {
  color: var(--terminal-color) !important;
  opacity: 0.35 !important;
  font-size: 16px;
  font-weight: 500;
}

#social-icons {
  margin-top: 2.5rem;
}

#social-icons ul {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

#social-icons ul li a {
  color: var(--icon-color);
  font-size: 1.75rem;
  transition: all 0.3s ease;
}

#social-icons ul li a:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

/* Custom SVG icon styling for X (Twitter) */
#social-icons svg {
  width: 1.75rem;
  height: 1.75rem;
  vertical-align: middle;
  fill: currentColor;
}

.link-effect {
  margin: 0 15px;
}

.link-effect a {
  color: var(--link-color) !important;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.link-effect a:hover {
  color: var(--icon-color) !important;
}

.fa-dot-circle-o.size {
  color: var(--link-color) !important;
}

.link-effect a::before, 
.link-effect a::after {
  background: var(--link-color) !important;
}

/* Fix for Font Awesome icons */
.fa-arrow-left,
.fa-arrow-right,
.fa-dot-circle-o,
.fa-check,
.fa-times.close,
#close.fa-times {
  color: var(--link-color) !important;
}

/* Preloader */
#preloader {
  background-color: var(--preloader-bg) !important;
  transition: background-color 0.3s ease;
}

.spinner {
  width: 40px;
  height: 40px;
  position: relative;
  margin: 100px auto;
}

.double-bounce1, .double-bounce2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--preloader-color);
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;
  animation: sk-bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
  animation-delay: -1.0s;
}

@keyframes sk-bounce {
  0%, 100% { 
    transform: scale(0.0);
  } 50% { 
    transform: scale(1.0);
  }
}

/* Background and overlay handling */
.vegas-background {
  opacity: 0.08 !important;
  filter: grayscale(100%);
}

.vegas-overlay {
  background: var(--terminal-bg) !important;
  opacity: 0.8 !important;
}

/* Fix for SVG icons in light mode */
[data-theme="light"] .si-icon-mail path,
[data-theme="light"] .si-icon-mail polygon {
  fill: var(--text) !important;
}

[data-theme="dark"] .si-icon-mail path,
[data-theme="dark"] .si-icon-mail polygon {
  fill: #fff !important;
}

/* Skills section styling */
.skills-container {
  margin-top: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}

.skills-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--heading-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
}

.skills-title:after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background-color: var(--icon-color);
  bottom: -6px;
  left: 0;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.2rem;
}

.skill-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 30px;
  background-color: rgba(var(--icon-color-rgb), 0.1);
  color: var(--icon-color);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(var(--icon-color-rgb), 0.2);
  cursor: default;
}

.skill-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: rgba(var(--icon-color-rgb), 0.15);
}
