/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

p {
  color: rgb(85, 85, 85);
}

/* ANIMATIONS */

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(0, 102, 204, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 102, 204, 0);
  }
}

/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
}

/* MODERN SIDEBAR NAVIGATION - DESKTOP ONLY */

.sidebar-navigation {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 80px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 0;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.sidebar-navigation:hover {
  width: 220px;
  box-shadow: 2px 0 25px rgba(0, 0, 0, 0.15);
}

.sidebar-links {
  list-style: none;
  width: 100%;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.sidebar-links li {
  margin: 0;
  width: 100%;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  color: #333333;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border-radius: 0;
  margin-bottom: 8px;
  overflow: hidden;
}

.sidebar-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: #007bff;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.sidebar-link i {
  font-size: 22px;
  min-width: 22px;
  text-align: center;
  transition: all 0.3s ease;
  z-index: 2;
}

.sidebar-link span {
  margin-left: 20px;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  white-space: nowrap;
  transition: all 0.3s ease;
  font-size: 14px;
  z-index: 2;
}

.sidebar-navigation:hover .sidebar-link span {
  opacity: 1;
  visibility: visible;
}

.sidebar-link:hover {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  color: #000000;
  transform: translateX(8px);
}

.sidebar-link:hover::before {
  transform: scaleY(1);
}

.sidebar-link:hover i {
  transform: scale(1.15);
  color: #007bff;
}

.sidebar-link.active {
  background: linear-gradient(135deg, #000000, #333333);
  color: #ffffff;
}

.sidebar-link.active::before {
  transform: scaleY(1);
  background: #ffffff;
}

.sidebar-link.active i {
  color: #ffffff;
}

.sidebar-link.active span {
  color: #ffffff;
}

.sidebar-link.active:hover {
  background: linear-gradient(135deg, #333333, #555555);
  transform: translateX(5px);
}

/* Adjust main content to accommodate sidebar - ENSURE SCROLLABILITY */
body {
  margin-left: 80px;
  transition: margin-left 0.3s ease;
  overflow-x: hidden;
  overflow-y: auto;
}

html {
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

/* Responsive behavior for sidebar */
@media screen and (max-width: 1200px) {
  .sidebar-navigation:hover {
    width: 180px;
  }
}

/* Hide sidebar on tablets and mobile */
@media screen and (max-width: 768px) {
  .sidebar-navigation {
    display: none !important;
  }
  
  body {
    margin-left: 0 !important;
  }
}

/* DESKTOP NAV - HIDDEN (Using Sidebar Instead) */

#desktop-nav {
  display: none;
}

nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 20vh;
  padding-top: 3rem;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

a {
  color: black;
  text-decoration: none;
  text-decoration-color: white;
}

a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(181, 181, 181);
}

.logo {
  display: flex;
  align-items: center;
  font-size: 2rem; /* Adjust as needed */
  margin-top: 60px; /* Move it down more */
}

.logo-img {
  height: 250px; /* Adjust as needed */
  width: auto;
  margin-right: 10px; /* Adjust as needed */
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: black;
  transition: all 0.3 ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3 ease-in-out;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: black;
  text-decoration: none;
  transition: all 0.3 ease-in-out;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}

/* Additional Click Animations for Special Elements */

/* Project Card Click Animation */
.project-card,
.future-project-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-card:active,
.future-project-card:active {
  transform: scale(0.98) !important;
}

/* Navigation Link Click Animations */
nav a {
  transition: all 0.2s ease;
}

nav a:active {
  transform: scale(0.95);
}

/* Social Icon Click Animations */
.footer-social a {
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-social a:active {
  transform: rotate(15deg) scale(1.1);
}

/* Quick Button Special Effects */
.quick-btn {
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.quick-btn:active {
  transform: scale(0.95);
}

.quick-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* CV Bot Toggle Button Animation */
#cv-bot-toggle {
  transition: all 0.3s ease;
}

#cv-bot-toggle:active {
  transform: scale(0.95) rotate(5deg);
}

/* Modal Close Button Animation */
.close,
.project-details-close,
.contact-close {
  transition: all 0.2s ease;
}

/* Future education modal */
.future-education-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 10000;
}

.future-education-content {
  width: min(640px, 90vw);
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.25);
  animation: modal-pop 0.3s ease;
}

.future-education-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.future-education-header h2 {
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.future-education-close {
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.35rem;
}

.future-education-intro {
  color: #555555;
  margin-bottom: 1.25rem;
}

@keyframes modal-pop {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Career roadmap timeline */
.career-roadmap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-left: 1.75rem;
}

.career-roadmap::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, #000000, #00a8ff);
  opacity: 0.3;
}

