/* ===== VARIABLES ===== */
:root {
    /* Light Theme Colors - Updated with new nature-inspired palette */
    --light-primary-color: #A4B465;
    --light-primary-color-dark: #626F47;
    --light-secondary-color: #FFCF50;
    --light-bg: #FEFAE0;
    --light-bg-alt: #ffffff;
    --light-text-dark: #3A4229;
    --light-text-light: #FEFAE0;
    --light-text-muted: #8A927A;
    --light-border-color: #D8E0BD;
    --light-success-color: #A4B465;
    --light-error-color: #E07A5F;
    --light-highlight-color: #FFCF50;
    --light-highlight-color-dark: #E9B93E;
    --light-code-bg: #626F47;
    --light-card-bg: #ffffff;
    --light-timeline-bg: #ffffff;
    --light-skills-bg: #ffffff;
    --light-navbar-bg: rgba(255, 255, 255, 0.95);
  
    /* Dark Theme Colors - Updated with new nature-inspired palette */
    --dark-primary-color: #A4B465;
    --dark-primary-color-dark: #626F47;
    --dark-secondary-color: #FFCF50;
    --dark-bg: #3A4229;
    --dark-bg-alt: #4A5437;
    --dark-text-dark: #FEFAE0;
    --dark-text-light: #F5F1D7;
    --dark-text-muted: #D8E0BD;
    --dark-border-color: #626F47;
    --dark-success-color: #A4B465;
    --dark-error-color: #E07A5F;
    --dark-highlight-color: #FFCF50;
    --dark-card-bg: #4A5437;
    --dark-timeline-bg: #4A5437;
    --dark-skills-bg: #4A5437;
    --dark-navbar-bg: rgba(74, 84, 55, 0.95);
  
    /* Set default (dark) theme */
    --primary-color: var(--dark-primary-color);
    --primary-color-dark: var(--dark-primary-color-dark);
    --secondary-color: var(--dark-secondary-color);
    --bg-color: var(--dark-bg);
    --bg-alt-color: var(--dark-bg-alt);
    --text-dark: var(--dark-text-dark);
    --text-light: var(--dark-text-light);
    --text-muted: var(--dark-text-muted);
    --border-color: var(--dark-border-color);
    --success-color: var(--dark-success-color);
    --error-color: var(--dark-error-color);
    --highlight-color: var(--dark-highlight-color);
    --card-bg: var(--dark-card-bg);
    --timeline-bg: var(--dark-timeline-bg);
    --skills-bg: var(--dark-skills-bg);
    --navbar-bg: var(--dark-navbar-bg);
  
    /* Other variables - unchanged */
    --header-height: 70px;
    --container-width: 1200px;
    --transition-speed: 0.3s;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  /* Light theme overrides */
  body.light-theme {
    --primary-color: var(--light-primary-color);
    --primary-color-dark: var(--light-primary-color-dark);
    --secondary-color: var(--light-secondary-color);
    --bg-color: var(--light-bg);
    --bg-alt-color: var(--light-bg-alt);
    --text-dark: var(--light-text-dark);
    --text-light: var(--light-text-light);
    --text-muted: var(--light-text-muted);
    --border-color: var(--light-border-color);
    --success-color: var(--light-success-color);
    --error-color: var(--light-error-color);
    --highlight-color: var(--light-highlight-color);
    --card-bg: var(--light-card-bg);
    --timeline-bg: var(--light-timeline-bg);
    --skills-bg: var(--light-skills-bg);
    --navbar-bg: var(--light-navbar-bg);
  }

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}
/* Theme Switch Styles - Redesigned */
/* Theme Switch Styles - Redesigned */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-left: 15px;
    position: relative;
  }
  
  .theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 28px;
  }
  
  .theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--dark-primary-color-dark);
    transition: .4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    overflow: hidden;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: var(--light-bg);
    transition: .4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  }
  
  .slider:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 28px;
  }
  
  .sun-icon, .moon-icon {
    color: var(--light-text-light);
    font-size: 14px;
    z-index: 1;
    transition: all 0.4s ease;
    position: relative;
  }
  
  .sun-icon {
    margin-left: auto;
    transform: scale(0);
    transform-origin: center;
  }
  
  .moon-icon {
    margin-right: auto;
    transform: scale(1);
    transform-origin: center;
  }
  
  input:checked + .slider {
    background-color: var(--light-highlight-color);
  }
  
  input:checked + .slider:before {
    transform: translateX(32px) scale(1.1);
  }
  
  input:checked + .slider:after {
    opacity: 1;
  }
  
  /* Replace opacity changes with transform animations */
  input:checked + .slider .moon-icon {
    transform: scale(0) rotate(-45deg);
  }
  
  input:not(:checked) + .slider .sun-icon {
    transform: scale(0) rotate(45deg);
  }
  
  input:checked + .slider .sun-icon {
    transform: scale(1);
  }
  
  /* Hover state with pulsing effect */
  .theme-switch:hover .slider:before {
    box-shadow: 0 0 10px 2px rgba(255, 207, 80, 0.5);
  }
  
  /* Active clicking state */
  .theme-switch:active .slider:before {
    width: 26px;
    height: 26px;
    transition: .1s;
  }
  
  /* Custom focus state */
  .theme-switch input:focus + .slider {
    outline: none;
    box-shadow: 0 0 0 3px rgba(164, 180, 101, 0.4);
  }
  
  /* Add a subtle ripple effect on click */
  .theme-switch:active .slider:after {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 1;
  }
  /* Section styles - Redesigned for uniqueness */
