/* 
  Portfolio Website CSS - 3D Stylish Edition (Updated)
  Author: Mehul Akoliya (enhanced for 3D style, updated for fixed header and FAB visibility)
  Version: 1.1.1
  Description: A comprehensive, responsive CSS with 3D-inspired styling, ensuring fixed header and always-visible FAB
*/

/* ========= RESET & BASE STYLES ========= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Color Variables */
  --primary-color: #4361ee;
  --primary-light: #5a73f2;
  --primary-dark: #3b54d3;
  --secondary-color: #7209b7;
  --secondary-light: #8a1fd3;
  --secondary-dark: #5c07a0;
  --accent-color: #4cc9f0;
  --accent-light: #6fdbfa;
  --accent-dark: #38b6db;

  /* Neutral Colors */
  --dark-bg: #121212;
  --light-bg: #f8f9fa;
  --text-dark: #212529;
  --text-light: #f8f9fa;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.07);
  --shadow-xl: 0 20px 35px rgba(0, 0, 0, 0.1), 0 8px 15px rgba(0, 0, 0, 0.07);
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-3d-lift: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.08);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-normal: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;

  /* Typography */
  --font-family-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-family-headings: 'Poppins', 'Inter', system-ui, sans-serif;

  /* Z-index layers */
  --z-navbar: 1000;
  --z-modal: 2000;
  --z-tooltip: 3000;

  /* 3D Specific Variables */
  --perspective-base: 1000px;
  --rotate-sm: 3deg;
  --rotate-md: 7deg;
}

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

/* Base visibility for navigation items (Desktop First) */
.desktop-only {
  display: list-item;
  /* Default for <li>, so it's visible */
}

.mobile-only {
  display: none;
  /* Hidden on desktop by default */
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family-main);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-normal);
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

section {
  padding: var(--space-7) 0;
  position: relative;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* ========= TYPOGRAPHY ========= */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-headings);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-4);
  color: var(--text-dark);
}

h1 {
  font-size: 2.8rem;
  font-weight: 700;
  text-shadow:
    1px 1px 0 var(--gray-200),
    2px 2px 0 var(--gray-300),
    3px 3px 3px rgba(0, 0, 0, 0.05);
}

h2 {
  font-size: 2.2rem;
  position: relative;
}

h3 {
  font-size: 1.6rem;
}

h4 {
  font-size: 1.3rem;
}

p {
  margin-bottom: var(--space-4);
}

.highlight {
  color: var(--primary-color);
  font-weight: 600;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-6);
}

.section-title h2 {
  display: inline-block;
  position: relative;
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.03);
}

.underline {
  display: block;
  width: 80px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  margin: var(--space-3) auto;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* ========= HEADER & NAVIGATION ========= */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  /* Dark, slightly transparent bg */
  backdrop-filter: blur(10px);
  /* Stronger blur for glassmorphism */
  box-shadow: var(--shadow-sm);
  z-index: var(--z-navbar);
  animation: pulseGlow 3s ease-in-out infinite;
  /* Subtle glow animation */
}

header.scrolled {
  /* Apply a light, glassmorphic background when scrolled */
  background: rgba(248, 249, 250, 0.9);
  /* var(--gray-100) with transparency */
  backdrop-filter: blur(10px);
  /* Maintain blur effect */
  box-shadow: var(--shadow-md);
  animation: none;
  /* Optional: Stop the pulseGlow animation on scroll */
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  /* background: linear-gradient(45deg, var(--primary-light), var(--accent-light)); */
  /* color: white; */
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--space-3);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: var(--transition-normal);
}