.roadmap-node {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.roadmap-badge {
  min-width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.roadmap-content {
  flex: 1;
  background: #f8f9fb;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.roadmap-content h3 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
  color: #111111;
}

.roadmap-content p {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: #4a4a4a;
}

.roadmap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.roadmap-tags span {
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  color: #222222;
  font-weight: 500;
}

/* Future projects roadmap styling */
.roadmap-stage-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-left: 4px solid #000000;
  border-radius: 8px;
  margin: 2rem 0 1.5rem 0;
}

.stage-badge {
  background: #000000;
  color: #ffffff;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.future-projects-intro {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #666666;
  font-size: 1rem;
}

.close:active,
.project-details-close:active,
.contact-close:active {
  transform: scale(0.9) rotate(90deg);
}

/* Logo Click Animation */
.logo-img {
  transition: all 0.3s ease;
  cursor: pointer;
}

.logo-img:active {
  transform: scale(0.95) rotate(-5deg);
}

/* Back to Top Button Special Animation */
.back-to-top-btn:active {
  transform: translateY(-5px) scale(0.95);
}

/* Language and Hobby Button Animations */
.languages-buttons .btn,
.hobbies-buttons .btn {
  position: relative;
  overflow: hidden;
}

.languages-buttons .btn:active,
.hobbies-buttons .btn:active {
  transform: translateY(2px);
}

/* Gallery Details Button Enhanced Animation */
.gallery-details-btn {
  transition: all 0.3s ease;
}

.gallery-details-btn:active {
  transform: translateY(2px) scale(0.98);
}

.gallery-details-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* SECTIONS */

section {
  padding-top: 4vh;
  min-height: fit-content; /* Use min-height for dynamic content */
  margin: 0 10rem;
  box-sizing: border-box;
}

.section-container {
  display: flex;
}

/* Typing Animation Styles */
.typing-container {
  overflow: hidden;
}

.typing-text {
  display: inline-block;
  border-right: 2px solid #007bff;
  white-space: nowrap;
  overflow: hidden;
  animation: typing 3s steps(40, end), blink-cursor 0.8s infinite;
}

.typing-text.hello {
  animation: typing-hello 1s steps(20, end), blink-cursor 0.8s infinite;
  animation-delay: 0s;
}

.typing-text.name {
  animation: typing-name 1.2s steps(30, end), blink-cursor 0.8s infinite;
  animation-delay: 1.2s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.typing-text.title {
  animation: typing-title 2s steps(50, end), blink-cursor 0.8s infinite;
  animation-delay: 2.5s;
  opacity: 0;
  animation-fill-mode: forwards;
}

@keyframes typing-hello {
  0% {
    width: 0;
    opacity: 1;
  }
  100% {
    width: 100%;
    opacity: 1;
  }
}

@keyframes typing-name {
  0% {
    width: 0;
    opacity: 1;
  }
  100% {
    width: 100%;
    opacity: 1;
  }
}

@keyframes typing-title {
  0% {
    width: 0;
    opacity: 1;
  }
  100% {
    width: 100%;
    opacity: 1;
  }
}

@keyframes blink-cursor {
  0%, 50% {
    border-color: #007bff;
  }
  51%, 100% {
    border-color: transparent;
  }
}

/* Remove cursor after animation completes */
.typing-complete {
  border-right: none !important;
}

/* Profile section text sizing */
.section__text__p1 {
  font-size: 3rem; /* Increase from 2.5rem to make it more prominent */
  font-weight: 600;
  margin-bottom: 1rem;
}

.title {
  font-size: 2.5rem; /* Increase from 2rem to make name more prominent */
  margin-bottom: 1rem;
}

.section__text__p2 {
  font-size: 1.6rem; /* Increase from 1.4rem to make subtitle more prominent */
  margin-bottom: 2rem;
}

/* Unified Profile Text Styling */
.profile-text {
  font-size: 2rem; /* Consistent size for all profile text elements */
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}

/* Waving hand animation */
.waving-hand {
  display: inline-block;
  margin-left: 0.5rem;
  animation: wave 2s ease-in-out infinite;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0%, 100% {
    transform: rotate(0deg);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: rotate(14deg);
  }
  20%, 40%, 60%, 80% {
    transform: rotate(-8deg);
  }
}

/* Logo cursor pointer */
.logo-img {
  cursor: pointer;
  transition: transform 0.2s ease;
}

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

/* Project Gallery Header - Static Version */
.project-gallery-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
  position: relative;
}

.gallery-title-container {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.gallery-title {
  font-size: 2rem;
  font-weight: 700;
  color: #000000;
  margin: 0;
  line-height: 1.2;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-icon {
  font-size: 1.5rem;
  color: #000000;
  transition: all 0.3s ease;
  animation: iconPulse 2s infinite;
}

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

.gallery-title:hover .gallery-icon {
  color: #333333;
  transform: rotate(15deg) scale(1.2);
}

.gallery-text {
  display: inline-block;
  margin: 0 0.5rem;
}

.gallery-underline {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, #000000, #333333, #000000);
  border-radius: 2px;
}

.gallery-subtitle {
  font-size: 1.2rem;
  color: #555;
  font-style: italic;
  opacity: 1;
  margin: 1rem 0 0 0;
}

/* Mobile Responsive Gallery Header */
@media screen and (max-width: 768px) {
  .gallery-title {
    font-size: 1.5rem;
    letter-spacing: 1px;
  }
  
  .gallery-subtitle {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  .gallery-underline {
    width: 80px;
  }
  
  .project-gallery-header {
    margin-bottom: 3rem;
    padding: 1.5rem 0;
  }
}

@media screen and (max-width: 480px) {
  .gallery-title {
    font-size: 1.2rem;
    letter-spacing: 0.5px;
  }
  
  .gallery-text {
    margin: 0 0.25rem;
  }
  
  .gallery-subtitle {
    font-size: 0.9rem;
  }
  
  .gallery-underline {
    width: 60px;
    height: 3px;
  }
}

/* Current Projects Title */
.current-projects-title {
  text-align: center;
  margin: 2rem 0 2rem 0;
  font-size: 2rem;
  color: #2c3e50;
  position: relative;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.current-projects-title i {
  color: #000000;
  font-size: 1.5rem;
}

.current-projects-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #000000, #333333);
  border-radius: 2px;
}

/* Project Gallery Static Grid */
.projects-container {
  max-width: 1400px;
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-items: center;
  padding: 2rem 0;
  margin-top: 2rem;
}

.project-card {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.1),
    0 1px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  cursor: pointer;
  position: relative;
  width: 100%;
  max-width: 350px;
  border: 2px solid transparent;
  background-clip: padding-box;
  padding: 2rem;
  height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(33, 37, 41, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  border-radius: 18px;
}

.project-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.3),
    0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 0, 0, 0.4);
}

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

.project-card .project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.project-card:hover .project-img {
  transform: scale(1.1) rotate(2deg);
  filter: brightness(0.9) contrast(1.2);
}

.project-info {
  position: relative;
  z-index: 2;
}

.project-info h3 {
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c3e50;
  transition: all 0.3s ease;
}

.project-card:hover .project-info h3 {
  color: #000000;
  transform: translateY(-5px);
  font-weight: 700;
}

.project-summary {
  margin-bottom: 1.2rem;
  line-height: 1.6;
  color: #6c757d;
  transition: all 0.3s ease;
}

.project-card:hover .project-summary {
  color: #212529;
  transform: translateY(-3px);
}

.project-card:hover .gallery-details-btn {
  transform: translateY(-8px) scale(1.05);
  background: linear-gradient(135deg, #000000, #333333);
  color: white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.project-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

.project-summary {
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.gallery-details-btn,
.btn-color-2 {
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  color: white;
  border: 2px solid #1a1a1a;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-details-btn:hover,
.btn-color-2:hover {
  background: linear-gradient(135deg, #2d2d2d, #404040);
  border-color: #2d2d2d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile Responsive for Project Gallery */
@media screen and (max-width: 768px) {
  .gallery-title {
    font-size: 2.5rem;
    letter-spacing: 1px;
  }
  
  .gallery-subtitle {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  .gallery-underline {
    width: 80px;
  }
  
  .project-gallery-header {
    margin-bottom: 3rem;
    padding: 1.5rem 0;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }
  
  .project-card {
    max-width: 100%;
    margin: 0 1rem;
    height: 450px;
    padding: 1.5rem;
  }
  
  .project-card .project-img {
    height: 150px;
  }
  
  .project-info h3 {
    font-size: 1.3rem;
  }
  
  .project-summary {
    font-size: 0.9rem;
  }
  
  .gallery-details-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .future-projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }
  
  .future-project-card {
    max-width: 100%;
    margin: 0 1rem;
  }
  
  .future-project-card img {
    height: 180px;
  }
}

@media screen and (max-width: 480px) {
  .gallery-title {
    font-size: 2rem;
    letter-spacing: 0.5px;
  }
  
  .gallery-text {
    margin: 0 0.25rem;
  }
  
  .gallery-subtitle {
    font-size: 0.9rem;
  }
  
  .gallery-underline {
    width: 60px;
    height: 3px;
  }
  
  .projects-grid {
    gap: 1rem;
    padding: 0.5rem;
  }
  
  .project-card {
    height: 400px;
    padding: 1rem;
    margin: 0 0.5rem;
  }
  
  .project-card .project-img {
    height: 120px;
  }
  
  .project-info h3 {
    font-size: 1.2rem;
  }
  
  .project-summary {
    font-size: 0.85rem;
  }
  
  .gallery-details-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  
  .future-projects-grid {
    gap: 1rem;
  }
  
  .future-project-card {
    margin: 0 0.5rem;
  }
  
  .future-project-card img {
    height: 150px;
  }
  
  .future-project-card h3 {
    font-size: 1.1rem;
  }
}

/* Profile section enhancements */
#profile .btn-container,
#profile #socials-container {
  opacity: 0;
  display: none;
}

/* CV Link Styling */
.cv-link {
  color: #2c3e50 !important;
  font-style: italic;
  text-decoration: underline;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.cv-link:hover {
  color: #000000 !important;
  text-decoration: none;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 2px 6px;
  border-radius: 4px;
  transform: translateX(2px);
}

/* Projects section catalogue styling */
#projects {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.projects-container {
  max-width: 1400px;
  margin: 0 auto;
}

.sub-title {
  text-align: center;
  margin: 3rem 0 2rem 0;
  font-size: 2rem;
  color: #2c3e50;
  position: relative;
}

.sub-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #000000, #333333);
  border-radius: 2px;
}

#profile {
  display: flex;
  justify-content: center;
  gap: 2rem; /* Reduce gap from 5rem to 2rem */
  flex-wrap: wrap; /* Allow wrapping of items to new lines */
  height: auto;
  padding-top: 8vh; /* Increase padding to move section down on desktop */
  margin-top: 3rem; /* Move it down to provide space from top */
}

/* Desktop-specific profile positioning */
@media screen and (min-width: 769px) {
  #profile {
    padding-top: 8vh;
    margin-top: 3rem;
    min-height: 80vh; /* Ensure adequate height on desktop */
  }
}

.section__pic-container {
  display: flex;
  height: 220px; /* Reduce from 250px to make text more prominent */
  width: 220px; /* Reduce from 250px to make text more prominent */
  margin: auto 0;
  margin-top: 10px; 
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  cursor: pointer;
  border: 4px solid transparent;
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
}

.section__pic-container:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  border-color: rgba(0, 0, 0, 0.2);
}

.section__pic-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
  border-radius: 50%;
}

.section__pic-container:hover img {
  transform: scale(1.1);
  filter: brightness(1.1) contrast(1.1);
}

.profile-image-wrapper {
  margin-top: 20px; /* Reduce margin to bring image closer to navigation */
}


.section__text {
  align-self: center;
  text-align: center;
  margin-top: 1rem; /* Add some margin for better spacing */
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
  font-size: 2rem; /* Increase font size */
  margin-bottom: 0.25rem;

}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.title {
  font-size: 3rem;
  text-align: center;
  margin-top: 0; /* Remove any top margin */
  margin-bottom: rem;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

/* ICONS */

.icon {
  display: flex;
  font-size: 2rem;
  color: black;
  transition: background-color 0.3s ease, color 0.3s ease; /* Add transition for hover effect */
  cursor: pointer;
}

.icon:hover {
  color: white; /* Change text color on hover */
  background-color: black; /* Change background color on hover */
  border-radius: 50%; /* Optional: Add border radius for rounded corners */
  padding: 5px; /* Optional: Add padding for better visual effect */
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem; /* Increase gap between buttons */
  margin-top: 1.5rem; /* Add some margin for better spacing */
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1.2rem 1.5rem; /* Increase padding for larger buttons */
  width: 9rem; /* Increase width */
  border-radius: 2rem;
  cursor: pointer;
  border: none;
  font-size: 1rem; /* Increase font size */
  text-decoration: none;
  display: inline-block;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Click Animation Keyframes */
@keyframes btnClickPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes btnClickRipple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes btnClickGlow {
  0% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4), 0 4px 15px rgba(0, 0, 0, 0.2);
  }
  100% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
}

/* Click Animation Classes */
.btn-clicked {
  animation: btnClickPulse 0.3s ease, btnClickGlow 0.6s ease;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
  z-index: 1;
}

.btn-ripple::before {
  animation: btnClickRipple 0.6s ease;
}

.btn > * {
  position: relative;
  z-index: 2;
}

.btn-color-1 {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  color: #000000;
  border: 2px solid #000000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

.btn-color-1:hover {
  background: linear-gradient(135deg, #000000, #333333);
  color: #ffffff;
  border-color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-color-2 {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  color: #000000;
  border: 2px solid #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

.btn-color-2:hover {
  background: linear-gradient(135deg, #333333, #555555);
  color: #ffffff;
  border-color: #333333;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Enhanced GitHub Button Styling - White Style to Match CV Button */
.btn.btn-github,
.project-description .btn.btn-color-2 {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  color: #000000;
  border: 2px solid #333333;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
  margin-right: 0.75rem;
}

.btn.btn-github:before,
.project-description .btn.btn-color-2:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
  transition: left 0.6s ease;
}

.btn.btn-github:hover,
.project-description .btn.btn-color-2:hover {
  background: linear-gradient(135deg, #333333, #555555);
  color: #ffffff;
  border-color: #333333;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn.btn-github:hover:before,
.project-description .btn.btn-color-2:hover:before {
  left: 100%;
}

.btn.btn-github:active,
.project-description .btn.btn-color-2:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn.btn-github i,
.project-description .btn.btn-color-2 i {
  margin-right: 0.5rem;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.btn.btn-github:hover i,
.project-description .btn.btn-color-2:hover i {
  transform: scale(1.1) rotate(5deg);
}

/* Live Demo Button Enhanced Styling */
.btn.btn-color-1 {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: #ffffff;
  border: 2px solid #28a745;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
}

.btn.btn-color-1:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn.btn-color-1:hover {
  background: linear-gradient(135deg, #218838, #1e7e34);
  border-color: #1e7e34;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.btn.btn-color-1:hover:before {
  left: 100%;
}

.btn.btn-color-1:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn.btn-color-1 i {
  margin-right: 0.5rem;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.btn.btn-color-1:hover i {
  transform: scale(1.2) rotate(-5deg);
}

/* Button Container Styling for Project Descriptions */
.project-description > div[style*="margin-top"] {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem !important;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Mobile Responsive for Enhanced Buttons */
@media screen and (max-width: 768px) {
  .btn.btn-github,
  .project-description .btn.btn-color-2,
  .btn.btn-color-1 {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 10px;
    margin-top: 0.4rem;
    margin-right: 0.5rem;
  }
  
  /* Ensure GitHub buttons stay white on mobile */
  .btn.btn-github {
    background: linear-gradient(135deg, #ffffff, #f8f9fa) !important;
    color: #000000 !important;
    border: 2px solid #333333 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
  }
  
  .btn.btn-github:hover {
    background: linear-gradient(135deg, #333333, #555555) !important;
    color: #ffffff !important;
    border-color: #333333 !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
  }
  
  .project-description > div[style*="margin-top"] {
    gap: 0.5rem;
    margin-top: 1rem !important;
  }
  
  .btn.btn-github:hover,
  .project-description .btn.btn-color-2:hover,
  .btn.btn-color-1:hover {
    transform: translateY(-2px) scale(1.01);
  }
}

@media screen and (max-width: 480px) {
  .btn.btn-github,
  .project-description .btn.btn-color-2,
  .btn.btn-color-1 {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    width: 100%;
    justify-content: center;
    margin-right: 0;
  }
  
  .project-description > div[style*="margin-top"] {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.btn-container {
  gap: 1rem;
}

/* Modal styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
}

.modal-content {
  background-color: #ffffff;
  margin: 1% auto; /* Further reduced to move modal closer to button */
  padding: 0;
  border: none;
  border-radius: 15px;
  width: 95%; /* Increased from 90% */
  max-width: 1200px; /* Increased from 800px */
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  top: 20px; /* Reduced from 120px to move modal much closer to button */
}

/* Video Modal Specific Styling */
.video-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2.5rem;
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  color: white;
  border-radius: 15px 15px 0 0;
  border-bottom: 3px solid #00ff00;
}

.video-modal-header h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.video-modal-header h3 i {
  color: #00ff00;
  margin-right: 0.75rem;
  font-size: 1.3em;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

#demoVideo {
  width: 100%;
  height: 600px; /* Set a specific height for larger display */
  border-radius: 0 0 15px 15px;
  display: block;
  object-fit: contain; /* Maintain aspect ratio */
  background-color: #000000;
  outline: none; /* Remove default browser outline */
}

/* Enhanced Video Controls Styling */
#demoVideo::-webkit-media-controls-panel {
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 8px;
  margin: 0 10px 10px 10px;
}

#demoVideo::-webkit-media-controls-play-button,
#demoVideo::-webkit-media-controls-pause-button {
  background-color: #00ff00;
  border-radius: 50%;
  margin: 0 5px;
}

#demoVideo::-webkit-media-controls-timeline {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  margin: 0 10px;
}

#demoVideo::-webkit-media-controls-time-remaining-display,
#demoVideo::-webkit-media-controls-current-time-display {
  color: #ffffff;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

#demoVideo::-webkit-media-controls-volume-slider {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

.close {
  color: #ffffff;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid transparent;
}

.close:hover,
.close:focus {
  color: #ff4444;
  background-color: rgba(255, 68, 68, 0.15);
  border-color: #ff4444;
  text-decoration: none;
  transform: scale(1.15) rotate(90deg);
}


/* ABOUT SECTION */

#about {
  position: relative;
  margin-top: 80px; /* Increase margin to account for raised profile section */
  z-index: 1;
}

.about-containers {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 1rem; /* Reduce gap between heading and content */
}
.about-details-container {
  justify-content: center;
  flex-direction: column;
}

.about-containers,
.about-details-container {
  display: flex;
  margin-top: 20px;
}

.about-pic {
  border-radius: 2rem;
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: white;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  text-align: center;
  z-index: 2; 
 
}
.details-container:hover {
  transform: translateY(-10px); /* Slightly move up on hover */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Add shadow on hover */
}

/* Soft Skills in About Section */
.details-container .soft-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.details-container .soft-skill-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.details-container .soft-skill-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

.details-container .soft-skill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #000000, #333333);
  color: white;
  border-radius: 50%;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.details-container .soft-skill-content {
  flex: 1;
}

.details-container .soft-skill-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 0.3rem 0;
}

.details-container .soft-skill-content p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

.hobby-card {
  margin-top: 2rem; /* Move it slightly down */
}
.section-container {
  gap: 4rem;
  height: 80%;
}

.section__pic-container {
  height: 400px;
  width: 400px;
  margin: auto 0;
}

/* EXPERIENCE SECTION */

#experience {
  position: relative;
}

.experience-sub-title {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.experience-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: space-around;
}

article {
  display: flex;
  width: 10rem;
  justify-content: space-around;
  gap: 0.5rem;
}

article .icon {
  cursor: default;
}

.text-container {
  padding: 0; /* Remove padding since about-me-highlight handles it */
  background: transparent; /* Make transparent */
  border: none; /* Remove border */
  border-radius: 0; /* Remove border radius */
  text-align: center;
  margin-top: 2rem;
  box-shadow: none; /* Remove shadow */
  transition: none; /* Remove transition */
}

/* Enhanced About Me Section Styling */
.about-me-highlight {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 2px solid #e9ecef;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.1),
    0 1px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.about-me-highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
  transition: left 0.5s ease;
}

.about-me-highlight:hover::before {
  left: 100%;
}

.about-me-highlight:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 5px 15px rgba(0, 0, 0, 0.1);
  border-color: #000000;
}

.about-me-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.about-me-header h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.about-me-content {
  position: relative;
  z-index: 2;
}

.about-me-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #34495e;
  margin-bottom: 1.5rem;
  text-align: justify;
  position: relative;
  padding-left: 1rem;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
}

.about-me-intro {
  border-left-color: #000000 !important;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.05), transparent);
  padding: 1rem 1rem 1rem 1.5rem;
  border-radius: 0 10px 10px 0;
}

.about-me-mission {
  border-left-color: #28a745 !important;
  background: linear-gradient(90deg, rgba(40, 167, 69, 0.05), transparent);
  padding: 1rem 1rem 1rem 1.5rem;
  border-radius: 0 10px 10px 0;
}

.about-me-goals {
  border-left-color: #dc3545 !important;
  background: linear-gradient(90deg, rgba(220, 53, 69, 0.05), transparent);
  padding: 1rem 1rem 1rem 1.5rem;
  border-radius: 0 10px 10px 0;
  margin-bottom: 1rem;
}

.about-me-content p strong {
  color: #000000;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.about-me-quote {
  text-align: right;
  position: relative;
  z-index: 2;
}

/* Responsive Design for About Me Section */
@media screen and (max-width: 768px) {
  .about-me-highlight {
    padding: 1.5rem;
    margin: 0 1rem;
  }
  
  .about-me-header h3 {
    font-size: 1.5rem;
  }
  
  .about-me-content p {
    font-size: 1rem;
    text-align: left;
    padding-left: 0.8rem;
  }
}

#skills {
  margin-top: 135px; /* Move the section down */
}

/* New Skills Grid Layout */
.skills-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 4rem auto;
  padding: 2rem;
}

.skills-category {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.skills-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: #000000;
}

.skills-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}

.skills-category-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(135deg, #000000, #333);
  border-radius: 2px;
}

.skills-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: #ffffff;
  border-radius: 12px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
  cursor: pointer;
}

.skill-item:hover {
  transform: translateX(10px);
  border-color: #000000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill-icon {
  font-size: 2rem;
  margin-right: 1rem;
  width: 2.5rem;
  color: #333;
  flex-shrink: 0;
}

/* Icon Colors for Different Technologies */
.fa-react { color: #61DAFB !important; }
.fa-vuejs { color: #4FC08D !important; }
.fa-css3-alt { color: #1572B6 !important; }
.fa-node-js { color: #339933 !important; }
.fa-python { color: #3776AB !important; }
.fa-server { color: #092E20 !important; }
.fa-git-alt { color: #F05032 !important; }
.fa-docker { color: #2496ED !important; }
.fa-aws { color: #FF9900 !important; }
.fa-html5 { color: #E34F26 !important; }
.fa-js { color: #F7DF1E !important; }
.fa-java { color: #ED8B00 !important; }
.fa-php { color: #777BB4 !important; }
.fa-database { color: #336791 !important; }

.skill-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
}

/* Additional Skills Section */
.additional-skills-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.technical-skills-section,
.soft-skills-section {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.technical-skills-section:hover,
.soft-skills-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: #000000;
}

.additional-skills-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}

.additional-skills-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(135deg, #000000, #333);
  border-radius: 2px;
}

.additional-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.additional-skill-item {
  display: flex;
  align-items: center;
  padding: 0.8rem;
  background: #ffffff;
  border-radius: 10px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
  cursor: pointer;
}

.additional-skill-item:hover {
  transform: translateX(5px);
  border-color: #000000;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.additional-skill-item .skill-icon {
  font-size: 1.5rem;
  margin-right: 0.8rem;
  width: 2rem;
  color: #333;
}

.additional-skill-item span {
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
}

/* Responsive Design for Skills Section */
@media screen and (max-width: 1200px) {
  .skills-grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .skills-category:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }
}

@media screen and (max-width: 768px) {
  .skills-grid-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }
  
  .skills-category:nth-child(3) {
    max-width: 100%;
  }
  
  .additional-skills-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem;
  }
  
  .additional-skills-grid {
    grid-template-columns: 1fr;
  }
}

/* PROJECTS SECTION */

#projects {
  position: relative;
}

.color-container {
  border-color: rgb(163, 163, 163);
  background: rgb(250, 250, 250);
}

.project-img {
  border-radius: 2rem;
  width: 90%;
  height: 90%;
}

.project-title {
  margin: 1rem;
  color: black;
}

.project-btn {
  color: black;
  border-color: rgb(163, 163, 163);
}
.experience-sub-title-project-title{
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.75rem;
 margin-top: 115px;
}

.student-management-title {
  /* Add your custom styles here */
  font-size: 1.75rem; /* Example: Change the font size */
  color: #333; /* Example: Change the text color */
  margin-bottom: 1rem; /* Example: Add margin at the bottom */
  text-align: center; /* Example: Center align the text */
  margin-top: 55px;
}
/* Future Projects Section */
.future-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-items: center;
  padding: 2rem 0;
}

.future-project-card {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.1),
    0 1px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  cursor: pointer;
  position: relative;
  width: 100%;
  max-width: 350px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.future-project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(33, 37, 41, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  border-radius: 18px;
}

.future-project-card:hover::before {
  opacity: 1;
}

.future-project-card img, .future-project-card i {
  position: relative;
  z-index: 2;
}

.future-project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.future-project-card i {
  color: #000000;
  margin: 2rem 0 1rem 0;
  transition: transform 0.4s ease, color 0.3s ease;
}

.future-project-card h3 {
  margin: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.project-description {
  padding: 1.5rem;
  display: none;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.future-project-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.3);
}

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

.future-project-card:hover i {
  transform: scale(1.1) rotate(5deg);
  color: #333333;
}

.future-project-card:hover h3 {
  color: #000000;
}

/* Enhanced styles for expanded state */
.future-project-card.expanded {
  transform: translateY(-10px) scale(1.02);
  border-color: #000000;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.2),
    0 10px 20px rgba(0, 0, 0, 0.1);
}

.future-project-card.expanded::before {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(33, 37, 41, 0.05));
  opacity: 1;
}

.future-project-card.expanded i {
  color: #000000;
  transform: scale(1.1);
}

.future-project-card.expanded h3 {
  color: #000000;
}

/* Improved project description styles */
.project-description {
  padding: 1.5rem;
  display: none;
  position: relative;
  z-index: 2;
  background: linear-gradient(145deg, #f8f9fa, #ffffff);
  border-top: 2px solid rgba(40, 167, 69, 0.2);
  text-align: left;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.project-description p {
  margin-bottom: 0.8rem;
  line-height: 1.6;
  color: #495057;
}

.project-description ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.project-description li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
  color: #6c757d;
}

.project-description strong {
  color: #2c3e50;
}

/* Click indicator enhancement */
.future-project-card::after {
  content: '▼';
  position: absolute;
  top: 15px;
  right: 15px;
  width: 25px;
  height: 25px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #000000;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 3;
}

.future-project-card:hover::after {
  opacity: 0.7;
}

.future-project-card.expanded::after {
  content: '▲';
  background: rgba(0, 0, 0, 0.1);
  color: #000000;
  opacity: 1;
  transform: rotate(180deg);
}

.project-description ul {
  list-style-type: none;
  padding: 0;
  text-align: left;
}

.project-description ul li {
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #495057;
}

.project-description ul li::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: #000000;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.project-description ul li:hover {
  color: #000000;
  transform: translateX(5px);
  padding-left: 2rem;
}

.project-description ul li:hover::before {
  transform: translateX(5px);
}

/* Catalogue-style responsive design */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }
  
  .project-card {
    max-width: 100%;
    margin: 0 1rem;
  }
  
  .project-card img {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .projects-grid {
    gap: 1rem;
  }
  
  .project-card {
    margin: 0 0.5rem;
  }
  
  .project-card img {
    height: 150px;
  }
  
  .project-card h3 {
    font-size: 1.1rem;
  }
}

.title {
  margin-bottom: 1rem; /* Adjust this value to reduce the gap */
}

.experience-details-container {
  margin-top: 1rem; /* Adjust this value to reduce the gap */
}

.details-container {
  margin-top: 1rem; /* Adjust this value to reduce the gap */
}

.note {
  text-align: center;
  font-size: 1rem;
  color: #555;
  margin-top: 1rem;
}

/* Projects CV Note Section */
.projects-cv-note {
  margin: 3rem auto 2rem;
  max-width: 600px;
  padding: 0 1rem;
}

.cv-note-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #e9ecef;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cv-note-content:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
  border-color: #333333;
}

.cv-note-icon {
  margin-bottom: 1rem;
}

.cv-note-icon i {
  font-size: 3rem;
  color: #333333;
  opacity: 0.8;
}

.cv-note-text h4 {
  color: #000000;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cv-note-text p {
  color: #444444;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.cv-note-btn {
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
  color: white;
  border: 2px solid #000000;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.cv-note-btn:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  color: #000000;
  border-color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cv-note-btn i {
  font-size: 0.9rem;
}

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  background: (250, 250, 250);
  margin: 2rem auto;
  padding: 0.5rem;
  width: 100%;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
}

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

/* FOOTER SECTION */

footer {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: white;
  padding: 60px 0 20px 0;
  margin-top: 80px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-section h3 {
  color: white;
  font-size: 20px;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.footer-section p {
  color: #d1d5db;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
}

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

.footer-social a {
  color: #d1d5db;
  font-size: 24px;
  transition: all 0.3s;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
  display: block;
  padding: 5px 0;
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

.footer-contact-btn,
.footer-cv-btn {
  margin-bottom: 10px !important;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #ffffff, #f8f9fa) !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
  padding: 0.75rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer-contact-btn:hover,
.footer-cv-btn:hover {
  background: linear-gradient(135deg, #000000, #333333) !important;
  color: #ffffff !important;
  border-color: #000000 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.copyright-section {
  width: 100%;
  text-align: center;
}

.back-to-top-section {
  width: 100%;
  display: flex;
  justify-content: center;
}

.footer-bottom p {
  color: #9ca3af;
  font-size: 12px;
  margin: 0;
}

.back-to-top-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  background: linear-gradient(135deg, #ffffff, #f8f9fa) !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top-btn:hover {
  background: linear-gradient(135deg, #000000, #333333) !important;
  color: #ffffff !important;
  border-color: #000000 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile footer responsive */
@media screen and (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
}


.article-container {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* Adjust gap between items */
}

.language-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: box-shadow 0.3s, transform 0.3s;
  opacity: 0;
  transform: translateY(20px);
}

.language-item:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

.language-item .icon {
  flex-shrink: 0;
  width: 3rem; /* Ensure consistent width for icons */
  text-align: center; /* Center align the icons */
}

.text-left {
  text-align: left;
}

.good-communicator {
  width: 70%; /* Adjust width as needed */
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.language-item.visible {
  animation: fadeInUp 0.5s ease-out forwards;
}

footer .btn {
  display: block;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  border: 2px solid #1a1a1a;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

footer .btn:hover {
  background: linear-gradient(135deg, #2d2d2d, #404040);
  border-color: #2d2d2d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-more-info {
  display: inline-block;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  border: 2px solid #1a1a1a;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-more-info:hover {
  background: linear-gradient(135deg, #2d2d2d, #404040);
  border-color: #2d2d2d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-more-info:active {
  background: linear-gradient(135deg, #404040, #555555);
  transform: scale(0.98);
}
.centered-title {
  text-align: center; /* Center the title text */
  margin-top: -0.5rem; /* Move the title up */
  margin-bottom: 0.25rem; /* Adjust this value to reduce the gap */
  font-size: 2rem; /* Make it smaller to match other headings */
  font-weight: 700;
  letter-spacing: 2px;
}

.get-to-know-more {
  text-align: center;
  font-size: 2rem; /* Increase font size */
  margin-top: -0.5rem; /* Move the text up */
  margin-bottom: 0.25rem; /* Adjust this value to reduce the gap */
}
/* Hobbies */
.hobbies-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hobbies-buttons .btn {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 2px solid #333333;
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  color: #000000;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

.hobbies-buttons .btn:hover {
  background: linear-gradient(135deg, #000000, #333333);
  color: #ffffff;
  border-color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* languages */
.languages-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.languages-buttons .btn {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 2px solid #333333;
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  color: #000000;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

.languages-buttons .btn:hover {
  background: linear-gradient(135deg, #000000, #333333);
  color: #ffffff;
  border-color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* skills buttons*/
.language-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: box-shadow 0.3s, transform 0.3s;
}

.language-item:hover {
  background-color: transparent;
  transform: scale(1.05);
}

/* CV BOT ASSISTANT STYLES */
#cv-bot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  font-family: "Poppins", sans-serif;
}

/* Scoped Bootstrap-like toast for CV update notice */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2000;
  padding: 0;
}

#cvUpdateToast {
  min-width: 260px;
  max-width: 340px;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #b91c1c 0%, #ea580c 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: 0 0.75rem 1.5rem rgba(185, 28, 28, 0.45);
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#cvUpdateToast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: toastPulse 1.6s ease-in-out 1;
}

#cvUpdateToast .d-flex {
  display: flex;
  align-items: center;
}

#cvUpdateToast .toast-body {
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  letter-spacing: 0.01em;
}

#cvUpdateToast .toast-body i {
  color: #fff7d6;
  font-size: 1.05rem;
}

#cvUpdateToast .btn-close {
  margin-right: 0.5rem;
  margin-left: 0.25rem;
  width: 1rem;
  height: 1rem;
  padding: 0.25rem;
  border: 0;
  background: transparent;
  color: #fff;
  opacity: 0.8;
  cursor: pointer;
}

#cvUpdateToast .btn-close:hover {
  opacity: 1;
}

#cvUpdateToast .btn-close::before {
  content: "x";
  font-size: 1rem;
  line-height: 1;
}

@keyframes toastPulse {
  0% {
    box-shadow: 0 0.75rem 1.5rem rgba(185, 28, 28, 0.35);
  }
  50% {
    box-shadow: 0 0.9rem 1.8rem rgba(234, 88, 12, 0.65);
  }
  100% {
    box-shadow: 0 0.75rem 1.5rem rgba(185, 28, 28, 0.45);
  }
}

@media (max-width: 600px) {
  .toast-container {
    top: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
  }

  #cvUpdateToast {
    min-width: 100%;
    max-width: 100%;
  }
}

#cv-bot-toggle {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: white;
  border: 2px solid transparent;
  border-radius: 50px;
  padding: 15px 20px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 14px;
  backdrop-filter: blur(10px);
}

#cv-bot-toggle:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, #000000 0%, #1f2937 100%);
  border-color: rgba(255, 255, 255, 0.2);
}

#cv-bot-toggle i {
  font-size: 18px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

#cv-bot-chat {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: min(350px, 90vw);
  height: min(500px, 70vh);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e5e7eb;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  overflow: hidden;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.cv-bot-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
}

.cv-bot-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#cv-bot-header {
  background: linear-gradient(135deg, #000000 0%, #374151 100%);
  color: white;
  padding: 18px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bot-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bot-avatar {
  font-size: 26px;
  background: rgba(255, 255, 255, 0.15);
  padding: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.bot-details h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.bot-status {
  font-size: 12px;
  opacity: 0.8;
}

.bot-status::before {
  content: "●";
  color: #4ade80;
  margin-right: 5px;
}

.header-actions {
  display: flex;
  gap: 10px;
}

#clear-chat-btn,
#cv-bot-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#clear-chat-btn:hover,
#cv-bot-close:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#cv-bot-messages {
  flex: 1;
  padding: 25px;
  overflow-y: auto;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.bot-message {
  margin-bottom: 15px;
  animation: slideInLeft 0.3s ease;
}

.user-message {
  margin-bottom: 15px;
  text-align: right;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.message-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 15px 18px;
  border-radius: 18px 18px 18px 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: inline-block;
  max-width: 80%;
}

.user-message .message-content {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: white;
  border-radius: 18px 18px 6px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.message-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #1f2937;
  font-weight: 400;
}

.user-message .message-content p {
  color: white;
}

.quick-actions {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-btn {
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  color: white;
  border: 2px solid #1a1a1a;
  padding: 10px 16px;
  border-radius: 25px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.quick-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #2d2d2d, #404040);
  border-color: #2d2d2d;
}

#cv-bot-input-container {
  padding: 20px 25px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-top: 2px solid #e5e7eb;
  border-radius: 0 0 20px 20px;
}

.navigation-options {
  text-align: center;
}

.navigation-options p {
  margin: 12px 0;
  font-size: 13px;
  color: #4b5563;
  font-weight: 500;
}

.navi-instructions {
  text-align: center;
  margin: 12px 0;
  font-size: 13px;
  color: #4b5563;
  font-weight: 500;
}

.quick-actions {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.quick-actions-second {
  margin-top: 10px;
}

/* Mobile Responsive - Enhanced CV Bot */
@media screen and (max-width: 768px) {
  #cv-bot-container {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 10000 !important;
  }
  
  #cv-bot-toggle {
    width: 70px !important;
    height: 70px !important;
    padding: 0 !important;
    font-size: 24px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
  }
  
  #cv-bot-toggle span {
    display: none !important;
  }
  
  #cv-bot-toggle i {
    margin: 0 !important;
    font-size: 24px !important;
  }
  
  #cv-bot-chat {
    width: calc(100vw - 30px) !important;
    max-width: 380px !important;
    height: 70vh !important;
    max-height: 550px !important;
    min-height: 450px !important;
    bottom: 100px !important;
    right: 0 !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4) !important;
  }
  
  #cv-bot-header {
    padding: 20px 25px !important;
  }
  
  .bot-avatar {
    font-size: 28px !important;
    padding: 12px !important;
  }
  
  .bot-details h4 {
    font-size: 18px !important;
  }
  
  #cv-bot-messages {
    padding: 20px !important;
  }
  
  .message-content {
    padding: 18px 20px !important;
    font-size: 15px !important;
    max-width: 85% !important;
  }
  
  .quick-btn {
    padding: 12px 18px !important;
    font-size: 14px !important;
    margin: 4px !important;
    min-height: 44px !important;
    font-weight: 600 !important;
  }
  
  #clear-chat-btn,
  #cv-bot-close {
    width: 40px !important;
    height: 40px !important;
    font-size: 18px !important;
  }
}

@media screen and (max-width: 480px) {
  #cv-bot-container {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
  }
  
  #cv-bot-toggle {
    padding: 12px 16px;
    font-size: 12px;
    position: relative;
    z-index: 10000;
  }
  
  #cv-bot-toggle span {
    display: none;
  }
  
  #cv-bot-chat {
    width: calc(100vw - 40px);
    height: 450px;
    right: 0;
    position: absolute;
    z-index: 9998;
  }
  
  .quick-actions {
    grid-template-columns: 1fr 1fr;
  }
  
  .message-content {
    max-width: 90%;
  }
  
  .suggested-questions {
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 380px) {
  #cv-bot-container {
    position: fixed !important;
    bottom: 15px !important;
    right: 15px !important;
    z-index: 9999 !important;
  }
  
  #cv-bot-chat {
    width: calc(100vw - 30px);
    right: 0;
    position: absolute;
    z-index: 9998;
  }
}

