/* Component styles */

/* Base layout and structure from main.css */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-primary);
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-black);
  background-color: var(--color-background);
  min-height: 100vh;
  --framer-will-change-override: none;
  background: rgb(255, 255, 255);
  font-family: 'Inter', sans-serif;
  color: #333;
}

@supports (background: -webkit-named-image(i)) and (not (grid-template-rows: subgrid)) {
    body {
        --framer-will-change-override: transform;
    }
}

/* Layout */
.app-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Mobile Profile Section - Centered at top of screen */
.mobile-profile-section {
  display: none;
  position: relative; /* Changed from fixed to relative */
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px;
  z-index: 200;
  text-align: center;
  /* Calculate height: profile image (80px) + name (32px + margins) + info (28px) + buttons (80px) + social (40px) + padding (40px) + gaps */
  min-height: unset; /* Remove fixed min-height */
}

.mobile-profile-content {
  max-width: 320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.mobile-profile-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: rgba(97, 97, 97, 0.505) 0px 8px 24px 0px;
}

.mobile-profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-profile-name {
  font-size: 32px;
  font-weight: 600;
  color: #ff6928;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1;
}

.mobile-profile-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mobile-profile-title {
  font-size: 18px;
  color: #393939;
  margin: 0;
  line-height: 1.3;
}

.mobile-profile-location {
  font-size: 14px;
  color: #8e8989;
  margin: 0;
  line-height: 1.2;
}

.mobile-profile-buttons {
  display: flex;
  flex-direction: column;
  gap: -3px;
  width: 100%;
  max-width: 200px;
  align-items: center;
}

.mobile-profile-buttons .status-button,
.mobile-profile-buttons .download-cv-btn {
  width: auto;
  min-width: 200px;
  justify-content: flex-start;
  text-align: flex-start;
}

.mobile-social-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: -25px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  position: fixed;
  top: 1rem;
  right: 1rem;   /* <-- Move to right side */
  z-index: 250;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-size: 1.25rem;
  cursor: pointer;
  display: none;
  transition: all var(--transition-normal);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn:hover {
  background-color: var(--color-surface);
  transform: scale(1.05);
}

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu - Projects Focused */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background: var(--color-background);
  border-right: 1px solid var(--color-border);
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
  z-index: 220;
  transition: left var(--transition-normal);
  overflow-y: auto;
  padding: 80px 20px 20px 20px;
}

.mobile-menu.open {
  left: 0;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-black);
  font-weight: 500;
  transition: all var(--transition-normal);
}

.mobile-menu-item:hover {
  background: #f8f8f8;
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

.mobile-menu-item-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mobile-menu-item-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.mobile-menu-item-desc {
  font-size: 13px;
  color: var(--color-grey);
  line-height: 1.3;
}

.mobile-menu-arrow {
  width: 20px;
  height: 20px;
  color: var(--color-grey);
  transition: transform var(--transition-normal);
}

.mobile-menu-item:hover .mobile-menu-arrow {
  transform: translateX(2px);
  color: var(--color-primary);
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.mobile-menu-btn-primary {
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-xl);
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all var(--transition-normal);
}

.mobile-menu-btn-primary:hover {
  background-color: #e6612a;
  transform: translateY(-1px);
}

.mobile-menu-btn-secondary {
  background-color: transparent;
  color: var(--color-black);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 16px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  transition: all var(--transition-normal);
}

.mobile-menu-btn-secondary:hover {
  background-color: var(--color-surface);
  border-color: var(--color-primary);
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 100px;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  padding: var(--space-lg);
  overflow-y: auto;
  z-index: 100;
  opacity: 1;
  visibility: visible;
  transition: transform var(--transition-normal);
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 0;
}

/* Main content */
.main-content {
  flex: 1;
  margin-left: calc(var(--sidebar-width) + 100px);
  padding: var(--space-xl) var(--space-xl) var(--space-xl) 0;
  width: calc(100% - (var(--sidebar-width) + 100px));
  position: relative; /* Add position relative */
  z-index: 1; /* Ensure main content is below mobile profile */
}

.content-container {
  max-width: none;
  width: 85%;
  margin: 0;
}

/* Sections */
.section {
  margin-bottom: var(--space-3xl);
}

.section-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 20px;
}