.logo:hover {
  transform: scale(1.05) rotate(90deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.navbar span.highlight {
  display: none;
}

.nav-links ul {
  display: flex;
  gap: var(--space-4);
}

.nav-links a {
  position: relative;
  color: var(--gray-700);
  /* Use a defined text color, e.g., for light header */
  font-weight: 500;
  padding: var(--space-2) 0;
}


.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
  /* Use a brighter color for hover/active on the initial dark header */
  color: var(--accent-light);
  text-shadow: 0 0 8px rgba(67, 97, 238, 0.5);
  /* Glow on hover/active */
}

/* Styles for nav links when header is scrolled (light background) */
header.scrolled .nav-links a {
  color: var(--gray-800);
  /* Darker text for readability on light background */
}

header.scrolled .nav-links a:hover,
header.scrolled .nav-links a.active {
  color: var(--primary-color);
  /* Standard primary color for hover/active */
}

header.scrolled .nav-links a {
  color: var(--gray-700);
  /* Switch to dark text for scrolled light header */
}

header.scrolled .nav-links a:hover,
header.scrolled .nav-links a.active {
  color: var(--primary-color);
  /* Standard primary color for hover/active on light header */
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary-color);
  transition: var(--transition-normal);
  border-radius: 1px;
}

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

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--gray-800);
  transition: var(--transition-normal);
}

.nav-toggle:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Container for the dropdown */
.nav-item {
  position: relative;
}

/* Hide submenu initially */
.dropdown-menu {
  display: none;
  position: absolute;
  visibility: hidden;
  top: 100%;
  left: 0;
  background: white;
  padding: 10px 0;
  border-radius: var(--radius-md);
  /* Corrected typo: removed trailing underscore */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1010;
  /* Ensure dropdown is above other navbar content if necessary */
  min-width: 180px;
}

/* Show submenu on hover */
.nav-item:hover .dropdown-menu {
  display: block;
  visibility: visible;
}

/* Style links inside dropdown */
.dropdown-menu li {
  list-style: none;
}

.dropdown-menu li a {
  display: block;
  padding: 8px 20px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  transition: background 0.3s ease;
}

.dropdown-menu li a:hover {
  background-color: #f0f0f0;
}

/* ========= HERO SECTION ========= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.05) 0%, rgba(76, 201, 240, 0.1) 100%);
  padding-top: 80px;
  overflow: hidden;
  perspective: var(--perspective-base);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  transform-style: preserve-3d;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: var(--space-3);
  text-shadow: 2px 2px 0 var(--gray-300), 4px 4px 8px rgba(0, 0, 0, 0.1);
}

.hero h2 {
  font-size: 2.2rem;
  margin-bottom: var(--space-4);
  color: var(--secondary-dark);
  min-height: 3rem;
  font-weight: 500;
}

.hero p {
  font-size: 1.25rem;
  color: var(--gray-700);
  margin-bottom: var(--space-5);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.typewriter .txt-rotate::after {
  content: '|';
  animation: blink 1s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Section Highlight */
.section-highlight {
  text-align: center;
  margin: 2rem auto 1rem;
  max-width: 100%;
  font-size: 1.2rem;
  font-weight: 500;
  color: #2b2d42;
  background: linear-gradient(90deg, #f4f4f9, #f0f8ff);
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.section-highlight p:hover {
  color: grey;
}

/* ========= SERVICES CONTENT WRAPPER STYLES ========= */
#services-content-wrapper {
  display: none;
  /* Start hidden */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

#services-content-wrapper.visible {
  display: block;
  /* Or the appropriate display type, e.g., grid, flex if needed by its children */
  opacity: 1;
  transform: translateY(0);
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin-bottom: var(--space-5);
}

.social-icons {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.7);
  color: var(--gray-700);
  box-shadow: var(--shadow-sm), inset 0 1px 2px rgba(255, 255, 255, 0.5);
  transition: var(--transition-normal), transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

/* ========= BUTTONS ========= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: var(--transition-fast), box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
  border: 1px solid transparent;
}

.btn i,
.btn svg {
  margin-left: var(--space-2);
  transition: transform 0.2s ease;
}

.btn:hover i,
.btn:hover svg {
  transform: translateX(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-dark);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3), 0 3px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background-color: var(--gray-100);
  color: var(--text-dark);
  border: 1px solid var(--gray-300);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--gray-200);
  transform: translateY(-3px);
  border-color: var(--gray-400);
  box-shadow: var(--shadow-md);
}

.btn-secondary:active {
  transform: translateY(1px);
  background-color: var(--gray-300);
  box-shadow: var(--shadow-inset);
}

.download-cv {
  margin-top: var(--space-4);
}

/* ========= ABOUT SECTION ========= */
.about {
  background-color: white;
}

.about-content {
  display: flex;
  gap: var(--space-7);
  align-items: center;
  perspective: 800px;
}

.about-image {
  flex: 1;
  position: relative;
  transform-style: preserve-3d;
}

.profile-img {
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15), 0 5px 10px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  transition: var(--transition-slow);
  transform: rotateY(-5deg) rotateX(2deg) translateZ(10px);
}