/* Scrollbar styling for chat messages */
#cv-bot-messages::-webkit-scrollbar {
  width: 4px;
}

#cv-bot-messages::-webkit-scrollbar-track {
  background: #f1f1f1;
}

#cv-bot-messages::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 2px;
}

#cv-bot-messages::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Contact Modal Styling */
.contact-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.contact-modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  margin: 5% auto;
  border: none;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.contact-modal-header {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: white;
  padding: 20px 25px;
  border-radius: 20px 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-modal-header h2 {
  margin: 0;
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-close {
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.contact-modal-body {
  padding: 30px;
}

.contact-info-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.contact-item i {
  font-size: 24px;
  color: #1f2937;
  width: 30px;
  text-align: center;
}

.contact-details h3 {
  margin: 0 0 5px 0;
  color: #1f2937;
  font-size: 16px;
}

.contact-details p {
  margin: 0;
  color: #6b7280;
}

.contact-details a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-details a:hover {
  color: #004499;
  text-decoration: underline;
}

.contact-form {
  border-top: 2px solid #e5e7eb;
  padding-top: 25px;
}

.contact-form h3 {
  margin: 0 0 20px 0;
  color: #1f2937;
  font-size: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1f2937;
  box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.1);
}

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

/* Access Reason Modal Styling */
.access-reason-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  padding: 1.25rem;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.access-reason-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  margin: 0;
  border: none;
  border-radius: 18px;
  width: min(560px, 100%);
  max-width: 520px;
  max-height: min(84vh, 720px);
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

.access-reason-header {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: white;
  padding: 18px 22px;
  border-radius: 18px 18px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.access-reason-header h2 {
  margin: 0;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.access-reason-close {
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.access-reason-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.access-reason-body {
  padding: 24px;
}

.access-reason-intro {
  margin: 0 0 10px 0;
  color: #374151;
  font-size: 15px;
  line-height: 1.55;
}

.access-reason-document {
  margin: 0 0 14px 0;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #dbe3ee;
  color: #111827;
  font-size: 14px;
}

.access-reason-label {
  display: block;
  margin-bottom: 8px;
  color: #1f2937;
  font-weight: 600;
  font-size: 14px;
}

.access-reason-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  margin-bottom: 10px;
  line-height: 1.45;
}

.access-reason-textarea:focus {
  outline: none;
  border-color: #1f2937;
  box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.1);
}

.access-reason-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 16px;
}

.access-reason-helper {
  color: #6b7280;
  font-size: 12px;
}

.access-reason-count {
  color: #4b5563;
  font-size: 12px;
  white-space: nowrap;
}

.access-reason-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.access-reason-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  background: rgba(31, 41, 55, 0.9);
  border: 1px solid rgba(31, 41, 55, 0.6);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s, border-color 0.2s;
}

.access-reason-email:hover {
  background: rgba(31, 41, 55, 1);
  border-color: rgba(31, 41, 55, 0.8);
}

.access-reason-email.is-disabled {
  opacity: 1;
  cursor: not-allowed;
  pointer-events: auto;
  background: #fef2f2;
  border-color: #ef4444;
  color: #b91c1c;
}

.access-reason-email.is-disabled.flash-error {
  background: #ef4444;
  border-color: #b91c1c;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
}

.access-reason-toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(16px);
  background: #111827;
  color: #ffffff;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  z-index: 12000;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.access-reason-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.access-reason-toast.error {
  background: #b91c1c;
}

