/*===============
  Global Styles
===============*/
:root {
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Playfair Display', serif;
  
  /* Light theme colors - Navy & Baby Blue Scheme */
  --clr-primary-light: #1E3A8A;
  --clr-secondary-light: #3B82F6;
  --clr-accent-light: #60A5FA;
  --clr-bg-light: #F8FAFC;
  --clr-bg-alt-light: #FFFFFF;
  --clr-fg-light: #1E293B;
  --clr-fg-alt-light: #0F172A;
  --clr-gray-light: #64748B;
  
  /* Dark theme colors - Navy & Blue Variations */
  --clr-primary-dark: #60A5FA;
  --clr-secondary-dark: #3B82F6;
  --clr-accent-dark: #2563EB;
  --clr-bg-dark: #0F172A;
  --clr-bg-alt-dark: #1E293B;
  --clr-fg-dark: #F1F5F9;
  --clr-fg-alt-dark: #F8FAFC;
  --clr-gray-dark: #94A3B8;
  
  /* Common variables */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --border-radius-sm: 0.375rem;
  --border-radius: 0.5rem;
  --border-radius-md: 0.75rem;
  --border-radius-lg: 1rem;
  
  --transition-fast: 0.2s ease;
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  --max-width: 1200px;
  --side-nav-width: 6rem;
  --side-nav-width-expanded: 16rem;
  
  /* Z-index layers */
  --z-header: 1000;
  --z-overlay: 100;
  --z-fixed: 50;
  --z-normal: 1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-primary);
}

html {
  font-size: 62.5%; /* 10px = 1rem */
  scroll-behavior: smooth;
  scroll-padding-top: 10rem;
}

body {
  font-size: 1.6rem;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

.light {
  color: var(--clr-fg-light);
  background-color: var(--clr-bg-light);
  --clr-primary: var(--clr-primary-light);
  --clr-secondary: var(--clr-secondary-light);
  --clr-accent: var(--clr-accent-light);
  --clr-bg: var(--clr-bg-light);
  --clr-bg-alt: var(--clr-bg-alt-light);
  --clr-fg: var(--clr-fg-light);
  --clr-fg-alt: var(--clr-fg-alt-light);
  --clr-gray: var(--clr-gray-light);
}

.dark {
  color: var(--clr-fg-dark);
  background-color: var(--clr-bg-dark);
  --clr-primary: var(--clr-primary-dark);
  --clr-secondary: var(--clr-secondary-dark);
  --clr-accent: var(--clr-accent-dark);
  --clr-bg: var(--clr-bg-dark);
  --clr-bg-alt: var(--clr-bg-alt-dark);
  --clr-fg: var(--clr-fg-dark);
  --clr-fg-alt: var(--clr-fg-alt-dark);
  --clr-gray: var(--clr-gray-dark);
}

.main-content {
  margin-left: 0;
  transition: margin-left var(--transition);
}

@media (min-width: 992px) {
  .main-content {
    margin-left: var(--side-nav-width);
  }
}

/*===============
  Typography
===============*/
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--clr-fg-alt);
}

h1 {
  font-size: 6rem;
  font-family: var(--font-secondary);
}

h2 {
  font-size: 4.5rem;
  font-family: var(--font-secondary);
}

h3 {
  font-size: 2.8rem;
}

h4 {
  font-size: 2.2rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--clr-fg);
}

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

a:hover {
  color: var(--clr-secondary);
}

ul {
  list-style-type: none;
}

.section-heading {
  text-align: center;
  margin-bottom: 6rem;
  position: relative;
}

.section-heading::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1.5rem;
  width: 6rem;
  height: 0.4rem;
  background: var(--clr-primary);
  transform: translateX(-50%);
  border-radius: var(--border-radius);
}

.main-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 3rem;
}

.text-reveal {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.text-reveal::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--clr-primary);
  animation: reveal 1.5s ease forwards;
}