.about-image:hover .profile-img {
  transform: rotateY(0deg) rotateX(0deg) translateZ(20px) scale(1.02);
  box-shadow: var(--shadow-3d-lift);
}

.experience-box {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%) translateZ(30px) rotateX(-5deg);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-3) var(--space-4);
  display: flex;
  gap: var(--space-4);
  transition: var(--transition-slow);
}

.about-image:hover .experience-box {
  transform: translateX(-50%) translateZ(40px) rotateX(0deg);
}

.experience-item {
  text-align: center;
  padding: var(--space-2);
}

.experience-item h3 {
  font-size: 1.7rem;
  color: var(--primary-dark);
  margin-bottom: var(--space-1);
}

.experience-item p {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 0;
  line-height: 1.3;
}

.about-info {
  flex: 1.2;
}

.about-info h3 {
  color: var(--gray-800);
  margin-bottom: var(--space-4);
  font-size: 1.8rem;
}

.info-list {
  margin: var(--space-5) 0;
}

.info-item {
  display: flex;
  margin-bottom: var(--space-3);
}

.info-title {
  flex: 0 0 130px;
  color: var(--gray-800);
  font-weight: 600;
}

.info-title i {
  margin-right: var(--space-2);
  color: var(--primary-color);
  width: 20px;
  text-align: center;
}

.info-text {
  color: var(--gray-700);
}

/* Services Section */
.services-section {
  background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a202c;
  position: relative;
  z-index: 1;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: #007BFF;
  margin: 0.5rem auto;
  border-radius: 2px;
}

.section-intro {
  max-width: 700px;
  margin: 0 auto 3.5rem;
  color: #4a5568;
  font-size: 1.2rem;
  line-height: 1.6;
}

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

/* Flip Card Styling */
.service-card {
  perspective: 1000px;
  height: 400px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card:hover .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.service-card-front {
  background: #fff;
}

.service-card-back {
  background: #007BFF;
  color: #fff;
  transform: rotateY(180deg);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #007BFF;
}

.service-card-front h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1a202c;
}

.service-card-front p {
  color: #4a5568;
  font-size: 1rem;
  line-height: 1.5;
}

.service-card-back ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
  text-align: left;
}

.service-card-back li {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.service-card-back li::before {
  content: '\f058';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-right: 0.5rem;
  color: #fff;
}

.service-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.5rem;
  background-color: #fff;
  color: #007BFF;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.service-btn:hover {
  background-color: #e2e8f0;
  color: #0056b3;
}

.service-btn i {
  margin-left: 0.5rem;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .section-intro {
    font-size: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ========= SKILLS SECTION ========= */
.skills {
  background-color: var(--gray-100);
}

.skills-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  perspective: 800px;
}

.skills-categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-bottom: var(--space-4);
}

.category-selector {
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-weight: 500;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: var(--transition-normal), transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.category-selector:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.category-selector.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.skills-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
}

.skills-group {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
}

.skills-group.active {
  display: grid;
}

.skill-item {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  background: var(--gray-100);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.skill-item:hover {
  transform: scale(1.03) translateZ(15px) rotateX(2deg);
  box-shadow: var(--shadow-lg);
  background: white;
}

.skill-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-color) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-info {
  flex-grow: 1;
}

.skill-info h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-2);
}

.skill-bar {
  width: 100%;
  height: 8px;
  background-color: var(--gray-300);
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: var(--shadow-inset);
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-light) 100%);
  border-radius: var(--radius-full);
  transition: width 0.8s ease-in-out;
}

/* Tooltip hover effect */
.skill-item::after {
  content: attr(data-percent);
  position: absolute;
  top: 10px;
  right: 10%;
  background-color: #333;
  color: #fff;
  padding: 3px 6px;
  font-size: 12px;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  pointer-events: none;
}

.skill-item:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* ========= PROJECTS SECTION ========= */
.projects {
  background-color: white;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-6);
}

