:root {
    --primary-color: #4a6cf7;
    --secondary-color: #6c757d;
    --background-color: #ffffff;
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --font-heading: 'Sora', 'Avenir Next', 'Segoe UI', sans-serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  }
  
  /* Dark Mode Variables (will be applied via JS) */
  .dark-mode {
    --primary-color: #6e8bff;
    --secondary-color: #adb5bd;
    --background-color: #121212;
    --text-color: #e9ecef;
    --light-bg: #1e1e1e;
    --dark-bg: #000000;
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  
  /* Base Styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
    font-size: 16px;
  }
  
  body {
    font-family: var(--font-body);
    line-height: 1.6;
    letter-spacing: 0.005em;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: var(--transition);
    overflow-x: hidden;
  }
  
  /* Preload State */
  .preload * {
    transition: none !important;
  }

  .skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 1200;
    background: #111;
    color: #fff;
    padding: 0.65rem 0.9rem;
    border-radius: 0.5rem;
    font-weight: 600;
  }

  .skip-link:focus {
    top: 1rem;
    color: #fff;
  }
  
  /* Typography */
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 1rem;
    line-height: 1.2;
  }
  
  h1 {
    font-size: 3.5rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
  
  h3 {
    font-size: 1.75rem;
  }
  
  p {
    margin-bottom: 1rem;
  }
  
  a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
  }
  
  a:hover {
    color: #2a4dd1; /* Darker shade of primary color */
    text-decoration: none;
  }
  
  /* Cards */
  .card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    background-color: var(--background-color);
    color: var(--text-color);
  }

  .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  }

  .dark-mode .card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  }

  /* Buttons */
  .btn {
    border-radius: 30px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 0.9rem;
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
  }
  
  .btn-primary:hover {
    background-color: #2a4dd1; /* Darker shade of primary color */
    border-color: #2a4dd1;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  
  .btn-light {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
  }
  
  .btn-light:hover {
    background-color: #f8f9fa;
    color: #2a4dd1;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  
  .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
  }
  
  .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
  }
  
  /* Navigation */
  .navbar {
    padding: 1rem 0;
    transition: var(--transition);
    background-color: transparent;
  }
  
  .navbar.scrolled {
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
  }
  
  .navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
  }
  
  .nav-link {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-color) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 0.75rem !important;
    border-radius: 5px;
    transition: var(--transition);
  }
  
  .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(74, 108, 247, 0.1);
  }
  
  /* Hero Section */
  .hero-section {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #7e8fff 100%);
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
  }
  
  .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="white" fill-opacity="0.05" d="M0,288L48,272C96,256,192,224,288,197.3C384,171,480,149,576,165.3C672,181,768,235,864,250.7C960,267,1056,245,1152,224C1248,203,1344,181,1392,170.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
    z-index: 0;
  }
  
  .hero-section .container {
    position: relative;
    z-index: 1;
  }
  
  .hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
  }
  
  .hero-section .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
  }

  .typed-roles {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    min-height: 2.6rem;
    display: inline-block;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
  }

  .hero-image-shell {
    width: min(260px, 64vw);
    aspect-ratio: 4 / 5;
    margin: 0 auto;
    padding: 10px;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.12));
    box-shadow: 0 24px 50px rgba(15, 24, 56, 0.3);
    position: relative;
    isolation: isolate;
  }

  .hero-image-shell::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    right: -30px;
    bottom: -30px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
    z-index: -1;
    pointer-events: none;
  }
  
  .profile-image {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 22px;
    object-fit: cover;
    object-position: center 24%;
    border: 2px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }
  
  .profile-image:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 24px 42px rgba(0, 0, 0, 0.24);
  }
  
  /* Section Styling */
  .section {
    padding: 96px 0;
    position: relative;
  }
  
  .section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    font-weight: 800;
  }
  
  .section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 5px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 5px;
  }
  
  .bg-light {
    background-color: var(--light-bg);
  }
  
  /* Card Styling */
  
  .card-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
  }
  
  .card-body {
    padding: 1.75rem;   
  }
  
  /* Timeline Styling */
  .timeline {
    position: relative;
    padding: 2rem 0;
  }
  
  .timeline::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 4px;
    background-color: var(--primary-color);
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    border-radius: 2px;
  }
  
  .timeline-item {
    margin-bottom: 3rem;
    position: relative;
  }
  
  .timeline-item:last-child {
    margin-bottom: 0;
  }
  
  .timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
    z-index: 1;
    box-shadow: 0 0 0 5px rgba(74, 108, 247, 0.2);
  }

  #experience-container {
    max-width: 1140px;
    margin: 0 auto;
  }

  #experience-container .timeline-item {
    margin-bottom: 4rem;
  }

  #experience-container .timeline-item::before {
    top: 2rem;
  }

  #experience-container .experience-card {
    margin-bottom: 0;
    border-radius: 16px;
  }

  #experience-container .experience-card .card-body {
    padding: 2rem;
  }

  #experience-container .experience-role {
    font-size: 1.35rem;
    line-height: 1.35;
    margin-bottom: 0.9rem;
  }

  #experience-container .experience-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
    font-size: 0.96rem;
    color: var(--secondary-color);
  }

  #experience-container .experience-company {
    color: var(--text-color);
    font-weight: 600;
  }

  #experience-container .experience-date {
    color: var(--secondary-color);
  }

  #experience-container .meta-sep {
    opacity: 0.65;
    font-weight: 700;
  }

  #experience-container .experience-points {
    margin: 0;
    padding-left: 1.2rem;
  }

  #experience-container .experience-points li {
    margin-bottom: 0.8rem;
    color: #4f5d75;
    font-size: 1rem;
    line-height: 1.75;
  }

  #experience-container .experience-points li:last-child {
    margin-bottom: 0;
  }

  .dark-mode #experience-container .experience-points li {
    color: #c8d1e8;
  }
  
  /* Project Styling */
  .tech-stack {
    margin-top: 1rem;
  }
  
  .badge {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.75rem;
  }
  
  /* Certification Styling */
  .certification-card {
    background-color: var(--background-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
  }
  
  .certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  }
  
  .certification-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7e8fff 100%);
    padding: 2rem;
    text-align: center;
    position: relative;
  }
  
  .certification-icon {
    font-size: 2.5rem;
    color: white;
  }
  
  .certification-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #ff4b4b;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 700;
  }
  
  .certification-body {
    padding: 1.5rem;
  }
  
  .certification-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  
  .certification-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
  }
  
  .certification-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .tag {
    background-color: rgba(74, 108, 247, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
  }
  
  /* Skills Styling */
  .skill-badge {
    display: inline-block;
    background-color: rgba(74, 108, 247, 0.1);
    color: var(--primary-color);
    padding: 0.75rem 1.25rem;
    border-radius: 30px;
    margin: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
  }
  
  .skill-badge:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
  }

  .card {
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  /* Skill badge grid fix */
  #skills-container .col-md-6 {
    margin-bottom: 1rem;
  }
  
  /* Contact Form */
  .contact-form .form-control {
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    border: 2px solid #e9ecef;
    transition: var(--transition);
  }
  
  .contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 108, 247, 0.25);
  }
  
  .contact-form label {
    font-weight: 600;
    margin-bottom: 0.5rem;
  }

  .contact-form .btn[disabled] {
    opacity: 0.75;
    cursor: not-allowed;
  }

  .form-feedback {
    display: none;
  }

  .cookie-banner {
    bottom: 0;
    left: 0;
    z-index: 1080;
    display: none;
    background: #111;
    color: #fff;
  }

  .cookie-banner-text {
    line-height: 1.4;
  }
  
  /* Social Links */
  .social-links {
    position: fixed;
    left: 2rem;
    bottom: 50%;
    transform: translateY(50%);
    display: flex;
    flex-direction: column;
    z-index: 100;
  }
  
  .social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: white;
    color: var(--primary-color);
    border-radius: 50%;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    font-size: 1.2rem;
    position: relative;
  }
  
  .social-links a:hover {
    transform: translateY(-5px);
    background-color: var(--primary-color);
    color: white;
  }
  
  .social-links a::before {
    content: attr(data-tooltip);
    position: absolute;
    left: 120%;
    background-color: #333;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  
  .social-links a:hover::before {
    opacity: 1;
    visibility: visible;
  }
  
  /* Footer */
  footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 2rem 0;
  }
  
  footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
  }
  
  footer a:hover {
    color: white;
  }
  
  /* Dark Mode Toggle */
  #dark-mode-container {
    position: relative;
    z-index: 1;
  }

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

  .theme-picker {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 10px 24px rgba(22, 30, 59, 0.2);
    backdrop-filter: blur(8px);
  }

  .dark-mode .theme-picker {
    background: rgba(26, 26, 26, 0.86);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  }

  .theme-option {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
  }

  .theme-option:hover {
    transform: translateY(-1px);
    background: rgba(74, 108, 247, 0.16);
  }

  .theme-option.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.45);
  }

  .theme-option i {
    font-size: 0.95rem;
  }

  .theme-option:focus {
    outline: none;
  }

  .theme-option:focus-visible {
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.35);
  }
  
  /* Responsive Design */
  @media (max-width: 1200px) {
    .hero-section h1 {
      font-size: 3rem;
    }
    
    .hero-image-shell {
      width: min(230px, 62vw);
    }
  }
  
  @media (max-width: 991px) {
    .section {
      padding: 80px 0;
    }

    .nav-theme-item {
      margin-left: 0;
      padding-left: 0.5rem;
    }
    
    .timeline::before,
    .timeline-item::before {
      display: none;
    }

    #experience-container .timeline-item {
      margin-bottom: 1.8rem;
    }

    #experience-container .experience-card .card-body {
      padding: 1.4rem 1.45rem;
    }

    #experience-container .experience-role {
      font-size: 1.2rem;
    }

    #experience-container .experience-points li {
      font-size: 0.98rem;
      line-height: 1.68;
    }
    
    .hero-image-shell {
      margin-top: 3rem;
    }
  }
  
  @media (max-width: 767px) {
    html {
      font-size: 14px;
    }

    .hero-actions {
      justify-content: center;
    }

    .theme-picker {
      padding: 5px;
      gap: 5px;
    }

    .theme-option {
      width: 30px;
      height: 30px;
    }
    
    .hero-section {
      height: auto;
      padding: 100px 0;
    }
    
    .hero-section h1 {
      font-size: 2.5rem;
    }
    
    .section {
      padding: 60px 0;
    }
    
    .social-links {
      position: relative;
      left: 0;
      bottom: 0;
      transform: none;
      flex-direction: row;
      justify-content: center;
      margin-bottom: 2rem;
    }
    
    .social-links a {
      margin: 0 0.5rem;
    }
    
    .social-links a::before {
      display: none;
    }
  }
  
  @media (max-width: 575px) {
    .section-title {
      font-size: 2rem;
    }
    
    .hero-section h1 {
      font-size: 2rem;
    }
    
    .hero-image-shell {
      width: min(170px, 64vw);
      padding: 8px;
    }

    #experience-container .experience-meta {
      font-size: 0.9rem;
      line-height: 1.5;
    }
  }

  @media (min-width: 768px) {
    .hero-actions {
      justify-content: flex-start;
    }
  }
  
  /* Animations */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
  }
  
  
  /* Spinner */
  .spinner-border {
    width: 3rem;
    height: 3rem;
  }
  
  /* Form Success Message */
  .alert-success {
    border-radius: 10px;
    background-color: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
  }

  .alert-danger {
    border-radius: 10px;
    background-color: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
  }
  
  /* Print Styles */
  @media print {
    .navbar, .social-links, #dark-mode-container, footer, .hero-section {
      display: none;
    }
    
    .section {
      padding: 20px 0;
      page-break-inside: avoid;
    }
    
    body {
      background-color: white;
      color: black;
    }
    
    .card {
      box-shadow: none;
      border: 1px solid #ddd;
    }
  }

/* Fix Bootstrap 4 custom switch layout */
.custom-switch .custom-control-label::before {
  left: -2.25rem;
  width: 2.25rem;
  height: 1.15rem;
  pointer-events: all;
  border-radius: 1rem;
}

.custom-switch .custom-control-label::after {
  top: 0.15rem;
  left: -2.15rem;
  width: .85rem;
  height: .85rem;
  background-color: #fff;
  border-radius: 50%;
  transition: transform .15s ease-in-out;
}

/* Move knob when ON */
.custom-switch .custom-control-input:checked ~ .custom-control-label::after {
  transform: translateX(1rem);
}

/* Turn background green when ON */
.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
  background-color: #28a745;
  border-color: #28a745;
}