/* Navigation from main.css */
.nav-scroll {
  background-color: rgba(250, 250, 250, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  opacity: 1;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Profile section - Enhanced from main.css */
.profile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 8px;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: none !important;
}

.profile-name {
  font-size: 46px;
  font-weight: 600;
  color: #ff6928;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
  line-height: 1;
  align-self: flex-start;
  text-align: center;
}

.profile-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 8px;
}

.profile-title {
  font-size: 14px;
  color: #393939;
  margin: 0 0 6px 0;
  line-height: 1.3;
  text-align: flex-start;
}

.profile-location {
  font-size: 12px;
  color: #8e8989;
  margin: 0;
  line-height: 1.2;
  text-align: flex-start;
}

/* Responsive design from main.css */
@media (max-width: 1023px) {
  .mobile-menu-btn {
    display: flex;
  }
  
  .mobile-profile-section {
    display: block;
    min-height: unset; /* Remove fixed min-height */
    padding: 16px 0 16px 0; /* Reduce padding for mobile */
  }
  
  .sidebar {
    display: none; /* Hide entire sidebar on mobile */
  }
  
  .main-content {
    margin-left: 0 !important; /* Force remove left margin */
    width: 100% !important; /* Force full width */
    padding: 20px 20px 40px 20px; /* Remove top padding since profile is no longer fixed */
    box-sizing: border-box;
    min-width: 100vw; /* Ensure it takes viewport width */
    max-width: 100vw; /* Prevent overflow */
    position: relative; /* Ensure proper stacking context */
    z-index: 1; /* Below mobile profile section */
  }
  
  .content-container {
    width: 100% !important; /* Force full width */
    max-width: 100% !important; /* Remove any max-width constraints */
    padding: 0 !important; /* Remove all internal padding */
    margin: 0 !important; /* Remove all margins */
    box-sizing: border-box;
    position: relative; /* Ensure proper stacking */
  }
  
  /* Ensure all sections take full width and proper positioning */
  .section {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    position: relative; /* Ensure sections stack properly */
  }
  
  /* Specifically ensure about section is positioned correctly */
  #about {
    position: relative;
    z-index: 1;
    margin-top: 0; /* Remove any negative margins */
    padding-top: 0; /* Ensure no overlap */
  }
  
  /* Hide floating nav on mobile */
  .floating-nav-container {
    display: none;
  }
  
  /* Ensure app container doesn't interfere */
  .app-container {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative; /* Proper stacking context */
  }
}

@media (max-width: 809px) {
  .mobile-profile-section {
    padding: 12px 0 12px 0;
    min-height: unset; /* Remove fixed min-height */
  }
  
  .mobile-profile-name {
    font-size: 52px;
  }
  
  .mobile-profile-image {
    width: 210px;
    height: 210px;
  }
  
  .main-content {
    padding: 20px 12px 24px 12px; /* Remove large top padding */
    position: relative;
    z-index: 1;
  }
  
  /* Section spacing adjustments */
  .section {
    margin-bottom: var(--space-2xl);
    position: relative;
  }
  
  /* Typography adjustments */
  .section-title {
    font-size: var(--font-size-base);
    margin-bottom: 16px;
  }
  
  /* Hero section mobile optimization */
  #about h1 {
    font-size: 1.8rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.8rem !important;
  }
  
  #about p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }
}

@media (max-width: 480px) {
  .mobile-profile-section {
    padding: 8px 0 8px 0;
    min-height: unset; /* Remove fixed min-height */
  }
  
  .mobile-profile-name {
    font-size: 48px;
  }
  
  .mobile-profile-image {
    margin-top: 16px;
    width: 210px;
    height: 210px;
  }
  
  .mobile-menu {
    width: 100%;
    padding: 70px 16px 16px 16px;
  }
  
  .main-content {
    padding: 16px 8px 16px 8px; /* Remove large top padding */
    position: relative;
    z-index: 1;
  }
  
  .social-link {
    min-width: 0;
    min-height: 0;
    width: 2px !important;
    height: 2px !important;
    border-radius: 5px;
  }
  .social-link svg {
    width: 14px;
    height: 14px;
  }
  
  /* Further typography optimization */
  #about h1 {
    font-size: 1.5rem !important;
    line-height: 1.4 !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: all var(--transition-normal);
  cursor: pointer;
}

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

