/*
 * File: styles.css
 * Purpose: Main stylesheet for Himank Bassi portfolio - pixel-perfect responsive design
 * Done by Rajat Offsure IT
 */

/* ===================================
   CSS VARIABLES
   Done by Rajat Offsure IT
   =================================== */
:root {
  /* Colors */
  --dark-bg: #111217;
  --dark-bg-alt: #1a1a1f;
  --light-bg: #f8f9fb;
  --white: #ffffff;
  --text-primary: #1a1a1f;
  --text-secondary: #666666;
  --text-light: #999999;
  --text-white: #ffffff;

  /* Accent Colors */
  --accent-primary: #0066ff;
  --accent-secondary: #5856d6;
  --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  /* Skill Card Colors - Done by Rajat Offsure IT */
  --skill-pink: #ffd4e5;
  --skill-lime: #e8f5c8;
  --skill-cyan: #d4f1f9;
  --skill-rose: #ffe4e9;
  --skill-yellow: #fff5d4;
  --skill-blue-light: #e8f0ff;
  --skill-green-light: #d8f5e8;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 4rem;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3rem;

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.15);

  /* Layout */
  --sidebar-width: 310px;
  --sidebar-collapsed: 80px;
  --container-max: 1200px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===================================
   BASE RESET & TYPOGRAPHY
   Done by Rajat Offsure IT
   =================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* scroll-behavior: smooth; */  /* Temporarily disabled - handled by JS */
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--light-bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

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

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

ul {
  list-style: none;
}

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

/* Accessibility - Done by Rajat Offsure IT */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-primary);
  color: var(--white);
  padding: var(--space-sm) var(--space-md);
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  top: 0;
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===================================
   LAYOUT - SIDEBAR NAVIGATION
   Done by Rajat Offsure IT
   =================================== */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background-color: var(--dark-bg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base);
}

.sidebar__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-xl) 0;
}

.sidebar__avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* margin-bottom: var(--space-2xl); */
  padding: 0 var(--space-lg);
}

.avatar__image {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 10px solid #D9D9D9;
  background-color: var(--white);
  margin-bottom: var(--space-md);
}

.avatar__name {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-white);
  text-align: center;
  margin: 0;
}

.sidebar__nav {
  flex: 1;
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.nav__link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-xl);
  color: var(--text-light);
  transition: all var(--transition-fast);
  position: relative;
}

.nav__link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--accent-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-white);
  background-color: rgba(255, 255, 255, 0.05);
}

.nav__link.active::before {
  opacity: 1;
}

.nav__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.nav__text {
  font-size: var(--font-size-base);
  font-weight: 500;
}

/* Sidebar Social Icons - Done by Rajat Offsure IT */
.sidebar__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  /* margin-top: var(--space-md); */
}

.social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  transition: all var(--transition-fast);
}

.social__link:hover {
  background-color: var(--accent-primary);
  color: var(--white);
  transform: translateY(-2px);
}

.social__link svg {
  width: 20px;
  height: 20px;
}

.social__icon-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* Mobile Menu Toggle - Done by Rajat Offsure IT */
.sidebar__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-md);
  position: fixed;
  top: var(--space-md);
  right: var(--space-md);
  background-color: var(--dark-bg);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sidebar__toggle:hover {
  background-color: var(--dark-bg-alt);
}

.toggle__bar {
  width: 28px;
  height: 3px;
  background-color: var(--text-white);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Mobile Menu Backdrop - Done by Rajat Offsure IT */
.sidebar__backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.sidebar.is-open .sidebar__backdrop {
  opacity: 1;
}

/* ===================================
   LAYOUT - MAIN CONTENT
   Done by Rajat Offsure IT
   =================================== */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
  position: relative;
  scroll-margin-top: 0;
}