@keyframes reveal {
  0% {
    width: 100%;
    left: 0;
  }
  50% {
    width: 100%;
    left: 0;
  }
  100% {
    width: 0;
    left: 100%;
  }
}

/*===============
  Buttons & Links
===============*/
.btn {
  display: inline-block;
  padding: 1.5rem 3rem;
  font-size: 1.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: width var(--transition);
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.btn--primary {
  background-color: var(--clr-primary);
  color: #fff;
  border: none;
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn--primary:active {
  transform: translateY(-1px);
}

.btn--icon {
  padding: 1rem;
  font-size: 2rem;
  background: transparent;
  border: none;
  color: var(--clr-fg);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.btn--icon:hover,
.btn--icon:focus {
  color: var(--clr-primary);
}

.tag {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background-color: rgba(59, 130, 246, 0.1);
  border-radius: 50px;
  margin: 0.3rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--clr-primary);
  transition: all var(--transition-fast);
}

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

/* Fixed Theme Toggle Button */
.theme-toggle-fixed {
  position: fixed;
  top: 2rem;
  right: 2rem;
  width: 4.5rem;
  height: 4.5rem;
  background-color: var(--clr-bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 2000; /* Increased z-index to be above most elements */
  transition: all var(--transition);
}

.theme-toggle-fixed:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

/*===============
  Header & Navigation - Desktop
===============*/
.desktop-header {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--side-nav-width);
  background: var(--clr-bg-alt);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0;
  z-index: var(--z-header);
  transition: width var(--transition);
  overflow: hidden;
}

.desktop-header:hover {
  width: var(--side-nav-width-expanded);
}

.desktop-header .header__logo-container {
  padding: 1.5rem 0;
  margin-bottom: 2rem;
  text-align: center;
}

.side-nav {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

.side-nav__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.side-nav__item {
  width: 100%;
}

.side-nav__link {
  display: flex;
  align-items: center;
  padding: 1.2rem 1.5rem;
  width: 100%;
  color: var(--clr-fg-alt);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.side-nav__link:hover {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--clr-primary);
}

.side-nav__icon {
  font-size: 2rem;
  min-width: 3rem;
  margin-right: 1.5rem;
}

.side-nav__text {
  font-weight: 600;
}

.side-nav__theme-toggle {
  padding: 2rem 0;
  text-align: center;
}

/*===============
  Header & Navigation - Mobile
===============*/
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 8rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: var(--z-header);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.mobile-header.sticky {
  background: var(--clr-bg-alt);
  box-shadow: var(--shadow);
}

.mobile-header__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.mobile-header__main {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header__main-ham-menu-cont {
  display: block;
  cursor: pointer;
}

.header__main-ham-menu {
  width: 3rem;
  height: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.header__main-ham-menu span {
  width: 100%;
  height: 3px;
  background-color: var(--clr-fg-alt);
  border-radius: 5px;
  transition: all var(--transition-fast);
}

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

.header__main-ham-menu.open span:nth-child(2) {
  opacity: 0;
}

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

.header__sm-menu {
  position: absolute;
  top: 8rem;
  left: 0;
  width: 100%;
  background-color: var(--clr-bg-alt);
  box-shadow: var(--shadow);
  height: 0;
  overflow: hidden;
  transition: height var(--transition);
}

.header__sm-menu.open {
  height: 38rem; /* Increased to accommodate Home link */
}

.header__sm-menu-content {
  padding: 3rem 0;
}

.header__sm-menu-link {
  font-size: 2rem;
  text-align: center;
  padding: 2rem 0;
}

.header__sm-menu-link a {
  color: var(--clr-fg-alt);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-weight: 600;
}

.header__sm-menu-link a:hover {
  color: var(--clr-primary);
}

/* Show/hide headers based on screen size */
.desktop-header {
  display: none;
}

.mobile-header {
  display: block;
}

@media (min-width: 992px) {
  .desktop-header {
    display: flex;
  }
  
  .mobile-header {
    display: none;
  }
  
  .theme-toggle-fixed {
    display: none;
  }
}

@media (max-width: 991px) {
  .desktop-header {
    display: none;
  }
  
  .mobile-header {
    display: block;
  }
  
  .theme-toggle-fixed {
    display: flex;
  }
}

/*===============
  Logo
===============*/
.logo-text {
  font-family: var(--font-secondary);
  font-size: 3rem;
  font-weight: 700;
  color: var(--clr-primary);
  transition: color var(--transition-fast);
}

.logo-text:hover {
  color: var(--clr-secondary);
}

/*===============
  Hero Section
===============*/
.home-hero {
  min-height: 100vh;
  padding: 15rem 0 10rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.home-hero__content {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 6rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 3rem;
}

@media (min-width: 992px) {
  .home-hero__content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.home-hero__info {
  flex: 1;
  max-width: 60rem;
  text-align: center;
}

@media (min-width: 992px) {
  .home-hero__info {
    text-align: left;
  }
}

.home-hero__title {
  margin-bottom: 2rem;
  font-size: 6rem;
  line-height: 1.1;
  background: linear-gradient(to right, var(--clr-primary), var(--clr-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.home-hero__subtitle {
  font-size: 3.2rem;
  margin-bottom: 3rem;
  color: var(--clr-accent);
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 992px) {
  .home-hero__subtitle {
    justify-content: flex-start;
  }
}

.profile-tag {
  display: inline-block;
  position: relative;
  transition: all var(--transition-fast);
}

.profile-tag:hover {
  transform: translateY(-3px);
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Profile Card */
.profile-card {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--clr-bg-alt);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

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

.profile-card__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .profile-card__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.profile-card__item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-card__icon {
  font-size: 1.8rem;
  color: var(--clr-primary);
  width: 2rem;
  text-align: center;
}

.profile-card__label {
  font-weight: 600;
  color: var(--clr-fg-alt);
}

.profile-card__value {
  color: var(--clr-fg);
}

.home-hero__description {
  font-size: 1.8rem;
  margin-bottom: 4rem;
  max-width: 50rem;
}

.home-hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 768px) {
  .home-hero__cta {
    flex-direction: row;
  }
}

.home-hero__social {
  display: flex;
  gap: 1.5rem;
}

.home-hero__social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  background-color: var(--clr-bg-alt);
  border-radius: 50%;
  color: var(--clr-fg-alt);
  font-size: 2rem;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.home-hero__social-icon-link:hover {
  color: var(--clr-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.home-hero__image-container {
  flex: 1;
  position: relative;
  max-width: 40rem;
}

.home-hero__image {
  position: relative;
  z-index: 1;
}

.profile-img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

.shape-1, .shape-2 {
  position: absolute;
  z-index: -1;
  border-radius: var(--border-radius);
}

.shape-1 {
  width: 100%;
  height: 100%;
  background-color: var(--clr-primary);
  top: -20px;
  right: -20px;
}

.shape-2 {
  width: 70%;
  height: 70%;
  background-color: var(--clr-secondary);
  bottom: -20px;
  left: -20px;
  opacity: 0.7;
}

.home-hero__mouse-scroll-cont {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
}

.mouse {
  width: 25px;
  height: 40px;
  border: 2px solid var(--clr-fg);
  border-radius: 60px;
  position: relative;
  overflow: hidden;
}

.mouse::before {
  content: '';
  width: 5px;
  height: 5px;
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--clr-fg);
  border-radius: 50%;
  opacity: 1;
  animation: wheel 1.3s infinite;
}

@keyframes wheel {
  to {
    opacity: 0;
    top: 27px;
  }
}

/*===============
  Education Section
===============*/
.education {
  padding: 10rem 0;
  background-color: var(--clr-bg);
}

.education__content {
  padding: 0 1.5rem;
}

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

@media (min-width: 992px) {
  .education__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.education__card {
  background-color: var(--clr-bg-alt);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition-fast);
}

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

.education__card-header {
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid rgba(100, 116, 139, 0.1);
}

.education__logo-container {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.education__logo {
  width: 80%;
  height: auto;
  object-fit: contain;
}

.education__card-header-info {
  flex: 1;
}

.education__degree {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--clr-primary);
}

.education__university {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.education__period {
  font-size: 1.4rem;
  color: var(--clr-gray);
}

.education__card-body {
  padding: 2rem;
}

.education__description {
  margin-bottom: 2rem;
}

/* Center the buttons */
.education__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.education__details-toggle {
  width: 100%;
  max-width: 25rem;
}

.education__details-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  width: 100%;
  background-color: rgba(59, 130, 246, 0.1);
  border-radius: var(--border-radius);
  color: var(--clr-primary);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.education__details-btn:hover {
  background-color: rgba(59, 130, 246, 0.2);
}

.education__details-btn i {
  transition: transform var(--transition-fast);
}

.education__details-btn.active i {
  transform: rotate(180deg);
}

.education__links {
  text-align: center;
}

.education__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.education__link:hover {
  color: var(--clr-secondary);
}

.education__courses {
  display: none;
  padding: 1.5rem;
  background-color: rgba(59, 130, 246, 0.05);
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
}

.education__courses.active {
  display: block;
}

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

@media (min-width: 768px) {
  .education__course-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.education__course-list li {
  position: relative;
  padding-left: 2rem;
  font-size: 1.4rem;
}

.education__course-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--clr-primary);
  font-size: 1.8rem;
}

/*===============
  Experience Section
===============*/
.experience {
  padding: 10rem 0;
  background-color: var(--clr-bg-alt);
}

.timeline {
  position: relative;
  max-width: 100rem;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 3px;
  background-color: var(--clr-primary);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1.5px;
  z-index: 1;
}

.timeline-item {
  position: relative;
  width: 50%;
  margin-bottom: 6rem;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 8rem;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 8rem;
}

.timeline-item__content {
  position: relative;
  padding: 3rem;
  background-color: var(--clr-bg-dark);
  color: var(--clr-fg-dark);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  z-index: 10;
}

.timeline-item__content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}



.timeline-item__icon-container {
  position: absolute;
  width: 10rem;
  height: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--clr-bg);
  border: 4px solid var(--clr-primary);
  border-radius: 50%;
  z-index: 20;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: var(--shadow);
}

.timeline-item:nth-child(odd) .timeline-item__icon-container {
  right: -5rem;
}

.timeline-item:nth-child(even) .timeline-item__icon-container {
  left: -5rem;
}

.timeline-item__icon {
  width: 70%;
  height: 70%;
  object-fit: contain;
  border-radius: 50%;
}

.timeline-item__title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--clr-primary);
}

.timeline-item__period {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--clr-gray);
  margin-bottom: 1.5rem;
}

.timeline-item__description {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  color: var(--clr-gray);
}

.timeline-item__tags {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.timeline-item__link {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  font-size: 1.8rem;
  color: var(--clr-gray);
  transition: color var(--transition-fast);
}

.timeline-item__link:hover {
  color: var(--clr-primary);
}

@media (max-width: 992px) {
  .timeline::after {
    left: 40px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 10rem;
    padding-right: 0;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  

  
  .timeline-item:nth-child(odd) .timeline-item__icon-container,
  .timeline-item:nth-child(even) .timeline-item__icon-container {
    left: 10px;
    right: auto;
  }
}

/*===============
  Projects Section
===============*/
.projects {
  padding: 10rem 0;
  background-color: var(--clr-bg);
}

.projects__category {
  margin-bottom: 6rem;
}

.projects__category:last-child {
  margin-bottom: 0;
}

.projects__category-title {
  font-size: 3rem;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--clr-primary);
}

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

@media (min-width: 768px) {
  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .projects__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  height: 100%;
  background: var(--clr-bg-alt);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition-fast);
  position: relative;
}

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

.project-card__content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card__title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--clr-primary);
}

.project-card__description {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--clr-fg);
  flex: 1;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.project-card__links {
  display: flex;
  justify-content: center;
}

.project-card__link {
  font-size: 2.5rem;
  color: var(--clr-gray);
  transition: color var(--transition-fast), transform var(--transition-fast);
  padding: 1rem;
}

.project-card__link:hover {
  color: var(--clr-primary);
  transform: translateY(-3px);
}

/*===============
  Skills Section
===============*/
.skills {
  padding: 10rem 0;
  background-color: var(--clr-bg-alt);
}

.skills__content {
  max-width: 114rem;
  margin: 0 auto;
}

.skills__categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5rem;
  max-width: 100%;
}

@media (min-width: 992px) {
  .skills__categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

.skills__category {
  padding: 3rem;
  background-color: var(--clr-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition-fast);
}

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

.skills__category-title {
  font-size: 2.4rem;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--clr-primary);
}

.skills__category-items {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.skills__item {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.skills__item-icon {
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: var(--clr-primary);
  background-color: rgba(59, 130, 246, 0.1);
  border-radius: 50%;
}

.skills__item-info {
  flex: 1;
}

.skills__item-name {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.skills__item-level {
  width: 100%;
  height: 0.8rem;
  background-color: rgba(59, 130, 246, 0.1);
  border-radius: 5rem;
  overflow: hidden;
}

.skills__item-level-bar {
  height: 100%;
  background-color: var(--clr-primary);
  border-radius: 5rem;
  width: 0%;
  transition: width 1.5s ease;
}

/*===============
  Gallery Section
===============*/
.gallery {
  padding: 10rem 0;
  background-color: var(--clr-bg);
  overflow: hidden;
  position: relative;
}

.gallery__subheading {
  text-align: center;
  font-size: 1.8rem;
  margin-top: -3rem;
  margin-bottom: 4rem;
  color: var(--clr-gray);
  font-style: italic;
}

.gallery__controls {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.gallery__random-btn {
  padding: 1rem 2rem;
  background-color: var(--clr-secondary);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1.4rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.gallery__random-btn:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.gallery__container {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  margin: 0 auto;
  max-width: 1400px;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  background-color: rgba(var(--clr-primary-rgb), 0.05);
}

/* Grid View Styles */
.gallery__grid-container {
  position: absolute;
  width: 100%;
  height: 100%;
  display: none;
  gap: 0.8rem;
  padding: 0.8rem;
  overflow-y: auto;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-auto-rows: 200px;
}

.gallery__grid-container.active {
  display: grid;
}

.gallery__grid-item {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery__grid-item:hover {
  transform: scale(1.02);
  z-index: 2;
  box-shadow: var(--shadow);
}

.gallery__grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery__grid-item:hover img {
  transform: scale(1.1);
}

/* Fullscreen View Styles */
.gallery__fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.gallery__fullscreen.active {
  opacity: 1;
  visibility: visible;
}

.gallery__fullscreen-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.gallery__fullscreen-img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--border-radius);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
  object-fit: contain;
}

.gallery__fullscreen-close,
.gallery__fullscreen-prev,
.gallery__fullscreen-next {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.gallery__fullscreen-close:hover,
.gallery__fullscreen-prev:hover,
.gallery__fullscreen-next:hover {
  background-color: var(--clr-primary);
}

.gallery__fullscreen-close {
  top: -2.5rem;
  right: -2.5rem;
}

.gallery__fullscreen-prev {
  left: -2.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.gallery__fullscreen-next {
  right: -2.5rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Image Loading Animation */
.gallery__loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--clr-bg-alt);
  z-index: 5;
  transition: opacity 0.5s ease;
}

.gallery__loading-spinner {
  width: 6rem;
  height: 6rem;
  border: 4px solid rgba(var(--clr-primary-rgb), 0.3);
  border-top-color: var(--clr-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 2rem;
}

.gallery__loading-text {
  font-size: 1.8rem;
  color: var(--clr-primary);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Media Queries */
@media screen and (max-width: 768px) {
  .gallery__container {
    height: 50vh;
  }
  
  .gallery__grid-container {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .gallery__fullscreen-prev,
  .gallery__fullscreen-next {
    width: 4rem;
    height: 4rem;
    font-size: 1.6rem;
  }
}

@media screen and (max-width: 576px) {
  .gallery__controls {
    flex-wrap: wrap;
  }
  
  .gallery__grid-container {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

/*===============
  Footer
===============*/
.footer {
  padding: 5rem 0;
  background-color: var(--clr-bg-alt);
  border-top: 1px solid rgba(100, 116, 139, 0.1);
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer__logo {
  margin-bottom: 1rem;
}

.footer__social {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__social-link {
  font-size: 2.2rem;
  color: var(--clr-gray);
  transition: color var(--transition-fast);
}

.footer__social-link:hover {
  color: var(--clr-primary);
}

.footer__copyright {
  font-size: 1.4rem;
  color: var(--clr-gray);
  text-align: center;
}

/*===============
  Scroll Top Button
===============*/
.scroll-top-btn {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  width: 5rem;
  height: 5rem;
  background-color: var(--clr-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: var(--z-fixed);
}

.scroll-top-btn.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background-color: var(--clr-secondary);
  transform: translateY(-3px);
}

/*===============
  Media Queries
===============*/
@media screen and (max-width: 1200px) {
  .home-hero__title {
    font-size: 5rem;
  }
  
  .home-hero__subtitle {
    font-size: 2.8rem;
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 55%;
  }
  
  .section-heading {
    font-size: 3.5rem;
  }
}

@media screen and (max-width: 576px) {
  .home-hero__title {
    font-size: 4rem;
  }
  
  .home-hero__subtitle {
    font-size: 2.4rem;
  }
  
  .education__card-header {
    flex-direction: column;
    text-align: center;
  }
}

/*===============
  Animations
===============*/
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

/*===============
  Preloader
===============*/
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--clr-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader {
  width: 5rem;
  height: 5rem;
  border: 3px solid rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  border-top-color: var(--clr-primary);
  animation: spin 1s ease-in-out infinite;
}

/*===============
  GLightbox Customization
===============*/
.glightbox-clean .gclose {
  background-color: var(--clr-primary);
}

.glightbox-clean .gnext, 
.glightbox-clean .gprev {
  background-color: var(--clr-primary);
}

/* Gallery Preview Section - Add this to your styles.css */

.gallery-preview {
  padding: 10rem 0;
  background-color: var(--clr-bg-alt);
}

.gallery-preview__description {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 4rem;
  color: var(--clr-gray);
  font-style: italic;
}

.gallery-preview__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

.gallery-preview__images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 80rem;
  width: 100%;
}

.gallery-preview__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
}

.gallery-preview__image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    rgba(59, 130, 246, 0.1) 0%, 
    rgba(96, 165, 250, 0.1) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 1;
}

.gallery-preview__image:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.gallery-preview__image:hover::before {
  opacity: 1;
}

.gallery-preview__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

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

.gallery-preview__cta {
  text-align: center;
}

.gallery-preview__btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.8rem 3.5rem;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
  border: none;
  position: relative;
  overflow: hidden;
}

.gallery-preview__btn::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.5s;
}

.gallery-preview__btn:hover::before {
  left: 100%;
}

.gallery-preview__note {
  font-size: 1.4rem;
  color: var(--clr-gray);
  margin: 0;
}

/* Responsive design for gallery preview */
@media (max-width: 768px) {
  .gallery-preview__images {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 40rem;
  }
  
  .gallery-preview__btn {
    padding: 1.5rem 2.5rem;
    font-size: 1.6rem;
  }
}

@media (max-width: 992px) and (min-width: 769px) {
  .gallery-preview__images {
    grid-template-columns: repeat(2, 1fr);
  }
}