.access-reason-note {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

@media screen and (max-width: 768px) {
  .access-reason-toast {
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    bottom: auto;
    width: min(calc(100vw - 1.25rem), 420px);
    transform: translateX(-50%) translateY(-14px);
    text-align: center;
    z-index: 1000000;
  }

  .access-reason-toast.show {
    transform: translateX(-50%) translateY(0);
  }
}

/* Mobile responsive for contact modal */
@media screen and (max-width: 600px) {
  .contact-modal-content {
    margin: 10% auto;
    width: 95%;
    max-height: 85vh;
  }
  
  .contact-modal-header {
    padding: 15px 20px;
  }
  
  .contact-modal-header h2 {
    font-size: 20px;
  }
  
  .contact-modal-body {
    padding: 20px;
  }

  .access-reason-content {
    width: 100%;
    max-height: calc(100dvh - 2rem);
    border-radius: 14px;
  }

  .access-reason-header {
    padding: 14px 16px;
  }

  .access-reason-header h2 {
    font-size: 18px;
  }

  .access-reason-body {
    padding: 16px;
  }

  .access-reason-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.4rem;
  }

  .access-reason-actions {
    position: sticky;
    bottom: 0;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), #f8fafc);
    padding-top: 0.65rem;
    margin-bottom: 0.75rem;
  }

  .access-reason-email,
  .access-reason-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }
  
  /* Video Modal Mobile Responsive */
  .modal-content {
    margin: 1% auto;
    width: 98%;
    max-width: none;
    top: 80px; /* Increased from 30px to maintain lower positioning on mobile */
  }
  
  .video-modal-header {
    padding: 1.2rem 1.5rem;
  }
  
  .video-modal-header h3 {
    font-size: 1.1rem;
  }
  
  #demoVideo {
    height: 250px; /* Smaller height for mobile */
  }
  
  .close {
    width: 40px;
    height: 40px;
    font-size: 28px;
  }
}