/* Section Background Pattern - Done by Rajat Offsure IT */
.section--bg-pattern {
  background-image: url('../assets/images/source/img1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.section--bg-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(248, 249, 251, 0.98);
  z-index: 0;
}

.section--bg-pattern .container {
  position: relative;
  z-index: 1;
}

/* Section Titles - Done by Rajat Offsure IT */
.section__title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.section__title--center {
  text-align: center;
}

.section__title--white {
  color: var(--text-white);
}

.section__underline {
  width: 60px;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: 2px;
  margin-bottom: var(--space-xl);
}

.section__underline--center {
  margin-left: auto;
  margin-right: auto;
}

/* ===================================
   HERO SECTION
   Done by Rajat Offsure IT
   =================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 1;
}

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

.hero__logo-img {
  width: 150px;
  height: auto;
  display: block;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero__text {
  max-width: 600px;
}

.hero__name {
  font-size: var(--font-size-5xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: #000000;
}

.hero__title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: #000000;
  margin-bottom: var(--space-lg);
}

.hero__description {
  font-size: var(--font-size-base);
  color: #000000;
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.hero__cta {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

/* Buttons - Done by Rajat Offsure IT */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-size-base);
  font-weight: 600;
  font-family: var(--font-heading);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  min-width: 160px;
}

.btn--primary {
  background: #000000;
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: #1a1a1a;
}

.btn--secondary {
  background: var(--white);
  color: #000000;
  border: 2px solid #000000;
}

.btn--secondary:hover {
  background: #000000;
  color: var(--white);
}

/* Hero Circular Diagram - Done by Rajat Offsure IT */
.hero__diagram {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__diagram-img {
  width: 100%;
  max-width: 450px;
  height: auto;
  display: block;
}

.diagram__wrapper {
  position: relative;
  width: 400px;
  height: 400px;
}

.diagram__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  border-radius: var(--radius-full);
  background: var(--white);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.diagram__center-img {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.diagram__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  border: 3px dashed rgba(102, 126, 234, 0.3);
  border-radius: var(--radius-full);
  z-index: 1;
}

/* Orbiting Icons - Done by Rajat Offsure IT */
.diagram__orbit {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--white);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
  z-index: 3;
}

.diagram__orbit--1 { top: 10%; left: 50%; transform: translateX(-50%); }
.diagram__orbit--2 { right: 10%; top: 50%; transform: translateY(-50%); }
.diagram__orbit--3 { bottom: 10%; left: 50%; transform: translateX(-50%); }
.diagram__orbit--4 { left: 10%; top: 50%; transform: translateY(-50%); }

.orbit__icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Hero Decorations - Done by Rajat Offsure IT */
.hero__decoration {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: var(--radius-full);
  opacity: 0.1;
  z-index: 0;
}

.hero__decoration--1 {
  top: 10%;
  right: 5%;
  background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
}

.hero__decoration--2 {
  bottom: 20%;
  left: 10%;
  background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
}

/* ===================================
   ABOUT SECTION
   Done by Rajat Offsure IT
   =================================== */