.btn-primary:hover {
  background-color: #e6612a;
  border-color: #e6612a;
  transform: none;
}

/* Send button - Updated dark design */
.send-button {
    background-color: #333333;
    color: white;
    border: none;
    border-radius: 40px; /* Very rounded corners */
    padding: 10px 18px;
    font-size: 17px;
    font-weight: 500;
    width: 180px;
    min-width: 180px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    touch-action: manipulation; /* Improve mobile touch response */
  }
  
  .send-button:hover {
    background-color: #444444;
    color: #727272;
  }
  
  /* Optional: Add a subtle line/dash on the right side like in the image */
  .send-button::after {
    content: "—";
    font-weight: 600;
    margin-left: 10px;
    font-size: 16px;
    color: #727272;
  }
  
/* Mobile optimization for send button */
@media (max-width: 768px) {
  .send-button {
    width: 100%;
    min-width: auto;
    max-width: 200px;
    padding: 12px 20px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .send-button {
    padding: 14px 20px;
    font-size: 15px;
  }
}

.btn-secondary {
    background-color: #1f1f1f; /* Darker black */
    color: white;
    border-color: #1f1f1f;
    border-radius: 30px; /* Match pill shape */
    padding: 4px 12px;
    margin-bottom: 22px; /* Increase space before social icons */
    text-align: center;
    justify-content: flex-start; /* Center text */
    width: 100%; /* Full width to match status button */
    max-width: 150px; /* Match status button width */
    font-size: 13px;
    letter-spacing: 0.02em;
    font-weight: 500;
    overflow: hidden; /* Ensures clean transitions */
}

.btn-secondary:hover {
  background-color: #727272; /* Lighter on hover */
  border-color: #727272;
}

/* Target the text specifically */
.download-cv-btn span {
    color: white; /* Match your default text color */
    transition: color 0.1s ease;
}

/* Change ONLY the text color on hover */
.download-cv-btn:hover span {
    color: #bababa; /* Slightly lighter text on hover */
}

/* Hide the download icon */
.download-cv-btn svg {
    display: inline-block; /* Changed from none to inline-block */
    opacity: 0; /* Hide it with opacity instead of display:none */
    width: 16px;
    height: 16px;
    margin-left: 14px;
    transition: opacity 0.1s ease;
    color: #bababa;
}

/* Show the download icon on hover */
.download-cv-btn:hover svg {
    opacity: 1;
}

/* Cards */
.card {
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-compact {
  padding: var(--space-md);
}

/* Tags/Badges */
/* Tags with border highlight hover effect */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 16px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-light-grey);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  color: grey;
  transition: all 0.2s ease;
  margin-top: 3px;
  touch-action: manipulation; /* Improve mobile interaction */
}

/* Mobile tag optimization */
@media (max-width: 768px) {
  .tag {
    padding: 6px 12px;
    font-size: 12px;
    margin: 2px;
  }
}

@media (max-width: 480px) {
  .tag {
    padding: 5px 10px;
    font-size: 11px;
  }
}

.tag:hover {
  border: 1px solid #fd7338; /* Orange border on hover */
  color: #fd7338; /* Orange text on hover */
  transform: none !important; /* Prevent any movement */
  background-color: var(--color-surface); /* Keep same background */
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

/* Mobile tags container */
@media (max-width: 768px) {
  .tags-container {
    gap: 6px;
    margin-top: 16px;
  }
}

/* Grid layouts */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Responsive adjustments for grids */
@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .grid-auto {
    grid-template-columns: 1fr;
  }
}