/* Tablet responsive for video modal */
@media screen and (min-width: 601px) and (max-width: 1024px) {
  .modal-content {
    width: 92%;
    max-width: 900px;
    top: 100px; /* Increased from 40px to maintain lower positioning on tablets */
  }
  
  #demoVideo {
    height: 450px; /* Medium height for tablets */
  }
  
  .video-modal-header {
    padding: 1.8rem 2rem;
  }
  
  .video-modal-header h3 {
    font-size: 1.2rem;
  }
}

/* Inline Video Player for Projects - Desktop */
.inline-video-container {
  margin-top: 1.5rem;
  width: 100%;
  max-width: 800px; /* Much wider for desktop */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.inline-video-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.inline-video-container video {
  width: 100%;
  height: auto;
  min-height: 400px; /* Taller for desktop */
  border-radius: 12px;
  background: #f8f9fa;
}

.video-controls {
  margin-top: 1rem;
  text-align: center;
}

.video-controls button {
  margin: 0 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* Skills Grid Styles */
.skills-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin: 2rem 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.skills-category {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.skills-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #2c3e50;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid #ecf0f1;
  padding-bottom: 0.5rem;
}

.skills-category-title i,
.technical-skills-main-title i,
#skills .title i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.skill-card {
  display: flex;
  align-items: center;
  background: #ffffff;
  padding: 1.2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #3498db, #e74c3c, #27ae60, #9b59b6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.skill-icon {
  margin-right: 1rem;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(52, 152, 219, 0.1);
  transition: all 0.3s ease;
}

.skill-icon i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.skill-card:hover .skill-icon {
  transform: scale(1.1);
  background: rgba(52, 152, 219, 0.2);
}

.skill-info {
  flex: 1;
}

.skill-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.skill-level {
  width: 100%;
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: #ecf0f1;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, #3498db, #2ecc71);
  border-radius: 20px;
  transition: width 1s ease-in-out;
  position: relative;
  overflow: hidden;
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Responsive Design for Skills */
@media screen and (max-width: 1024px) {
  .skills-grid-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .skills-category {
    padding: 1.5rem;
  }
  
  .skills-category-title {
    font-size: 1.3rem;
  }
}

@media screen and (max-width: 768px) {
  .skills-grid-container {
    margin: 1rem;
    gap: 1.5rem;
  }
  
  .skills-category {
    padding: 1rem;
  }
  
  .skill-card {
    padding: 1rem;
  }
  
  .skill-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    margin-right: 0.8rem;
  }
  
  .skill-info h3 {
    font-size: 1rem;
  }
}

/* Project Tech Stack Icons */
.project-tech-stack {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
  flex-wrap: wrap;
}

.tech-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tech-icon:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tech-icon i {
  font-size: 1rem;
}

/* Skills Project Links */
.skill-projects {
  margin-top: 0.5rem;
}

.skill-projects p {
  font-size: 0.8rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.3rem;
}

.project-links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: #3498db;
  text-decoration: none;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  background: rgba(52, 152, 219, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(52, 152, 219, 0.2);
}

.project-link:hover {
  background: rgba(52, 152, 219, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.project-link i {
  font-size: 0.7rem;
}

/* Special styling for non-link project items */
.project-link:not([href]) {
  color: #7f8c8d;
  background: rgba(127, 140, 141, 0.1);
  border: 1px solid rgba(127, 140, 141, 0.2);
  cursor: default;
}

.project-link:not([href]):hover {
  background: rgba(127, 140, 141, 0.15);
  transform: none;
  box-shadow: none;
}

/* Project Skills Used Section Styling */
.skills-used-section {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(52, 152, 219, 0.05);
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.skill-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem 0.6rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}

.skill-badge::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  transition: width 0.3s ease;
}

.skill-badge i {
  font-size: 1rem;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

/* Primary skills - main technologies used */
.skill-badge.primary-skill {
  background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
  color: white;
  box-shadow: 
    0 4px 12px rgba(255, 107, 107, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.skill-badge.primary-skill::before {
  background: #FF4757;
}

.skill-badge.primary-skill:hover {
  transform: translateX(4px) scale(1.05);
  box-shadow: 
    0 6px 20px rgba(255, 107, 107, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.skill-badge.primary-skill:hover::before {
  width: 8px;
}

/* Secondary skills - supporting technologies and concepts */
.skill-badge.secondary-skill {
  background: linear-gradient(135deg, #A8E6CF, #FFD93D);
  color: #2c3e50;
  box-shadow: 
    0 3px 10px rgba(168, 230, 207, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.skill-badge.secondary-skill::before {
  background: #70A1FF;
}

.skill-badge.secondary-skill:hover {
  transform: translateX(4px) scale(1.05);
  box-shadow: 
    0 5px 15px rgba(168, 230, 207, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: #1a252f;
}

.skill-badge.secondary-skill:hover::before {
  width: 8px;
}

/* Responsive design for skill badges */
@media screen and (max-width: 768px) {
  .skills-used-section {
    padding: 0.8rem;
    margin-bottom: 1rem;
  }
  
  .skill-badges {
    gap: 0.6rem;
  }
  
  .skill-badge {
    padding: 0.5rem 1rem 0.5rem 0.7rem;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
  }
  
  .skill-badge i {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 480px) {
  .skills-grid-container {
    margin: 0.5rem;
  }
  
  .skill-badges {
    gap: 0.5rem;
  }
  
  .skill-badge {
    padding: 0.4rem 0.8rem 0.4rem 0.6rem;
    font-size: 0.75rem;
    letter-spacing: 0.2px;
  }
  
  .skill-badge i {
    font-size: 0.8rem;
  }
}
  
  .skills-category-title {
    font-size: 1.1rem;
  }
  
  .skill-card {
    padding: 0.8rem;
    flex-direction: column;
    text-align: center;
  }
  
  .skill-icon {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  
  .skill-info {
    width: 100%;
  }
}

/* Technical Skills Wrapper */
.technical-skills-wrapper {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 20px;
  padding: 3rem 2rem;
  margin: 2rem 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 2px solid #e9ecef;
  position: relative;
  overflow: hidden;
}

.technical-skills-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #000000, #333333, #666666, #000000);
}

.technical-skills-main-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}

.technical-skills-main-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #000000, #666666);
  border-radius: 2px;
}

/* Non-Technical Skills Wrapper */
.non-technical-skills-wrapper {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  padding: 3rem 2rem;
  margin: 3rem 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 2px solid #e9ecef;
  position: relative;
  overflow: hidden;
}

.non-technical-skills-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #666666, #000000, #333333, #666666);
}

.non-technical-skills-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}

.non-technical-skills-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #666666, #000000);
  border-radius: 2px;
}

/* Soft Skills Grid */
.soft-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.soft-skill-item {
  background: #ffffff;
  border: 2px solid #f1f2f6;
  border-radius: 15px;
  padding: 1.8rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.soft-skill-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.02), transparent);
  transition: left 0.5s ease;
}

.soft-skill-item:hover::before {
  left: 100%;
}

.soft-skill-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-color: #ddd;
}

.soft-skill-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #2c3e50;
  transition: all 0.3s ease;
  border: 3px solid #e9ecef;
}

.soft-skill-item:hover .soft-skill-icon {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: #ffffff;
  transform: scale(1.1) rotate(10deg);
  border-color: #2c3e50;
}

.soft-skill-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
}

.soft-skill-item:hover .soft-skill-content h3 {
  color: #000000;
}

.soft-skill-content p {
  font-size: 0.95rem;
  color: #7f8c8d;
  line-height: 1.6;
  margin: 0;
  transition: color 0.3s ease;
}

.soft-skill-item:hover .soft-skill-content p {
  color: #5a6c7d;
}

/* Responsive Design for Soft Skills */
@media screen and (max-width: 768px) {
  .technical-skills-wrapper,
  .non-technical-skills-wrapper {
    margin: 1.5rem 0;
    padding: 2rem 1rem;
  }
  
  .technical-skills-main-title,
  .non-technical-skills-title {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }
  
  .soft-skills-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .soft-skill-item {
    padding: 1.5rem;
  }
  
  .soft-skill-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .soft-skill-content h3 {
    font-size: 1.2rem;
  }
  
  .soft-skill-content p {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 480px) {
  .technical-skills-wrapper,
  .non-technical-skills-wrapper {
    margin: 1rem 0;
    padding: 1.5rem 0.8rem;
  }
  
  .technical-skills-main-title,
  .non-technical-skills-title {
    font-size: 1.5rem;
  }
  
  .soft-skill-item {
    padding: 1.2rem;
  }
  
  .soft-skill-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }
}

/* Professional Profile Section Styles */
#profile {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 2rem 0;
  position: relative;
}