section {
    padding: 100px 0 80px;
    position: relative;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow: hidden;
  }
  
  /* Alternating diagonal section separators */
  section:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: inherit;
    clip-path: polygon(0 0, 100% 60%, 100% 100%, 0% 100%);
    z-index: 2;
  }
  
  section:nth-child(even):not(:last-child)::after {
    clip-path: polygon(0 60%, 100% 0, 100% 100%, 0% 100%);
  }
  
  /* Main sections with subtle pattern overlay */
  .about, .contact, .skills {
    background-color: var(--bg-color);
    transition: background-color 0.4s ease, color 0.4s ease;
  }
  
  .about::before, .contact::before, .skills::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--primary-color-dark) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.03;
    pointer-events: none;
  }
  
  /* Alternate sections with gradient background */
  .experience, .projects {
    background: linear-gradient(135deg, var(--bg-alt-color) 0%, var(--bg-alt-color) 90%, var(--primary-color-dark) 150%);
    transition: background 0.4s ease, color 0.4s ease;
  }
  
  /* Navbar with frosted glass effect */
  .navbar {
    background-color: var(--navbar-bg);
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  /* Project cards with hover effects */
  .project-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
  }
  
  .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  }
  
  .project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--highlight-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
  }
  
  .project-card:hover::before {
    transform: scaleX(1);
  }
  
  /* Timeline and skill category styling */
  .timeline-content, .skill-category {
    background-color: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
  }
  
  .timeline-content:hover, .skill-category:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
  }
  
  /* Timeline marker with pulsing effect */
  .timeline-item::after {
    background-color: var(--primary-color);
    transition: background-color 0.4s ease;
    box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb), 0.2);
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0.4);
    }
    70% {
      box-shadow: 0 0 0 10px rgba(var(--primary-color-rgb), 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb), 0);
    }
  }
  
  /* Footer with wave pattern */
  .footer {
    background-color: var(--bg-alt-color);
    transition: background-color 0.4s ease, color 0.4s ease;
    padding: 60px 0 20px;
    position: relative;
  }
  
  .footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: var(--primary-color);
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25'%3E%3C/path%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.5'%3E%3C/path%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z'%3E%3C/path%3E%3C/svg%3E");
    mask-size: cover;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25'%3E%3C/path%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.5'%3E%3C/path%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z'%3E%3C/path%3E%3C/svg%3E");
    -webkit-mask-size: cover;
  }
  
  /* Add a CSS variable for RGB version of primary color */
  :root {
    --primary-color-rgb: 164, 180, 101; /* RGB equivalent of #A4B465 */
  }
  /* Custom Scrollbar with Gradient Effect */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  
  ::-webkit-scrollbar-track {
    background: transparent;
    border-left: 1px dashed var(--border-color);
  }
  
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 2px;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2);
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
  }
  
  /* Hero Overlay with Animation */
  .hero::before {
    background: radial-gradient(circle at top right, 
                  transparent, 
                  var(--bg-color) 70%);
    opacity: 0.85;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  
  body.light-theme .hero::before {
    background: radial-gradient(circle at bottom left, 
                  transparent, 
                  var(--bg-color) 75%);
    opacity: 0.8;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  
  /* Loading Animation with Stagger Effect */
  @keyframes fadeInStagger {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
  }
  
  body.loading .timeline, 
  body.loading .projects-grid, 
  body.loading .skills-container {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  
  body.loaded .timeline {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0.1s;
  }
  
  body.loaded .projects-grid {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0.2s;
  }
  
  body.loaded .skills-container {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0.3s;
  }
  
  /* Content Container Fixes */
  .projects-grid, .skills-container, .timeline {
    position: relative;
    z-index: 2;
    visibility: visible !important;
    display: grid;
    gap: 1.5rem;
  }
  
  img {
    max-width: 100%;
    height: auto;
    filter: contrast(1.05);
    transition: filter 0.3s ease, transform 0.3s ease;
  }
  
  img:hover {
    filter: contrast(1.1) brightness(1.05);
    transform: scale(1.01);
  }
  
  a {
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
  }
  
  a:hover {
    color: var(--accent-color);
  }
  
  a:not(.btn):after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
  }
  
  a:not(.btn):hover:after {
    width: 100%;
  }
  
  ul {
    list-style: none;
    padding-left: 1rem;
  }
  
  ul li {
    position: relative;
    padding-left: 1.2rem;
  }
  
  ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
  }
  
  .container {
    max-width: min(var(--container-width), 92vw);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    width: 100%;
  }
  
  .section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    color: var(--text-dark);
    font-family: 'JetBrains Mono', monospace;
  }
  
  .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
  }
  
  /* Unique Button Styles with Glitch Effect */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-size: 0.95rem;
    border-radius: 3px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.5px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    border: none;
    outline: none;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  .btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 1px solid transparent;
  }
  
  .btn-primary:hover {
    background-color: var(--primary-color-dark);
    color: var(--text-light);
  }
  
  .btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    bottom: -50%;
    left: -50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg) translate(0, -100%);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }
  
  .btn-primary:hover::after {
    transform: rotate(45deg) translate(0, 100%);
  }
  
  .btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--primary-color);
    position: relative;
    z-index: 1;
  }
  
  .btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(99, 102, 241, 0.08);
    transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
  }
  
  .btn-secondary:hover {
    color: var(--primary-color);
    border-color: var(--primary-color-dark);
  }
  
  .btn-secondary:hover::before {
    width: 100%;
  }
  
  /* Project Filter Buttons with Custom Animation */
  .filter-btn {
    padding: 6px 16px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 3px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    margin: 3px;
    position: relative;
    overflow: hidden;
  }
  
  .filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }
  
  .filter-btn:hover {
    background-color: rgba(99, 102, 241, 0.04);
    color: var(--primary-color);
    border-color: var(--border-color);
  }
  
  .filter-btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
  
  .filter-btn.active {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
  }
  
  .filter-btn.active::after {
    transform: scaleX(0);
  }