/* Tech stack grid */
.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Mobile tech grid optimization */
@media (max-width: 768px) {
  .tech-grid {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .tech-grid {
    gap: 8px;
  }
}

/* Tech item - Redesigned as horizontal cards */
.tech-item {
    display: flex;
    align-items: center;
    padding: 8px 13px;
    background-color: white;
    border: 1px solid rgb(234, 233, 233);
    border-radius: 9px;
    transition: all 0.1s ease;
    flex: 0 0 auto;
    width: auto;
    touch-action: manipulation;
}

/* Mobile tech item optimization */
@media (max-width: 768px) {
  .tech-item {
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .tech-item {
    padding: 5px 8px;
  }
  
  .tech-logo {
    width: 12px !important;
    height: 12px !important;
    margin-right: 8px !important;
  }
  
  .tech-name {
    font-size: 12px !important;
  }
}

.tech-item:hover {
    border-color: #fd7338;
    transform: none;
}

/* Add text highlight on hover */
.tech-item:hover .tech-name {
    color: #fd7338; /* Match border color */
}

/* Tech logo styling - Update for side-by-side layout */
.tech-logo {
    width: 14px;
    height: 14px;
    margin-right: 12px;
    object-fit: contain;
}

/* Keep the tech-name styling - Adjust for horizontal layout */
.tech-name {
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: rgb(106, 106, 106);
    white-space: nowrap;
    transition: color 0.1s ease; /* Smooth color transition */
}

/* Experience cards */
.experience-card {
  display: flex;
  gap: var(--space-lg);
  padding: 16px;
  background-color: var(--color-background);
  border: 1px solid var(--color-light-grey);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  transition: all 0.3s ease;
}

/* Mobile experience card optimization */
@media (max-width: 768px) {
  .experience-card {
    flex-direction: column;
    text-align: left;
    gap: 12px;
    padding: 14px;
  }
  
  .experience-logo {
    width: 48px;
    height: 48px;
    align-self: flex-start;
  }
  
  .experience-date {
    text-align: left;
    margin-top: 8px;
  }
}

@media (max-width: 480px) {
  .experience-card {
    padding: 12px;
    gap: 10px;
  }
  
  .experience-title {
    font-size: 18px;
  }
}

.experience-card:hover {
    border-color: #fd7338;
    transform: none;
}

.experience-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.experience-content {
  flex: 1;
}

.experience-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 1px;
  margin-top: 2px;
}

.experience-company {
  font-size: var(--font-size-base);
  color: var(--color-grey);
  margin-bottom: var(--space-sm);
}

.experience-date {
  font-size: var(--font-size-sm);
  color: var(--color-grey);
  text-align: right;
  margin-top: 24px;
}

/* Form styles */
.form {
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
}

/* Mobile form optimization */
@media (max-width: 768px) {
  .form {
    padding: var(--space-lg);
  }
  
  .form-input,
  .form-textarea {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: var(--space-md) 0;
  }
  
  .form-textarea {
    min-height: 100px;
  }
}

@media (max-width: 480px) {
  .form {
    padding: var(--space-md);
  }
  
  .form-label {
    font-size: 14px;
  }
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md) var(--space-md) 3px 0;
  border: none;
  border-bottom: 1px solid var(--color-border-light);
  background-color: transparent;
  font-size: 20px;
  transition: border-color var(--transition-normal);
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-bottom-color: black;
}

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

/* Testimonial cards */
.testimonial-card {
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.testimonial-content {
  font-size: var(--font-size-xl);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  font-style: normal;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var (--space-md);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var (--radius-full);
}

.testimonial-info h4 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var (--space-xs);
}

.testimonial-info p {
  font-size: var(--font-size-sm);
  color: var(--color-grey);
}

/* Publications */
.publication-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  transition: background-color var(--transition-normal);
}

.publication-item:hover {
  background-color: var(--color-surface);
}

.publication-content {
  flex: 1;
}

.publication-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var (--space-sm);
  color: var(--color-black);
}

.publication-description {
  color: var (--color-grey);
  margin-bottom: var (--space-sm);
}

.publication-date {
  font-size: var (--font-size-sm);
  color: var (--color-grey);
}