.about {
  background: var(--white);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about__image-wrapper {
  position: relative;
}

.about__image-decoration {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: var(--skill-cyan);
  border-radius: var(--radius-xl);
  z-index: -1;
}

.about__image {
  width: 100%;
  max-width: 400px;
  /* border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); */
}

.about__text {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.about__dots {
  position: absolute;
  bottom: 40px;
  right: 40px;
  width: 100px;
  height: 100px;
  background-image: radial-gradient(circle, var(--text-light) 2px, transparent 2px);
  background-size: 20px 20px;
  opacity: 0.3;
}

/* ===================================
   SKILLS SECTION
   Done by Rajat Offsure IT
   =================================== */

.skills__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.skill-card {
  background: var(--white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

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

.skill-card__title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
}

/* Skill Card Color Variants - Done by Rajat Offsure IT */
.skill-card--pink { background: var(--skill-pink); }
.skill-card--lime { background: var(--skill-lime); }
.skill-card--cyan { background: var(--skill-cyan); }
.skill-card--rose { background: var(--skill-rose); }
.skill-card--yellow {
  background: linear-gradient(135deg, #FEE4B3 0%, #E7FDE3 27%, #D4F5FC 63%, #E7E0FB 100%);
}
.skill-card--blue-light { background: var(--skill-blue-light); }
.skill-card--green-light { background: var(--skill-green-light); }

/* ===================================
   TOOLS SECTION
   Done by Rajat Offsure IT
   =================================== */

.tools__grid {
  max-width: 800px;
  margin: 0 auto;
}

/* ===================================
   PROJECTS SECTION
   Done by Rajat Offsure IT
   =================================== */
.projects {
  background: var(--light-bg);
}

.project {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2xl);
  align-items: center;
  margin-bottom: var(--space-3xl);
  /* padding: var(--space-xl); */
  /* background: var(--white); */
  /* border-radius: var(--radius-xl); */
  /* box-shadow: var(--shadow-sm); */
}

.project--reverse {
  grid-template-columns: 1.2fr 1fr;
}

.project--reverse .project__content {
  order: 2;
}

.project--reverse .project__image-wrapper {
  order: 1;
}

.project__title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.project__description {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.project__tech {
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  line-height: 1.8;
}

.project__image-wrapper {
  position: relative;
}

.project__image {
  width: 100%;
  border-radius: var(--radius-lg);
  /* box-shadow: var(--shadow-lg); */
  /* border: 3px dotted rgba(102, 126, 234, 0.2); */
  padding: var(--space-sm);
}

/* Project Background Pattern - Done by Rajat Offsure IT */
.project--bg-pattern {
  background-image: url('../assets/images/source/img1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.project--bg-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(248, 249, 251, 0.98);
  z-index: 0;
}

.project--bg-pattern .project__content,
.project--bg-pattern .project__image-wrapper {
  position: relative;
  z-index: 1;
}

/* ===================================
   EDUCATION SECTION
   Done by Rajat Offsure IT
   =================================== */
.education {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  color: #000000;
  overflow: hidden;
}

.education__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.education__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.education__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.education__info {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  display: inline-block;
}

.education .section__title--white {
  color: #ffffff;
}

.education__degree {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: #000000;
}

.education__school {
  color: #ffffff;
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-xs);
  opacity: 0.9;
}

.education__year {
  font-size: var(--font-size-lg);
  opacity: 0.8;
  color: #000000;
}

/* ===================================
   EXPERIENCE SECTION
   Done by Rajat Offsure IT
   =================================== */
.experience {
  background: var(--white);
  position: relative;
}

.experience__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-3xl);
  align-items: center;
}

.experience__illustration {
  display: flex;
  justify-content: center;
}

.experience__image {
  width: 100%;
  max-width: 350px;
}

.experience__role {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: #000000;
}

.experience__company {
  font-size: var(--font-size-lg);
  color: #000000;
  font-weight: 600;
  margin-bottom: var(--space-xl);
}

.experience__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.experience__item {
  position: relative;
  padding-left: var(--space-lg);
  font-size: var(--font-size-base);
  color: #000000;
  line-height: 1.8;
}

.experience__item::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #000000;
  font-size: var(--font-size-xl);
  font-weight: 700;
}

.experience__dots {
  position: absolute;
  bottom: 40px;
  right: 40px;
  width: 100px;
  height: 100px;
  background-image: radial-gradient(circle, var(--text-light) 2px, transparent 2px);
  background-size: 20px 20px;
  opacity: 0.3;
}

/* ===================================
   CONTACT SECTION
   Done by Rajat Offsure IT
   =================================== */

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  max-width: 900px;
  margin: 0 auto;
}

.contact__item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-xl);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

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

.contact__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--skill-blue-light);
  border-radius: var(--radius-md);
}

.contact__icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
}

.contact__icon-img {
  width: 24px;
  height: 24px;
}

.contact__label {
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: var(--space-xs);
}

.contact__link {
  font-size: var(--font-size-base);
  color: var(--accent-primary);
  font-weight: 500;
  word-break: break-all;
}

.contact__link:hover {
  text-decoration: underline;
}

/* ===================================
   FOOTER
   Done by Rajat Offsure IT
   =================================== */
.footer {
  background: #232323;
  color: var(--white);
  padding: var(--space-xl) 0;
  text-align: center;
}