.profile-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

.profile-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  min-height: 80vh;
}

/* Profile Image Section */
.profile-image-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -5rem;
}

.profile-image-wrapper {
  position: relative;
  width: 350px;
  height: 350px;
}

.profile-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

.profile-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: white;
  padding: 0.8rem 1.2rem;
  border-radius: 25px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 2px solid white;
}

.profile-badge i {
  font-size: 1rem;
}

/* Profile Text Section */
.profile-text-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-greeting {
  margin-bottom: 0.5rem;
}

.greeting-text {
  font-size: 1.6rem;
  color: #666;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.profile-name {
  font-size: 3.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -1px;
}

.profile-title {
  font-size: 1.8rem;
  font-weight: 500;
  color: #555;
  margin: 0;
  line-height: 1.3;
}

.profile-summary {
  margin: 1rem 0;
}

.profile-summary p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #666;
  margin: 0;
}

/* Action Buttons */
.profile-actions {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
}

.btn-primary,
.btn-secondary {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  min-width: 180px;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: white;
  box-shadow: 0 8px 25px rgba(44, 62, 80, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(44, 62, 80, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #2c3e50;
  border: 2px solid #2c3e50;
}

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

/* Profile Stats */
.profile-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid #e9ecef;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.3rem;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: #e9ecef;
}

/* Skills Note */
.skills-note {
  margin-top: 0.8rem;
  text-align: center;
}

.skills-note p {
  margin: 0;
  opacity: 0.8;
}

.mobile-skills-note {
  margin-top: 0.8rem;
  text-align: center;
}

.mobile-skills-note p {
  margin: 0;
  opacity: 0.8;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #666;
}

.scroll-arrow {
  width: 40px;
  height: 40px;
  border: 2px solid #666;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s infinite;
}

.scroll-text {
  font-size: 0.9rem;
  font-weight: 500;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Responsive Design for Profile */
@media screen and (max-width: 1024px) {
  .profile-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .profile-image-wrapper {
    width: 300px;
    height: 300px;
  }
  
  .profile-name {
    font-size: 3rem;
  }
  
  .profile-title {
    font-size: 1.6rem;
  }
}

@media screen and (max-width: 768px) {
  #profile {
    padding: 1rem 0;
  }
  
  .profile-container {
    padding: 0 1rem;
  }
  
  .profile-content {
    gap: 2rem;
  }
  
  .profile-image-wrapper {
    width: 250px;
    height: 250px;
  }
  
  .profile-name {
    font-size: 2.5rem;
  }
  
  .profile-title {
    font-size: 1.4rem;
  }
  
  .profile-summary p {
    font-size: 1rem;
  }
  
  .profile-actions {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    min-width: auto;
  }
  
  .profile-stats {
    justify-content: center;
    gap: 1rem;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
}

@media screen and (max-width: 480px) {
  .profile-image-wrapper {
    width: 200px;
    height: 200px;
  }
  
  .profile-name {
    font-size: 2rem;
  }
  
  .profile-title {
    font-size: 1.2rem;
  }
  
  .greeting-text {
    font-size: 1.1rem;
  }
  
  .profile-badge {
    bottom: 10px;
    right: 10px;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
  
  .profile-stats {
    flex-wrap: wrap;
    gap: 0.8rem;
  }
  
  .stat-divider {
    display: none;
  }
}

/* Disabled Button Styles for Future Education, Languages, and Hobbies */
.btn-disabled {
  cursor: not-allowed !important;
  pointer-events: none !important;
  /* Keep original btn-color-2 styling */
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d) !important;
  color: white !important;
  border: 2px solid #1a1a1a !important;
  position: relative;
}

.btn-disabled:hover {
  /* Keep original colors, no hover effects */
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d) !important;
  color: white !important;
  border: 2px solid #1a1a1a !important;
  transform: none !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

.btn-disabled:active {
  /* Keep original colors, no active effects */
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d) !important;
  color: white !important;
  border: 2px solid #1a1a1a !important;
  transform: none !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Disabled button icons */
.btn-disabled i {
  color: white !important;
}

/* Override any other button hover effects for disabled buttons */
.languages-buttons .btn-disabled,
.hobbies-buttons .btn-disabled {
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d) !important;
  color: white !important;
  border: 2px solid #1a1a1a !important;
}

.languages-buttons .btn-disabled:hover,
.hobbies-buttons .btn-disabled:hover {
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d) !important;
  color: white !important;
  border: 2px solid #1a1a1a !important;
  transform: none !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Mobile-first refinements for Tech Stack & Personal Strengths */
@media screen and (max-width: 640px) {
  #skills .technical-skills-wrapper {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }

  #skills .skills-grid-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0;
  }

  #skills .skills-category {
    padding: 1.25rem;
  }

  #skills .skills-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  #skills .skill-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 1rem;
    gap: 0.5rem;
  }

  #skills .skill-icon {
    margin: 0 0 0.4rem 0;
  }

  #skills .skill-projects .project-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .details-container .soft-skills-grid {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  .details-container .soft-skill-item {
    flex-direction: row;
    text-align: left;
    align-items: center;
    padding: 1rem 1.25rem;
  }

  .details-container .soft-skill-icon {
    margin: 0 0.75rem 0 0;
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }

  .details-container .soft-skill-content h3 {
    font-size: 1.05rem;
  }

  .details-container .soft-skill-content p {
    font-size: 0.9rem;
  }
}