/* Timeline Toggle Button - Redesigned with Split Effect */
.timeline-details-toggle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-dark);
    margin-top: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 0;
    background-color: transparent;
    border: none;
    border-left: 3px solid var(--primary-color);
    width: fit-content;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    box-shadow: -4px 0 0 rgba(99, 102, 241, 0.1);
}

.timeline-details-toggle:hover {
    padding-left: 20px;
    background-color: rgba(99, 102, 241, 0.05);
    color: var(--primary-color);
}

.timeline-details-toggle i {
    margin-left: 8px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 0.8rem;
}

.timeline-details-toggle:hover i {
    transform: rotate(90deg);
}

/* Project Link Buttons - Asymmetric Design */
.project-link {
    width: 40px;
    height: 40px;
    clip-path: polygon(0 0, 100% 0, 100% 75%, 75% 100%, 0 100%);
    background-color: var(--bg-alt-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid var(--primary-color);
    position: relative;
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 10px 10px;
    border-color: transparent transparent var(--primary-color) transparent;
    transition: all 0.3s ease;
}

.project-link:hover {
    transform: translateY(-3px) rotate(-5deg);
    background-color: var(--primary-color);
    color: var(--bg-color);
}

.project-link:hover::after {
    border-width: 0 0 15px 15px;
}

/* Tech Tag Buttons - Circuit Board Style */
.tech-tag {
    padding: 4px 10px 4px 16px;
    background-color: var(--bg-alt-color);
    color: var(--text-dark);
    font-size: 0.75rem;
    font-family: 'Fira Code', monospace;
    display: inline-block;
    transition: all 0.3s ease;
    border-left: 2px solid var(--primary-color);
    position: relative;
    margin: 3px 4px;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.08);
}