.filter-btn {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--gray-200);
  color: var(--gray-700);
  font-weight: 500;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  background: var(--gray-300);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
  perspective: 1200px;
}

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  transform-style: preserve-3d;
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px) rotateY(var(--rotate-sm)) scale(1.02);
  box-shadow: var(--shadow-3d-lift);
}

.project-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 220px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.project-card.featured .project-image {
  height: 100%;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
  filter: brightness(0.9) saturate(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

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

.project-links {
  display: flex;
  gap: var(--space-4);
}

.project-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  color: var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.project-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.project-info {
  padding: var(--space-4) var(--space-5);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.tag {
  font-size: 0.8rem;
  padding: 3px var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--gray-200);
  color: var(--gray-700);
  font-weight: 500;
}

.tag:first-child {
  background: linear-gradient(45deg, var(--primary-light), var(--accent-color));
  color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.project-info h3 {
  font-size: 1.35rem;
  margin-bottom: var(--space-2);
}

.project-info p {
  color: var(--gray-700);
  font-size: 0.95rem;
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.project-tech span {
  font-size: 0.8rem;
  padding: 3px var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  color: var(--gray-600);
}

.projects-more {
  text-align: center;
  margin-top: var(--space-6);
}

/* ========= EDUCATION SECTION ========= */
.education {
  background-color: var(--gray-100);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-4) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(to bottom, var(--gray-300), var(--gray-400));
  transform: translateX(-50%);
  border-radius: 2px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.timeline-wrapper {
  position: relative;
}

.timeline-item {
  display: flex;
  margin-bottom: var(--space-7);
  position: relative;
}

.timeline-item:nth-child(odd) {
  justify-content: flex-start;
}

.timeline-item:nth-child(even) {
  justify-content: flex-end;
}

.timeline-icon {
  position: absolute;
  top: 0;
  left: 50%;
  width: 44px;
  height: 44px;
  background: white;
  border: 3px solid var(--primary-color);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transform: translateX(-50%) translateZ(10px) rotateY(0deg);
  z-index: 1;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3), var(--shadow-sm);
  transition: var(--transition-normal);
}

.timeline-item:hover .timeline-icon {
  transform: translateX(-50%) translateZ(15px) rotateY(15deg) scale(1.05);
  border-color: var(--accent-color);
}

.timeline-content {
  width: calc(50% - 45px);
  padding: var(--space-4) var(--space-5);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  border-top: 3px solid var(--primary-light);
}

.timeline-item:hover .timeline-content {
  transform: translateY(-5px) rotateX(1deg);
}

.timeline-item:nth-child(odd):hover .timeline-content {
  transform: translateY(-5px) rotateY(-2deg) rotateX(1deg);
}

.timeline-item:nth-child(even):hover .timeline-content {
  transform: translateY(-5px) rotateY(2deg) rotateX(1deg);
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 18px;
  width: 25px;
  height: 3px;
  background: var(--gray-400);
  border-radius: 1px;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -25px;
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -25px;
}

.timeline-date {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: var(--space-3);
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.timeline-content h3 {
  font-size: 1.35rem;
  margin-bottom: var(--space-1);
  color: var(--primary-dark);
}

.timeline-content h4 {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: var(--space-3);
}

.timeline-content p {
  color: var(--gray-700);
  font-size: 0.95rem;
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.timeline-tags span {
  font-size: 0.8rem;
  padding: 3px var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--gray-200);
  color: var(--gray-700);
}

/* Certifications Wrapper */
.certifications-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  perspective: 1000px;
}

/* Toggle Button */
.cert-toggle-btn {
  display: block;
  margin: 0 auto 20px;
  padding: 12px 24px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(45deg, #007bff, #00d4ff);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.cert-toggle-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.5);
}

.cert-toggle-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 123, 255, 0.2);
}

/* Certifications Section */
.certifications-section {
  padding: 30px;
  background: rgba(245, 245, 245, 0.8);
  border-radius: 15px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.certifications-section.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.certifications-section.hide {
  display: none;
  opacity: 0;
  transform: translateY(20px);
}

/* Intro Message */
.cert-intro-message {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.cert-intro-message p {
  font-size: 1.1rem;
  color: #333333;
  line-height: 1.6;
}

.cert-intro-message strong {
  color: #007bff;
}

/* Filter Buttons */
.cert-filter-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.cert-filter-buttons button {
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 500;
  color: #333333;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.cert-filter-buttons button:hover {
  background: #007bff;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.cert-filter-buttons button.active {
  background: #007bff;
  color: #ffffff;
  border-color: #007bff;
}

/* Certificate Grid */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* Certificate Card */
.cert-card {
  background: #ffffff;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform: translateZ(0);
  position: relative;
  overflow: hidden;
}

.cert-card:hover {
  transform: translateY(-10px) translateZ(20px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* 3D Effect on Hover */
.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 123, 255, 0.05), rgba(0, 212, 255, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

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

/* Highlight for Degree */
.cert-card.highlight {
  border: 2px solid #007bff;
  background: linear-gradient(135deg, #ffffff, #e6f0ff);
}

/* Card Content */
.cert-card h4 {
  font-size: 1.4rem;
  color: #222222;
  margin-bottom: 10px;
  font-weight: 600;
}

.cert-card p {
  font-size: 1rem;
  color: #666666;
  margin-bottom: 15px;
}

/* Certificate Button */
.cert-btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1rem;
  color: #ffffff;
  background: linear-gradient(45deg, #007bff, #00d4ff);
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.cert-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .cert-toggle-btn {
    font-size: 1rem;
    padding: 10px 20px;
  }

  .cert-filter-buttons {
    gap: 10px;
  }

  .cert-filter-buttons button {
    padding: 8px 15px;
    font-size: 0.9rem;
  }

  .cert-card h4 {
    font-size: 1.2rem;
  }

  .cert-card p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .certifications-wrapper {
    padding: 20px 10px;
  }

  .certifications-section {
    padding: 20px;
  }

  .cert-intro-message p {
    font-size: 1rem;
  }
}

/* ========= CONTACT SECTION ========= */
.contact {
  background-color: white;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-7);
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-info h3 {
  font-size: 1.85rem;
  margin-bottom: var(--space-4);
}

.contact-details {
  margin: var(--space-5) 0;
}

.contact-item {
  display: flex;
  margin-bottom: var(--space-5);
  gap: var(--space-4);
  align-items: center;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: var(--transition-normal);
}

.contact-item:hover .contact-icon {
  transform: scale(1.05) rotate(-5deg);
}

.contact-text h4 {
  font-size: 1.1rem;
  margin-bottom: var(--space-1);
  font-weight: 600;
}

.contact-text p,
.contact-text a {
  color: var(--gray-700);
  margin-bottom: 0;
  font-size: 0.95rem;
}

.contact-text a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: var(--space-3);
  margin-top: auto;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--gray-200);
  color: var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.social-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px) scale(1.05);
}

.contact-form {
  background: var(--gray-100);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: var(--space-4);
  position: relative;
}

.form-group label.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  background: white;
  transition: var(--transition-normal), box-shadow 0.2s ease;
  font-family: var(--font-family-main);
  font-size: 1rem;
  box-shadow: var(--shadow-inset);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.form-group textarea {
  min-height: 150px;
}

.form-group .btn-primary {
  width: 100%;
  padding: var(--space-3) var(--space-4);
}

/* ========= FOOTER ========= */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: var(--space-6) 0;
  text-align: center;
  border-top: 4px solid var(--primary-dark);
}

.footer p {
  margin-bottom: var(--space-2);
  font-size: 0.95rem;
}

.footer a {
  color: var(--accent-light);
  font-weight: 500;
}

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

/* Default: hide icons */
/* Hide icons by default (desktop & larger screens) */
ul li a i {
  display: none !important;
  /* force hide */
}

/* Show icons ONLY on mobile (max-width 768px) */
@media (max-width: 768px) {
  ul li a i {
    display: inline-block !important;
    /* force show */
    margin-right: 8px;
  }
}



/* ========= ANIMATIONS ========= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardLift {
  from {
    opacity: 0;
    transform: translateY(40px) rotateX(-10deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

/* ========= RESUME FAB STYLES ========= */
#resume-fab {
  position: fixed;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  font-family: var(--font-family-main);
  font-weight: 600;
  letter-spacing: 0.025em;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: calc(var(--z-navbar) + 10);
  color: white;
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(45, 55, 72, 0.85), rgba(26, 32, 44, 0.85));
  border-radius: 12px;
  box-shadow:
    0 12px 25px rgba(0, 0, 0, 0.35),
    0 0 15px rgba(45, 55, 72, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px) saturate(180%);
}

#resume-fab.collapsed {
  background: rgba(55, 65, 81, 0.6);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  justify-content: center;
}