/* Desktop profile spacing normalization */
@media screen and (min-width: 769px) {
  #profile {
    min-height: auto !important;
    margin-top: 0 !important;
    padding: clamp(2.25rem, 5vh, 4rem) 0 2.5rem !important;
  }

  .profile-container {
    padding: 0 2.5rem !important;
  }

  .profile-content {
    grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr) !important;
    gap: clamp(2rem, 4vw, 3rem) !important;
    min-height: auto !important;
    align-items: center !important;
  }

  .profile-image-section {
    margin-top: 0 !important;
  }

  .profile-image-wrapper {
    width: clamp(250px, 28vw, 320px) !important;
    height: clamp(250px, 28vw, 320px) !important;
  }

  .profile-text-section {
    gap: 1rem !important;
  }

  .profile-greeting {
    margin-bottom: 0 !important;
  }

  .profile-title {
    margin-top: 0.2rem !important;
  }

  .profile-summary {
    max-width: 62ch !important;
    margin: 0.6rem 0 0 !important;
  }

  .profile-actions {
    margin: 1.25rem 0 0 !important;
    flex-wrap: wrap !important;
  }

  .profile-stats {
    margin-top: 1rem !important;
    padding-top: 1rem !important;
  }
}

/* Ultra-wide desktop profile spacing refinements */
@media screen and (min-width: 1440px) {
  #profile {
    padding: 3.25rem 0 3rem !important;
  }

  .profile-container {
    max-width: 1320px !important;
    padding: 0 3rem !important;
  }

  .profile-content {
    grid-template-columns: 0.95fr 1.05fr !important;
    gap: clamp(2.5rem, 3.2vw, 3.75rem) !important;
  }

  .profile-image-wrapper {
    width: clamp(280px, 22vw, 340px) !important;
    height: clamp(280px, 22vw, 340px) !important;
  }

  .profile-text-section {
    max-width: 68ch !important;
  }

  .profile-name {
    font-size: clamp(3rem, 3vw, 3.45rem) !important;
  }

  .profile-title {
    font-size: clamp(1.3rem, 1.35vw, 1.65rem) !important;
  }

  .profile-summary p {
    font-size: clamp(1.02rem, 0.95vw, 1.12rem) !important;
  }

  .profile-actions {
    gap: 0.85rem !important;
  }
}