.tech-tag::before {
    content: '';
    color: var(--primary-color);
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.5rem;
}

.tech-tag:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    transform: translateX(3px);
    border-left-width: 4px;
}

.tech-tag:hover::before {
    color: var(--bg-color);
}

/* Social Link Buttons - Geometric Design */
.social-link {
    width: 42px;
    height: 42px;
    background-color: var(--bg-alt-color);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: visible;
    transform: rotate(45deg);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.social-link i, 
.social-link svg {
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: rotate(45deg) scale(1.15);
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: transparent;
}

.social-link:hover i,
.social-link:hover svg {
    transform: rotate(-45deg) scale(1.1);
}

/* Navigation styles - Asymmetric with Unique Indicators */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(var(--bg-color-rgb), 0.85);
    border-bottom: 1px solid rgba(var(--border-color-rgb), 0.1);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-link {
    margin: 0 20px;
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 5px 0;
    letter-spacing: 0.5px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -5px;
    height: 0;
    width: 2px;
    background-color: var(--primary-color);
    transition: height 0.3s ease;
}

.nav-link.active::before, 
.nav-link:hover::before {
    height: 100%;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.3s ease 0.1s;
}

.nav-link.active::after, 
.nav-link:hover::after {
    width: 100%;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 1px;
    position: relative;
    padding: 5px 10px;
}

.logo a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.logo a:hover::before {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px 0;
    transition: all 0.3s ease;
    background-color: var(--text-dark);
}

/* Hero section styles - Angular Design */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    box-sizing: border-box;
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(135deg, 
                var(--bg-color) 0%, 
                transparent 50%, 
                var(--bg-color) 100%);
    opacity: 0.9;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    position: relative;
    padding-left: 20px;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, 
                var(--primary-color), 
                transparent);
}

.hero-image {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}



.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    line-height: 1.1;
    color: var(--text-dark);
    font-family: 'JetBrains Mono', monospace;
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    font-family: 'Fira Code', monospace;
    height: 2.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.hero-subtitle::before {
    content: '{ ';
    color: var(--primary-color);
    font-family: 'Fira Code', monospace;
    font-weight: 500;
}

.hero-subtitle::after {
    content: ' }';
    color: var(--primary-color);
    font-family: 'Fira Code', monospace;
    font-weight: 500;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    color: var(--text-muted);
    position: relative;
    line-height: 1.6;
}

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