/* Contact section with inline layout */
.contact-info {
  display: flex;
  flex-direction: row; /* Change from column to row */
  justify-content: space-between; /* Push elements to opposite sides */
  align-items: center; /* Vertically center items */
  margin-bottom: var (--space-lg);
  width: 100%;
}

/* Mobile contact info optimization */
@media (max-width: 768px) {
  .contact-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .contact-item {
    font-size: 16px;
  }
  
  .copy-button {
    align-self: stretch;
    text-align: center;
    margin: 0;
    padding: 12px 18px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .contact-item {
    font-size: 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .copy-button {
    padding: 14px 18px;
  }
}

/* Contact item positioning */
.contact-item {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: var (--space-md);
}

.contact-label {
  font-weight: var(--font-weight-medium);
  color: var(--color-grey);
  font-weight: 600;
}

.contact-value {
  font-weight: var(--font-weight-semibold);
  color: var(--color-black);
}

/* Copy button */
.copy-button {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 10px 18px; /* Smaller padding */
  font-size: 18px; /* Adjusted font size */
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  white-space: nowrap;
  margin-left: auto; /* Push to the right */
  margin: -0.5rem 0;
}

.copy-button:hover {
  background-color: var(--color-border);
}

/* "OR" divider styling with lines on sides */
.or-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1rem 0;
    color: var(--color-text-muted);
}
  
  .or-divider::before,
  .or-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #e5e5e5;
  }
  
  .or-divider::before {
    margin-right: 1.5rem;
  }
  
  .or-divider::after {
    margin-left: 1.5rem;
  }

/* Status Button with Hover Animation - More pill-shaped */
.status-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 150px;
    padding: 10px 12px; /* Slightly reduced padding */
    border: 1px solid #e2e2e2;
    border-radius: 30px; /* More pill-shaped */
    background: white;
    margin-bottom: 8px; /* Space after button */
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.status-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    position: relative;
}

/* Status dot - Enhanced with pulsing animation */
.status-dot {
    width: 10px; /* Increased from 8px to 10px */
    height: 10px; /* Increased from 8px to 10px */
    border-radius: 50%;
    margin-right: 8px;
    margin-left: -2px;
    flex-shrink: 0;
    position: relative;
    background-color: #a8d129; /* Base green color */
}

/* Inner dot - Lighter green circle */
.status-dot::before {
    content: "";
    position: absolute;
    top: 1.5px; /* Adjusted for new size */
    left: 1.5px; /* Adjusted for new size */
    width: 7px; /* Increased from 4px to 5px */
    height: 7px; /* Increased from 4px to 5px */
    border-radius: 50%;
    background-color: rgb(220, 247, 124); /* Lighter green */
    z-index: 2;
}
/* Pulsing circle - Semi-transparent green */
/* On hover - orange energy */
.status-button:hover .status-dot::after {
    background-color: rgba(255, 105, 40, 0.65); /* Orange energy */
    animation-duration: 1.4s; /* Even faster on hover */
}

/* Status button hover effect - Keep the orange color change on hover */
.status-button:hover .status-dot {
    background-color: #ff6928; /* Change to orange on hover */
}

/* Inner dot color change on hover */
.status-button:hover .status-dot::before {
    background-color: #ffb08a; /* Lighter orange */
}

/* Pulsing circle color change on hover */
.status-button:hover .status-dot::after {
    background-color: rgba(255, 105, 40, 0.65); /* Semi-transparent orange, starting darker */
}

.status-text {
    font-size: 13px; /* Slightly larger */
    font-weight: 500;
    color: #8e8989;
    transition: all 0.3s ease;
    position: absolute;
    left: 16px; /* Aligned with dot + margin */
    white-space: nowrap;
}

.status-text.default-text {
    opacity: 1;
    transform: translateY(0);
}

.status-text.hover-text {
    opacity: 0;
    transform: translateY(10px);
}