.footer__text {
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-xs);
  opacity: 0.9;
}

.footer__credit {
  font-size: var(--font-size-xs);
  opacity: 0.7;
  font-weight: 500;
}

/* ===================================
   ANIMATIONS
   Done by Rajat Offsure IT
   =================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* ===================================
   RESPONSIVE - TABLET (≤1199px)
   Done by Rajat Offsure IT
   =================================== */
@media (max-width: 1199px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero__diagram {
    order: -1;
  }

  .hero__diagram-img {
    max-width: 350px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

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

  .project--reverse {
    grid-template-columns: 1fr;
  }

  .project--reverse .project__content {
    order: 1;
  }

  .project--reverse .project__image-wrapper {
    order: 2;
  }

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

/* ===================================
   RESPONSIVE - MOBILE (≤767px)
   Done by Rajat Offsure IT
   =================================== */
@media (max-width: 767px) {
  :root {
    --font-size-3xl: 1.75rem;
    --font-size-4xl: 2rem;
    --font-size-5xl: 2.25rem;
  }

  /* Sidebar becomes top header with hamburger */
  .sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: var(--space-md);
  }

  .sidebar__content {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--dark-bg);
    transform: translateX(-100%);
    transition: transform var(--transition-base);
    padding: var(--space-xl) 0;
    z-index: 999;
    overflow-y: auto;
  }

  .sidebar.is-open .sidebar__content {
    transform: translateX(0);
  }

  .sidebar__avatar {
    padding: 0 var(--space-md);
    margin-bottom: var(--space-lg);
  }

  .avatar__image {
    width: 100px;
    height: 100px;
    border: 8px solid #D9D9D9;
  }

  .avatar__name {
    font-size: var(--font-size-base);
  }

  .sidebar__social {
    padding: var(--space-md);
    margin-bottom: var(--space-md);
  }

  .social__link {
    width: 36px;
    height: 36px;
  }

  .social__icon-img {
    width: 40px;
    height: 40px;
  }

  .sidebar__backdrop {
    display: block;
  }

  .sidebar__toggle {
    display: flex;
  }

  .main-content {
    margin-left: 0;
    margin-top: 20px;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .hero__name {
    font-size: var(--font-size-4xl);
  }

  .hero__title {
    font-size: var(--font-size-lg);
  }

  .hero__cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

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

  .hero__diagram {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero__diagram-img {
    max-width: 280px;
    margin: 0 auto;
  }

  .hero__logo {
    display: flex;
    justify-content: center;
  }

  .project {
    padding: var(--space-lg);
  }
}

/* ===================================
   RESPONSIVE - SMALL MOBILE (≤480px)
   Done by Rajat Offsure IT
   =================================== */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .hero__name {
    font-size: var(--font-size-3xl);
  }

  .section__title {
    font-size: var(--font-size-2xl);
  }

  .hero__diagram {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero__diagram-img {
    max-width: 240px;
    margin: 0 auto;
  }

  .hero__logo {
    display: flex;
    justify-content: center;
  }

  .sidebar__content {
    width: 260px;
  }

  .avatar__image {
    width: 80px;
    height: 80px;
    border: 6px solid #D9D9D9;
  }

  .social__link {
    width: 32px;
    height: 32px;
  }

  .social__icon-img {
    width: 32px;
    height: 32px;
  }

  .project {
    padding: var(--space-md);
    margin-bottom: var(--space-2xl);
  }
}

/* Touch device improvements - Done by Rajat Offsure IT */
@media (hover: none) {
  .nav__link:hover,
  .btn:hover,
  .skill-card:hover,
  .contact__item:hover {
    transform: none;
  }

  .nav__link:active {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .btn:active {
    transform: scale(0.98);
  }
}

/* Focus styles for accessibility - Done by Rajat Offsure IT */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Print styles - Done by Rajat Offsure IT */
@media print {
  .sidebar,
  .skip-link {
    display: none;
  }

  .main-content {
    margin-left: 0;
  }

  .section {
    page-break-inside: avoid;
  }
}