/* Removed the underline animation for the name */
.highlight::after {
    display: none;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.profile-image {
    width: 325px;
    height: 325px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 4px solid var(--primary-color);
    position: relative;
    margin: 0 auto;
}

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

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

/* Keep the old placeholder style for backward compatibility */
.profile-image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--highlight-color) 100%);
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Add responsive sizing for profile image */
@media screen and (max-width: 992px) {
    .profile-image {
        width: 300px;
        height: 300px;
    }
    
    .profile-image-placeholder {
        width: 300px;
        height: 300px;
    }
}

@media screen and (max-width: 768px) {
    .hero .container {
        justify-content: center;
        flex-direction: column-reverse;
        gap: 20px;
    }
    
    .hero-image {
        margin-bottom: 20px;
    }
    
    .profile-image {
        margin: 0 auto;
        width: 260px;    /* Increased from 240px */
        height: 260px;   /* Increased from 240px */
    }
    
    .profile-image-placeholder {
        width: 260px;
        height: 260px;
    }
    
    .hero {
        padding-top: calc(var(--header-height) + 30px); /* More padding on mobile */
    }
}

@media screen and (max-width: 480px) {
    .profile-image {
        width: 220px;
        height: 220px;
        border-width: 3px;
    }
    
    .profile-image-placeholder {
        width: 220px;
        height: 220px;
    }
}

/* About section styles */
.about {
    overflow: hidden;
}

.about-content {
    display: flex;
    gap: 40px;
}

.about-text {
    flex: 0 0 60%;
}

.about-text p {
    margin-bottom: 1rem;
}

.personal-info {
    flex: 0 0 35%;
}

.info-item {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Fix the education layout */
.info-item .info-value {
    text-align: right;
    max-width: 60%;
}

.info-title {
    font-weight: 600;
    color: var(--text-dark);
}

/* Experience section styles */
.experience {
    position: relative;
    padding-top: 100px;
    padding-bottom: 100px;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color-dark), var(--primary-color), var(--highlight-color));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.timeline-item {
    position: relative;
    background-color: inherit;
    width: 50%;
    margin-bottom: 50px; /* Increased spacing between items */
    box-sizing: border-box;
    clear: both;
}

.timeline-item.left {
    float: left;
    padding-right: 70px; /* Increased space for marker */
}

.timeline-item.right {
    float: right; /* Explicitly float right */
    padding-left: 70px; /* Increased space for marker */
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 24px; /* Larger marker */
    height: 24px; /* Larger marker */
    background-color: var(--primary-color);
    border: 4px solid var(--bg-alt-color);
    border-radius: 50%;
    z-index: 1;
    top: 20px;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.timeline-item:hover::after {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.3);
    background-color: var(--highlight-color);
}

.timeline-item.left::after {
    right: -16px; /* Precise positioning */
}

.timeline-item.right::after {
    left: -16px; /* Precise positioning */
}

.timeline-content {
    padding: 25px 35px; /* Increased padding */
    position: relative;
    border-radius: var(--border-radius);
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: none; /* Remove border in favor of shadow */
    background: linear-gradient(145deg, var(--card-bg), var(--card-bg));
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Timeline content arrow pointers */
.timeline-item.left .timeline-content::before {
    content: '';
    position: absolute;
    top: 22px;
    right: -15px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid var(--card-bg);
    z-index: 1;
}

.timeline-item.right .timeline-content::before {
    content: '';
    position: absolute;
    top: 22px;
    left: -15px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid var(--card-bg);
    z-index: 1;
}

/* Clear the timeline container to account for floated elements */
.timeline::before {
    content: "";
    display: table;
    clear: both;
}

.timeline::after {
    content: "";
    display: table;
    clear: both;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.timeline-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.5px;
}

.timeline-company {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 500;
}

.timeline-description {
    margin-bottom: 20px;
    color: var(--text-muted);
    line-height: 1.7;
}

.timeline-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.timeline-details h4 {
    margin: 15px 0 10px;
}

.timeline-details ul {
    list-style: none;
}

.timeline-details ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.timeline-details ul li::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    left: 0;
    top: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.timeline-technologies {
    margin-top: 15px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tech-tag {
    padding: 4px 10px;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

.timeline-details-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--primary-color);
    margin-top: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    background-color: rgba(99, 102, 241, 0.1);
    width: fit-content;
    transition: all 0.3s ease;
}

.timeline-details-toggle:hover {
    background-color: rgba(99, 102, 241, 0.2);
    color: var(--primary-color-dark);
    transform: translateY(-2px);
}

.timeline-details-toggle i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

/* Media Queries - preserve mobile responsiveness */
@media screen and (max-width: 640px) {
    .skills-container {
      flex-direction: column;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        float: none;
        margin-bottom: 40px;
    }
    
    .timeline-item.right {
        left: 0;
        float: none;
    }
    
    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 18px;
    }
    
    /* Reset content arrows for mobile */
    .timeline-item.left .timeline-content::before,
    .timeline-item.right .timeline-content::before {
        display: none;
    }
}