/* Hover Effects - Improved animation */
.status-button:hover {
    border-color: #d0d0d0;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Smooth color transition for text */
.status-button:hover .status-text {
    color: #393939; /* Darker text on hover */
}

/* Container spacing in sidebar */
.sidebar-content {
    display: flex;
    flex-direction: column;
    padding: 20px; /* Add consistent padding */
    gap: 0; /* Remove gap to control spacing manually */
}

/* Overall button container spacing */
.sidebar-content > .status-button {
    margin-bottom: 8px; /* Space after status button */
}

.sidebar-content > .download-cv-btn {
    margin-top: 0; /* Remove top margin */
    margin-bottom: 16px; /* Add space before social links */
}


/* Responsive adjustments */
@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
  
  .experience-card {
    flex-direction: column;
    text-align: center;
  }
  
  .experience-date {
    text-align: center;
  }
}

/* Add these overrides to prevent FOUC (Flash of Unstyled Content)
.sidebar .profile-name,
.sidebar .profile-info,
.sidebar .profile-title,
.sidebar .profile-location,
.sidebar .status-button,
.sidebar .download-cv-btn,
.sidebar .social-link,
.sidebar .floating-nav-container,
.sidebar .nav-item,
.sidebar .home-button {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
} */

/* Ensure sidebar is always visible */
.sidebar {
    opacity: 1;
    visibility: visible;
}

/* Social links specific styling */
.social-links {
    opacity: 1;
    align-self: flex-start;
    margin-inline-start: 2px;
    gap: 6px;
    margin-top: 0;
    margin-bottom: 20px;
    justify-content: center;
}

.social-link {
    opacity: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgb(239, 239, 239); /* Transparent border initially */
    transition: all 0.2s ease;
    background-color: white; /* Light background like nav items */
    color: #868181; /* Default icon color */
}

/* Hover effect with border highlight instead of background fill */
.social-link:hover {
    border: 0.5px solid #fd7338; /* Orange border on hover */
    transform: none; /* No movement */
    background-color: white; /* Keep same background */
}

/* Make icon orange on hover - target all possible icon formats */
.social-link:hover svg,
.social-link:hover svg path,
.social-link:hover svg rect,
.social-link:hover svg circle,
.social-link:hover svg g {
    color: #ff6928 !important; /* For icons using currentColor */
}

/* Focus state for accessibility */
.social-link:focus {
    border: 1px solid #ff6928;
    outline: none;
}

/* Navigation visibility */
.nav-scroll {
    opacity: 1;
}

.nav-item {
    opacity: 1;
    display: block;
}

/* Floating Navigation Container */
.floating-nav-container {
    position: fixed;
    bottom: 50px;
    left: 145px;
    width: calc(215px - 49px); /* Match sidebar width minus padding */
    z-index: 100;
    will-change: transform;
    opacity: 1;
    transform: perspective(1200px);
}

/* Main Navigation Bar - Remove conflicting borders */
.floating-nav {
    background-color: rgba(250, 250, 250, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid #efefef;
    border-radius: 9px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column; /* Stack vertically */
    gap: 6px;
    opacity: 1;
    position: relative;
    justify-content: space-between; /* Key change: distribute space */
}

/* Remove the duplicate border from the main nav */
.floating-nav[data-border="true"]::after {
    display: none; /* Remove this to prevent double borders */
}

/* Navigation Items Container */
.nav-items {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* This prevents items from stretching to full width */
    gap: 6px;
    margin-bottom: auto; /* Push everything below to the bottom */
    flex-grow: 0; /* Don't grow to fill space */
    opacity: 1;
}

/* Individual Navigation Items - Simplified border approach */
.nav-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 3px 8px;
    width: auto;
    background-color: #f9f9f9;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    color: #6a6666;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    opacity: 1;
    position: relative;
    min-height: 25px;
    box-sizing: border-box;
}

/* Remove the ::after pseudo-element borders that are causing conflicts */
.nav-item[data-border="true"]::after {
    display: none; /* Remove this to prevent double borders */
}

/* Active Navigation Item - Clean approach */
.nav-item.active {
    background-color: #f9f9f9;
    border: 1px solid #ff6928; /* Direct border, no pseudo-elements */
    color: #ff6928;
}

/* Remove conflicting pseudo-element for active state */
.nav-item.active[data-border="true"]::after {
    display: none;
}