.fab-text {
  margin-left: 12px;
  white-space: nowrap;
  opacity: 1;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#resume-fab.collapsed .fab-text {
  opacity: 0;
  transform: translateX(20px);
  width: 0;
  margin-left: 0;
}

#resume-fab:hover {
  transform: translateY(-50%) scale(1.08);
  box-shadow:
    0 18px 35px rgba(0, 0, 0, 0.4),
    0 0 25px rgba(45, 55, 72, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, rgba(74, 85, 104, 0.9), rgba(45, 55, 72, 0.9));
}

#resume-fab:active {
  transform: translateY(-50%) scale(0.98);
  transition: all 0.15s ease;
}

#resume-fab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.15),
      transparent);
  transition: left 0.6s ease;
}

#resume-fab:hover::before {
  left: 100%;
}

.eye-container {
  width: 30px;
  height: 22px;
  position: relative;
  transition: all 0.3s ease;
}

.eye-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1px 2px rgba(247, 247, 247, 0.3));
}

.eye-closed-line {
  stroke: #e2e8f0;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  opacity: 1;
}

.eye-lashes {
  stroke: #cbd5e0;
  stroke-width: 1;
  stroke-linecap: round;
  opacity: 0.8;
}

.eye-white {
  fill: url(#scleraGradient);
  stroke: #e2e8f0;
  stroke-width: 0.8;
  opacity: 0;
}

.eye-iris {
  fill: url(#irisGradient);
  opacity: 0;
}

.eye-pupil {
  fill: #1a202c;
  opacity: 0;
}

.eye-highlight {
  fill: rgba(255, 255, 255, 0.9);
  opacity: 0;
}

.eye-container.awake .eye-closed-line,
.eye-container.awake .eye-lashes {
  opacity: 0;
}

.eye-container.awake .eye-white,
.eye-container.awake .eye-iris,
.eye-container.awake .eye-pupil,
.eye-container.awake .eye-highlight {
  opacity: 1;
}

.eye-container.blinking .eye-white,
.eye-container.blinking .eye-iris,
.eye-container.blinking .eye-pupil,
.eye-container.blinking .eye-highlight {
  animation: humanBlink 0.4s ease-in-out;
}

.eye-container:not(.awake) .eye-closed-line {
  animation: sleepyBreathe 4s ease-in-out infinite;
}

@keyframes humanBlink {
  0% {
    transform: scaleY(1);
    opacity: 1;
  }

  10% {
    transform: scaleY(0.8);
  }

  15% {
    transform: scaleY(0.1);
    opacity: 0.3;
  }

  25% {
    transform: scaleY(0.8);
  }

  35% {
    transform: scaleY(1);
    opacity: 1;
  }

  100% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes sleepyBreathe {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(1px);
  }
}

.is-hidden {
  display: none;
}

.hidden {
  display: none;
}

/* ========= JAVASCRIPT DEPENDENT CLASSES ========= */
.hidden {
  display: none !important;
}

[data-aos] {
  transition-duration: 0.6s !important;
  transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

[data-aos="zoom-in-up-3d"] {
  opacity: 0;
  transform: scale(0.8) translateY(50px) rotateX(-20deg);
}

[data-aos="zoom-in-up-3d"].aos-animate {
  opacity: 1;
  transform: scale(1) translateY(0) rotateX(0deg);
}

[data-aos="fade-up-card"] {
  opacity: 0;
  transform: translateY(30px) translateZ(-30px) rotateX(5deg);
}

[data-aos="fade-up-card"].aos-animate {
  opacity: 1;
  transform: translateY(0) translateZ(0px) rotateX(0deg);
}

/* ========= BOOKING SUCCESS & ACTION BUTTON STYLES ========= */
.booking-success-message {
  background-color: #e6ffed;
  border: 1px solid #b7eb8f;
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  margin-top: 20px;
  animation: fadeIn 0.3s ease-in-out;
}

.success-icon {
  font-size: 2.8rem;
  color: #28a745;
  margin-bottom: 10px;
}

.success-text {
  font-size: 1.3rem;
  font-weight: 600;
  color: #155724;
  margin: 8px 0;
}

.success-subtext {
  font-size: 1.05rem;
  color: #155724;
  margin-bottom: 20px;
}

.success-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.action-button {
  padding: 10px 20px;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast), transform 0.2s ease, box-shadow 0.2s ease;
  background-color: #28a745;
  color: #fff;
  box-shadow: 0 3px 6px rgba(40, 167, 69, 0.3);
}

.action-button:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(33, 136, 56, 0.4);
}

.action-button:active {
  transform: translateY(0px);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ========= RESPONSIVE DESIGN ========= */
@media screen and (max-width: 992px) {
  html {
    font-size: 15px;
  }

  header {
    transform: none;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-image {
    margin-bottom: var(--space-7);
  }

  .profile-img {
    transform: rotateY(0deg) rotateX(0deg) translateZ(0px);
  }

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

  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    justify-content: flex-start !important;
  }

  .timeline-icon {
    left: 30px;
    transform: translateX(-50%) translateZ(0);
  }

  .timeline-content {
    width: calc(100% - 70px);
    margin-left: 70px;
    transform: none !important;
  }

  .timeline-item:nth-child(odd) .timeline-content::before,
  .timeline-item:nth-child(even) .timeline-content::before {
    left: -20px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .project-card.featured .project-image {
    height: 220px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .projects-grid {
    perspective: none;
  }

  .project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
  }

  #resume-fab {
    transform: translateY(-50%);
    right: 16px;
  }
}

@media screen and (max-width: 768px) {
  .navbar {
    padding: var(--space-3) var(--space-4);
  }

  /* Navigation item visibility for mobile (<= 768px) */
  .desktop-only {
    display: none !important;
    /* Hide desktop-specific items */
  }

  .mobile-only {
    display: list-item !important;
    /* Show mobile-specific items. Use list-item for <li> */
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    padding: var(--space-6) var(--space-4);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: calc(var(--z-navbar) - 1);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links ul {
    flex-direction: column;
    gap: var(--space-5);
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .nav-toggle {
    display: block;
    z-index: var(--z-navbar);
  }

  .hero {
    min-height: 80vh;
  }

  .hero h1 {
    font-size: 2.6rem;
    transform: none;
    text-shadow: 1px 1px 0 var(--gray-300), 2px 2px 4px rgba(0, 0, 0, 0.08);
  }

  .hero h2 {
    font-size: 1.8rem;
    transform: none;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: var(--space-3);
    align-items: center;
  }

  .hero-buttons .btn {
    width: 80%;
    max-width: 300px;
  }

  .skills-group {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    margin-bottom: var(--space-8);
  }

  .experience-box {
    bottom: -30px;
    transform: translateX(-50%) translateZ(0px);
    box-shadow: var(--shadow-lg);
  }

  #resume-fab {
    right: 16px;
    padding: 6px 10px;
  }

  #resume-fab.collapsed {
    width: 40px;
    height: 40px;
    padding: 0;
  }

  .fab-text {
    font-size: 13px;
    margin-left: 8px;
  }

  .eye-container {
    width: 28px;
    height: 20px;
  }
}

@media screen and (max-width: 576px) {
  html {
    font-size: 14px;
  }

  .logo {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero h2 {
    font-size: 1.6rem;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .info-item {
    flex-direction: column;
    gap: var(--space-2);
  }

  .info-title {
    flex: 0 0 auto;
  }

  .project-filters {
    gap: var(--space-2);
  }

  .filter-btn {
    padding: var(--space-2) var(--space-3);
    font-size: 0.9rem;
  }

  .category-selector {
    padding: var(--space-2) var(--space-3);
    font-size: 0.9rem;
  }

  .timeline-content {
    padding: var(--space-3) var(--space-4);
  }

  #resume-fab {
    right: 12px;
    transform: translateY(-50%);
  }

  #resume-fab.collapsed {
    width: 36px;
    height: 36px;
  }

  .eye-container {
    width: 26px;
    height: 18px;
  }
}