/* Timeline Section */
.timeline::after {
    left: 50%;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--highlight-color));
}

.timeline-item {
    width: 50%;
    padding: 20px 40px;
    position: relative;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item.left .timeline-content::before {
    right: -10px;
    border-left: 10px solid var(--bg-light);
}

.timeline-item.right .timeline-content::before {
    left: -10px;
    border-right: 10px solid var(--bg-light);
}

/* Skills section styles */
.skills {
    position: relative;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.skill-category {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 20px;
    padding: 25px;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-title {
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
    color: var(--text-dark);
    font-family: 'JetBrains Mono', monospace;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-item {
    margin-bottom: 5px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.skill-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

.skill-percentage {
    color: var(--primary-color);
}

.skill-progress {
    height: 10px;
    background-color: rgba(99, 102, 241, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 0;
    border-radius: 4px;
    transition: width 1.5s ease-out;
}

/* Contact section styles - enhanced with Telegram style animations */
.contact {
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-info {
    max-width: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    transform: translateX(-20px);
    opacity: 0;
    animation: fadeInLeft 0.5s forwards;
    position: relative;
}

.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.2s; }
.contact-item:nth-child(3) { animation-delay: 0.3s; }
.contact-item:nth-child(4) { animation-delay: 0.4s; }
.contact-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-item:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-item:hover i {
    transform: scale(1.1) rotate(360deg);
    background-color: var(--primary-color-dark);
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.5);
}

.contact-item i::before {
    position: relative;
    z-index: 2;
}

.contact-item i::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.contact-item:hover i::after {
    width: 100%;
    height: 100%;
}

.contact-details {
    flex: 1;
    transition: transform 0.3s ease;
}

.contact-details h3 {
    margin-bottom: 5px;
    color: var(--text-dark);
    font-family: 'JetBrains Mono', monospace;
}

.contact-details p {
    color: var(--text-muted);
}

.contact-details a {
    position: relative;
    display: inline-block;
}

.contact-details a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.contact-details a:hover::after {
    width: 100%;
}

/* Enhanced Footer Styles */
.footer {
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-logo h3 {
    color: var(--text-dark);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--highlight-color));
    transition: all 0.3s ease;
    z-index: -1;
}

.social-link:hover {
    transform: translateY(-5px) rotate(10deg);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.social-link:hover::before {
    transform: scale(1.2) rotate(-10deg);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: var(--text-muted);
    font-size: 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    position: relative;
    display: inline-block;
}

.footer-bottom p::before {
    content: '❤️';
    margin-right: 8px;
    animation: pulse 1.5s infinite;
}

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

/* ===== MEDIA QUERIES FOR RESPONSIVE DESIGN ===== */

/* Tablet Devices */
@media screen and (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content, 
    .contact-content {
        flex-direction: column;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-image {
        order: 1;
        margin-bottom: 30px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        float: none;
    }
    
    .timeline-item.right {
        left: 0;
        float: none;
    }
    
    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 20px;
    }
    
    .info-item .info-value {
        max-width: 100%;
        text-align: left;
        margin-top: 5px;
    }
}

/* Mobile Devices */
@media screen and (max-width: 768px) {
    /* Consistent section padding */
    section {
        padding: 60px 0;
    }
    
    /* Fix hero section alignment on mobile */
    .hero {
        text-align: center;
        padding-top: calc(var(--header-height) + 30px); /* More padding on mobile */
    }
    
    .hero-content {
        width: 100%;
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
        margin-bottom: 15px;
        height: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Consistent container padding */
    .container {
        padding: 0 20px;
    }
    
    /* Fix section titles */
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    /* Consistent card styles */
    .project-card, .timeline-content, .skill-category {
        margin-bottom: 20px;
    }
    
    /* Fix mobile menu alignment */
    .nav-menu {
        gap: 0;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }
    
    /* Center contact items */
    .contact-item {
        justify-content: flex-start;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        background-color: var(--navbar-bg);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        gap: 15px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
    
    .projects-filter {
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .profile-image-placeholder {
        width: 250px;
        height: 250px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    /* Experience timeline improvements for mobile */
    .timeline-item {
        margin-bottom: 35px;
        padding-left: 60px;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .timeline-title {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .timeline-company {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .timeline-description {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .timeline-date {
        font-size: 0.95rem;
        padding: 5px 10px;
    }
    
    .timeline-details ul li {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .tech-tag {
        font-size: 0.85rem;
        padding: 5px 10px;
        margin-bottom: 5px;
    }
    
    /* Skills section responsive fixes */
    .skills-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px; /* Smaller gap on mobile */
    }
    
    .skill-category {
        padding: 20px; /* Smaller padding on mobile */
    }
    
    .category-title {
        font-size: 1.1rem; /* Smaller font size on mobile */
        margin-bottom: 15px;
    }
    
    .skill-info {
        flex-wrap: wrap; /* Allow name and percentage to wrap */
    }
    
    .skill-name {
        font-size: 0.95rem;
    }
    
    .skill-percentage {
        font-size: 0.9rem;
    }
    
    /* Center the theme switch in mobile menu */
    .nav-menu .theme-switch-wrapper {
        margin: 15px auto;
        justify-content: center;
        position: relative;
        padding-top: 15px;
    }
    
    /* Add a subtle divider above the theme switch */
    .nav-menu .theme-switch-wrapper:before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 1px;
        background-color: var(--border-color);
        opacity: 0.5;
    }
    
    /* Make the switch slightly larger on mobile for better touch target */
    .nav-menu .theme-switch {
        width: 55px;
        height: 28px;
    }
    
    .nav-menu .slider:before {
        height: 22px;
        width: 22px;
    }
    
    .nav-menu input:checked + .slider:before {
        transform: translateX(27px);
    }
    
    .nav-menu .sun-icon,
    .nav-menu .moon-icon {
        font-size: 16px;
    }
}

/* Small Mobile Devices */
@media screen and (max-width: 480px) {
    /* Further adjust smallest screens */
    section {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        height: 1.6rem;
    }
    
    /* Adjust footer for very small screens */
    .footer-content {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* Make buttons more tappable on mobile */
    .btn, .filter-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    /* Ensure timeline is fully visible */
    .timeline-item {
        padding-left: 45px;
    }
    
    .timeline::after {
        left: 20px;
    }
    
    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 8px;
    }
    
    .skills-container {
        grid-template-columns: 1fr; /* Single column on smallest screens */
    }
}

/* Projects section styles */
.projects {
    position: relative;
}

.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.project-link:hover {
    transform: translateY(-3px);
    background-color: var(--primary-color-dark);
}

.project-info {
    padding: 20px;
}

.project-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-family: 'JetBrains Mono', monospace;
}

.project-description {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

/* Special styles for SmartSign project without hover darkening effect */
.no-hover-effect .project-image img {
    transform: none !important;
    transition: none !important;
}

.no-hover-effect .project-overlay {
    display: none !important;
}

.no-hover-effect:hover {
    transform: none !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

.no-hover-effect:hover .project-image img {
    filter: none !important;
    transform: none !important;
}

@media screen and (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr; /* Single column on smallest screens */
    }
} 