/* Hover States - Clean approach */
.nav-item:hover {
    background-color: #f9f9f9;
    border: 1px solid #d0c5c5; /* Direct border approach */
    color: #b7afaf;
    transform: none;
}

/* Active hover state */
.nav-item.active:hover {
    background-color: #f9f9f9;
    border: 1px solid #8e8989;
    color: #8e8989;
    transform: none;
}

/* Navigation Text */
.nav-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.nav-text p {
    margin: 0;
    padding: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1;
}

/* Home Button - Clean implementation */
.home-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: black;
    border: none; /* No border needed */
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

/* Hover state - keep black background */
.home-button:hover {
    transform: none; /* No movement on hover */
    background-color: black; /* Keep black background */
}

/* SVG styling */
.home-button svg {
    width: 18px; /* Slightly smaller for better fit */
    height: 18px;
    color: white; /* For currentColor */
    opacity: 1;
    position: relative;
    z-index: 2;
}

/* Set the default stroke color to white */
.home-button svg,
.home-button svg path,
.home-button svg rect,
.home-button svg circle,
.home-button svg g,
.home-button svg polyline {
    stroke: white !important;
    fill: none !important; /* Ensure it's just an outline */
    stroke-width: 2px !important; /* Slightly thicker for visibility */
}

/* Change stroke to grey on hover */
.home-button:hover svg,
.home-button:hover svg path,
.home-button:hover svg rect,
.home-button:hover svg circle,
.home-button:hover svg g,
.home-button:hover svg polyline {
    stroke: #a0a0a0 !important; /* Grey on hover */
}

/* Home button container positioning */
.home-button-container {
    position: absolute;
    bottom: 18px;
    right: 10px;
}

/* Responsive adjustments */
@media (min-width: 810px) and (max-width: 1023px) {
    .floating-nav-container {
        left: 40px;
        width: calc(100% - 80px);
        max-width: 600px;
    }
}

@media (max-width: 809px) {
    .floating-nav-container {
        left: 20px;
        right: 20px;
        width: auto;
    }
    
    .nav-items {
        gap: 4px;
    }
    
    .nav-item {
        padding: 4px 8px;
        font-size: 10px;
        min-height: 24px;
    }
}

/* Profile styling - Comprehensive fix */
.profile {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Center everything horizontally */
    width: 100%;
    margin-bottom: 8px;
}

/* Profile Image - Clean solution with absolute sizing */
.profile-image {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;   
  margin-bottom: 16px;    
  box-shadow: rgba(97, 97, 97, 0.505) 0px 8px 36px 0px;
  /* Remove all alignment properties that might conflict */
  margin-left: 0;
  align-self: flex-start;
  position: relative;
  z-index: 1;
}

.profile-name {
    font-size: 46px; /* Slightly smaller to match original */
    font-weight: 600; /* Slightly bolder */
    color: #ff6928; /* Exact orange color */
    margin: 0 0 12px 0; /* Remove top margin, keep bottom */
    letter-spacing: -0.02em;
    line-height: 1;
    align-self: flex-start; /* Center the name */
    text-align: center; /* Center text */
}

/* Container for title and location to control alignment */
.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Center content */
    margin-bottom: 8px; /* Space after info */
}

.profile-title {
    font-size: 14px; /* Match original size */
    color: #393939; /* Darker text */
    margin: 0 0 6px 0; /* Tight spacing */
    line-height: 1.3;
    text-align: flex-start; /* Align text to the left */
}

.profile-location {
    font-size: 12px; /* Match original size */
    color: #8e8989; /* Exact gray color */
    margin: 0;
    line-height: 1.2;
    text-align: flex-start; /* Align text to the left */
}

/* Case Studies section - Refined to match screenshot design */
.case-study-item {
  margin-bottom: 32px;
  background-color: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.case-study-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Content container with horizontal layout */
.case-study-content {
  padding: 32px;
  background: #ffffff;
  display: flex;
  align-items: flex-start;
  gap: 32px;
  min-height: 120px;
  position: relative;
}

/* Header section containing metric and title */
.case-study-header {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  flex: 1;
}

/* Metrics styling on the left with border separator */
.case-metric {
  flex: 0 0 auto;
  padding-right: 32px;
  border-right: 1px solid #e8e8e8;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 120px;
}

.metric-value {
  font-size: 48px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  margin-bottom: 4px;
}

.metric-percent {
  font-size: 28px;
  font-weight: 700;
  margin-left: 1px;
}

.metric-type {
  font-size: 13px;
  color: #666;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
}

/* Title container on the right */
.case-title-container {
  flex: 1;
  padding-left: 0;
}

/* Title styling refined */
.case-title {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.case-description {
  font-size: 15px;
  line-height: 1.5;
  color: #666;
  font-weight: 400;
  margin-bottom: 0;
}

/* Image styling - smaller and positioned in top right */
.case-study-image {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 200px;
  height: 140px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.case-study-item:hover .case-study-image {
  transform: scale(1.02);
}

/* Arrow button in bottom right */
.case-study-arrow {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 3;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.case-study-item:hover .case-study-arrow {
  transform: translateX(2px) translateY(-2px);
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.case-study-arrow svg {
  width: 16px;
  height: 16px;
  color: #333;
  transition: transform 0.3s ease;
}

.case-study-item:hover .case-study-arrow svg {
  transform: translateX(1px);
}

/* Remove view details button */
.view-details-btn {
  display: none;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .case-study-content {
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    min-height: auto;
  }
  
  .case-study-header {
    flex-direction: column;
    gap: 16px;
  }
  
  .case-metric {
    border-right: none;
    border-bottom: 1px solid #e8e8e8;
    padding-right: 0;
    padding-bottom: 16px;
    min-width: auto;
  }
  
  .metric-value {
    font-size: 36px;
  }
  
  .metric-percent {
    font-size: 22px;
  }
  
  .case-title {
    font-size: 20px;
  }
  
  .case-study-image {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 180px;
    margin-top: 16px;
  }

  .case-study-arrow {
    bottom: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
  }
  
  .case-study-arrow svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 480px) {
  .case-study-content {
    padding: 20px 16px;
  }
  
  .metric-value {
    font-size: 32px;
  }
  
  .case-title {
    font-size: 18px;
  }
  
  .case-study-image {
    height: 140px;
  }
}

/* Touch interaction improvements */
@media (hover: none) and (pointer: coarse) {
  .nav-item:hover,
  .social-link:hover,
  .tech-item:hover,
  .tag:hover,
  .experience-card:hover {
    /* Remove hover effects on touch devices */
    transform: none;
    border-color: inherit;
    color: inherit;
  }
  
  /* Add touch-specific active states */
  .nav-item:active,
  .social-link:active,
  .tech-item:active,
  .tag:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}

/* Ensure minimum touch target sizes */
@media (max-width: 768px) {
  .nav-item,
  .social-link,
  .btn,
  .tag,
  .mobile-menu-btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .status-button {
    min-height: 44px;
    padding: 12px;
  }
  
  .download-cv-btn {
    min-height: 44px;
    padding: 12px;
  }

  .mobile-menu-item {
    min-height: 60px;
    padding: 16px;
  }

  .social-link {
    min-width: 0;
    min-height: 0;
    width: 35px !important;
    height: 35px !important;
  }

  .mobile-menu-btn-primary,
  .mobile-menu-btn-secondary {
    min-height: 50px;
    padding: 16px;
  }
}

@media (max-width: 768px) {
  .contact-info,
  .or-divider {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .contact-info,
  .or-divider {
    display: none !important;
  }
}

/* Improve focus states for better accessibility */
@media (max-width: 768px) {
  .nav-item:focus,
  .social-link:focus,
  .btn:focus,
  .form-input:focus,
  .form-textarea:focus,
  .mobile-menu-item:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
  }
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 1199px) {
  .sidebar {
    left: 50px;
  }
  
  .main-content {
    margin-left: calc(var(--sidebar-width) + 50px);
    width: calc(100% - (var(--sidebar-width) + 50px));
  }
}

/* ...rest of existing code remains unchanged... */