/**
 * Template Name: Mahesh Portfolio - v1.0.0
 * Author: Mahesh Koduri
 */

/* Variables */
:root {
  --navy: #2e4053;
  --light-gray: #f7f7f7;
  --deep-green: #228b22;
  --white: #ffffff;
  --transition: all 0.2s ease-in-out;
  --fast-transition: all 0.15s ease-in-out;
}

/* Section Animation Base */
section {
  position: relative;
  z-index: 2;
  background-color: var(--body-bg);
}

section.visible {
  opacity: 1;
  transform: none;
}

/* Loading Screen */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--navy);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-container {
  text-align: center;
  position: relative;
  width: 200px;
  height: 200px;
}

/* Circular Progress */
.loader-progress {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: conic-gradient(var(--deep-green) var(--progress, 0%), transparent 0);
  transition: --progress 1s ease;
}

.loader-progress::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--navy);
  top: 10px;
  left: 10px;
}

/* Logo Container */
.logo-container {
  position: absolute;
  width: 160px;
  height: 160px;
  top: 20px;
  left: 20px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: glow 2s ease-in-out infinite;
}

.loader-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  padding: 10px;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

/* Rotating Circles */
.rotating-circles {
  position: absolute;
  width: 200px;
  height: 200px;
  top: 0;
  left: 0;
  animation: rotate 8s linear infinite;
}

.circle {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--deep-green);
  top: -10px;
  left: 90px;
}

.circle:nth-child(2) {
  transform: rotate(120deg);
  background: var(--white);
}

.circle:nth-child(3) {
  transform: rotate(240deg);
  background: var(--light-gray);
}

.loading-text {
  position: absolute;
  width: 100%;
  text-align: center;
  bottom: -40px;
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.9;
  animation: fadeInOut 2s ease-in-out infinite;
}

.loading-text .dots {
  display: inline-block;
  animation: dotAnimation 1.4s infinite;
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(0.95);
    filter: brightness(1.2);
  }
}

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

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(34, 139, 34, 0.3),
                inset 0 0 20px rgba(34, 139, 34, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(34, 139, 34, 0.5),
                inset 0 0 40px rgba(34, 139, 34, 0.5);
  }
}

@keyframes fadeInOut {
  0%, 100% {
    opacity: 0.5;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@keyframes dotAnimation {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* General */
body {
  font-family: "Open Sans", sans-serif;
  color: var(--navy);
  background-color: var(--light-gray);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

a {
  color: var(--deep-green);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--navy);
}

.section-title {
  text-align: center;
  padding: 27px 0;
}

.section-title h2 {
  font-size: 29px;
  font-weight: 700;
  position: relative;
  margin-bottom: 20px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--deep-green);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

/* Header */
#header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 252px;
  background: var(--navy);
  z-index: 9997;
  transition: var(--transition);
  padding: 18px;
  overflow-y: auto;
}

.profile {
  padding: 15px 0;
  text-align: center;
}

.profile img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.1);
  margin: 0 auto 12px;
  transition: all 0.3s ease;
  border-radius: 50%;
}

.profile img:hover {
  transform: scale(1.05);
  border-color: var(--deep-green);
  box-shadow: 0 0 20px rgba(34, 139, 34, 0.3);
}

.profile h1 {
  font-size: 20px;
  margin: 0;
  padding: 0;
  font-weight: 600;
  text-align: center;
}

.profile h1 a {
  color: var(--white);
  text-decoration: none;
}

.profile .social-links {
  margin-top: 13px;
}

.profile .social-links a {
  font-size: 16px;
  display: inline-block;
  color: var(--white);
  line-height: 1;
  margin: 0 7px;
  transition: var(--transition);
  padding: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.profile .social-links a:hover {
  background: var(--deep-green);
  color: var(--white);
  transform: translateY(-3px);
}

/* Navigation Menu */
.nav-menu {
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.nav-menu ul {
  width: 90%;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-menu .nav-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--light-gray);
  padding: 11px 18px;
  margin-bottom: 13px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  width: 100%;
}

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

.nav-menu .nav-link:hover::before {
  left: 100%;
}

.nav-menu .nav-link i {
  font-size: 20px;
  margin-right: 11px;
  color: var(--deep-green);
  transition: all 0.4s ease;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}

.nav-menu .nav-link span {
  font-weight: 500;
  position: relative;
  flex-grow: 1;
  text-align: left;
}

.nav-menu .nav-link span::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--deep-green);
  transition: width 0.3s ease;
}

.nav-menu .nav-link:hover,
.nav-menu .nav-link.active {
  background: var(--deep-green);
  color: var(--white);
  transform: translateX(8px);
  box-shadow: 0 5px 15px rgba(34, 139, 34, 0.3);
}

.nav-menu .nav-link:hover span::after {
  width: 100%;
}

.nav-menu .nav-link:hover i,
.nav-menu .nav-link.active i {
  color: var(--white);
  transform: scale(1.1) rotate(5deg);
}

/* Hero Section - Faster transition */
#hero {
  width: 100%;
  height: 100vh;
  background: url("../img/hero-bg.jpg") right center;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 85% center;
  background-color: var(--navy);
  position: relative;
  padding: 0;
}

/* Quick fade-in for hero content */
#hero .hero-container {
  position: relative;
  z-index: 2;
  min-width: 300px;
  padding: 0 15px;
  animation: quickFadeIn 0.3s ease-out forwards;
}

/* Animation Keyframes */
@keyframes quickFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#hero:before {
  content: "";
  background: rgba(5, 13, 24, 0.3);
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

#hero h1 {
  margin: 0 0 10px 0;
  font-size: 43px;
  font-weight: 700;
  color: var(--white);
}

#hero p {
  color: var(--white);
  margin-bottom: 45px;
  font-size: 22px;
}

#hero p span {
  color: var(--white);
  border-bottom: 2px solid var(--deep-green);
}

/* Main Content */
#main {
  margin-left: 300px;
  transition: var(--fast-transition);
}

/* About Section */
.about .content h3 {
  font-size: 23px;
  font-weight: 700;
  color: var(--navy);
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.about .content ul strong {
  margin-right: 10px;
  color: var(--deep-green);
}

/* Education Section */
.education {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

/* College Logo and Memory Cards */
.college-logo {
  position: absolute;
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.college-logo img {
  max-width: 280px;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: all 0.5s ease;
  transform-origin: center;
  padding: 10px;
}

.memory-cards {
  position: absolute;
  height: 200px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  z-index: 1;
}

.education-card .col-lg-5,
.education-card .col-md-6 {
  position: relative;
  height: 200px;
  margin-top: 20px;
}

.education-card:hover .college-logo {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
}

.education-card:hover .memory-cards {
  opacity: 1;
  visibility: visible;
  z-index: 3;
}

.memory-card {
  position: absolute;
  width: 140px;
  height: 180px;
  perspective: 1000px;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.memory-card:nth-child(1) {
  transform: translateX(-140px) rotate(-15deg);
}

.memory-card:nth-child(2) {
  transform: translateX(0) rotate(0deg);
}

.memory-card:nth-child(3) {
  transform: translateX(140px) rotate(15deg);
}

.education-card:hover .memory-card:hover {
  transform: translateY(-20px) scale(1.1) rotate(0deg);
  z-index: 4;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

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

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.card-front {
  background: linear-gradient(135deg, var(--deep-green), var(--navy));
  border: 2px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-front::before {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  background: url('../img/Mahesh_Logo (2).png') center/contain no-repeat;
  opacity: 0.2;
}

.card-back {
  transform: rotateY(180deg);
}

.card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memory-card::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--deep-green);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.memory-card:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

@media (max-width: 991px) {
  .memory-cards {
    height: 160px;
  }

  .memory-card {
    width: 120px;
    height: 160px;
  }

  .college-logo img {
    max-width: 220px;
  }
}

@media (max-width: 768px) {
  .memory-cards {
    height: 140px;
  }

  .memory-card {
    width: 100px;
    height: 140px;
  }

  .college-logo img {
    max-width: 180px;
  }
}

/* Rest of the education styles */
.timeline {
  position: relative;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 3px;
  background: var(--deep-green);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.3;
}

.education-card {
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  padding: 27px;
  margin: 27px 0;
  position: relative;
  width: 90%;
  transition: all 0.2s ease;
  min-height: 220px;
}

.education-card:first-child {
  min-height: 280px;
}

.education-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.education-card:nth-child(odd) {
  float: left;
  clear: both;
}

.education-card:nth-child(even) {
  float: right;
  clear: both;
}

.timeline-dot {
  width: 18px;
  height: 18px;
  background: var(--deep-green);
  border-radius: 50%;
  position: absolute;
  right: -50px;
  top: 20px;
  transition: all 0.2s ease;
  box-shadow: 0 0 0 4px rgba(34, 139, 34, 0.2);
}

.education-card:nth-child(even) .timeline-dot {
  left: -50px;
}

.education-card:hover .timeline-dot {
  transform: scale(1.4);
  box-shadow: 0 0 0 6px rgba(34, 139, 34, 0.2);
}

.year {
  display: inline-block;
  padding: 6px 16px;
  background: var(--deep-green);
  color: var(--white);
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 15px;
}

.location, .grade {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  color: #666;
}

.location i, .grade i {
  color: var(--deep-green);
}

.achievements {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.achievements h5 {
  color: var(--deep-green);
  margin-bottom: 15px;
  font-size: 16px;
}

.achievements ul {
  list-style: none;
  padding: 0;
}

.achievements li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
}

.achievements li i {
  color: var(--deep-green);
}

.education-content {
  height: 100%;
}

.education-content .row {
  height: 100%;
}

.college-memories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
}

.memory-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--deep-green);
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  transform: scale(0.9);
  opacity: 0.8;
}

.memory-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.2s ease;
}

.memory-circle:hover {
  transform: scale(1);
  opacity: 1;
}

.memory-circle:hover img {
  transform: scale(1.1);
}

.memory-circle::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--deep-green);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.memory-circle:hover::before {
  opacity: 1;
  visibility: visible;
}

.education-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--navy);
}

.education-card h4 {
  font-size: 18px;
  color: var(--deep-green);
  margin-bottom: 15px;
}

.college-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 5px;
}

.college-icon img {
  max-width: 220px;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: all 0.2s ease;
  opacity: 0.9;
}

/* Specific styles for higher secondary education icon */
.education-card:nth-child(2) .college-icon img {
  max-width: 280px;
  padding: 0;
}

.education-card:hover .college-icon img {
  transform: scale(1.05);
  opacity: 1;
}

@media (max-width: 991px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(
      to bottom,
      transparent,
      var(--deep-green) 15%,
      var(--deep-green) 85%,
      transparent
    );
  }

  .education-card {
    width: 100%;
    margin: 35px 0;
    padding: 30px;
    background: linear-gradient(145deg, var(--white), #f8f9fa);
    box-shadow: 
      0 10px 30px rgba(0, 0, 0, 0.1),
      inset 2px 2px 5px rgba(255, 255, 255, 0.5);
    transform: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .education-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
      0 15px 35px rgba(0, 0, 0, 0.15),
      inset 3px 3px 7px rgba(255, 255, 255, 0.5);
  }

  .education-content {
    position: relative;
    z-index: 1;
  }

  .education-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 15px;
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.3),
      transparent 50%,
      rgba(255, 255, 255, 0.3)
    );
    opacity: 0;
    transition: opacity 0.4s ease;
  }

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

  .timeline-dot {
    left: 50% !important;
    transform: translateX(-50%);
    top: -45px;
    width: 25px;
    height: 25px;
    background: var(--deep-green);
    box-shadow: 
      0 0 0 5px rgba(34, 139, 34, 0.2),
      0 0 15px rgba(34, 139, 34, 0.3);
    transition: all 0.4s ease;
  }

  .education-card:hover .timeline-dot {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 
      0 0 0 8px rgba(34, 139, 34, 0.2),
      0 0 20px rgba(34, 139, 34, 0.4);
  }

  .year {
    display: inline-block;
    padding: 8px 20px;
    background: var(--deep-green);
    color: var(--white);
    border-radius: 25px;
    font-size: 14px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(34, 139, 34, 0.2);
    transform: translateY(0);
    transition: all 0.3s ease;
  }

  .education-card:hover .year {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(34, 139, 34, 0.3);
  }

  .education-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--navy), var(--deep-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
  }

  .education-card:hover h3 {
    transform: scale(1.02);
  }

  .college-icon {
    margin: 25px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    box-shadow: 
      0 5px 15px rgba(0, 0, 0, 0.05),
      inset 2px 2px 5px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
  }

  .education-card:hover .college-icon {
    transform: translateY(-5px);
    box-shadow: 
      0 8px 20px rgba(0, 0, 0, 0.08),
      inset 3px 3px 7px rgba(255, 255, 255, 0.5);
  }

  .location, .grade {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    margin: 5px 10px 5px 0;
    box-shadow: 
      0 3px 10px rgba(0, 0, 0, 0.05),
      inset 1px 1px 3px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
  }

  .education-card:hover .location,
  .education-card:hover .grade {
    transform: translateY(-2px);
    box-shadow: 
      0 5px 15px rgba(0, 0, 0, 0.08),
      inset 2px 2px 5px rgba(255, 255, 255, 0.5);
  }
}

@media (max-width: 576px) {
  .education-card {
    padding: 25px;
    margin: 30px 0;
  }

  .timeline-dot {
    width: 20px;
    height: 20px;
    top: -35px;
  }

  .education-card h3 {
    font-size: 20px;
  }

  .year {
    font-size: 13px;
    padding: 6px 16px;
  }

  .location, .grade {
    padding: 6px 12px;
    font-size: 13px;
  }

  .college-icon {
    margin: 20px 0;
    padding: 15px;
  }
}

/* Skills Section */
.skill-box {
  background: var(--white);
  padding: 27px;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  position: relative;
  overflow: hidden;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  animation: none;
}

.skill-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.skill-box .skill-icon {
  margin-bottom: 20px;
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 
    -5px -5px 10px rgba(255, 255, 255, 0.8),
    5px 5px 10px rgba(0, 0, 0, 0.1);
  transform-style: preserve-3d;
  transform: perspective(800px) rotateX(10deg) rotateY(10deg);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-box .skill-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.5),
    transparent 50%,
    rgba(0, 0, 0, 0.05)
  );
  opacity: 0.5;
  transition: all 0.4s ease;
  transform: translateZ(-1px);
}

.skill-box:hover .skill-icon {
  transform: perspective(800px) rotateX(15deg) rotateY(15deg) translateZ(20px) translateY(-5px);
  box-shadow: 
    -15px -15px 30px rgba(255, 255, 255, 0.8),
    15px 15px 30px rgba(0, 0, 0, 0.2),
    inset -2px -2px 5px rgba(255, 255, 255, 0.7),
    inset 2px 2px 5px rgba(0, 0, 0, 0.05);
}

.skill-box .skill-icon i {
  font-size: 42px;
  color: var(--deep-green);
  transform: translateZ(30px);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-box:hover .skill-icon i {
  transform: translateZ(50px);
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.2));
}

/* Enhanced 3D Layer Effects */
.skill-box .skill-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.3),
    transparent 40%,
    rgba(255, 255, 255, 0.3) 60%,
    rgba(255, 255, 255, 0.3)
  );
  opacity: 0;
  transition: all 0.4s ease;
  transform: translateZ(10px);
}

.skill-box:hover .skill-icon::after {
  opacity: 1;
}

/* Bottom Shadow for Depth */
.skill-box .skill-icon .bottom-shadow {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.1);
  filter: blur(20px);
  opacity: 0;
  transform: translateZ(-40px);
  transition: all 0.4s ease;
}

.skill-box:hover .skill-icon .bottom-shadow {
  opacity: 0.15;
}

.skill-box h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--navy);
  transition: all 0.3s ease;
}

.skill-box:hover h3 {
  transform: scale(1.05);
  color: var(--deep-green);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: auto;
}

.skill-tag {
  padding: 5px 15px;
  background: var(--light-gray);
  border-radius: 20px;
  font-size: 13px;
  color: var(--navy);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.skill-tag:hover {
  background: var(--deep-green);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(34, 139, 34, 0.4);
  animation: tagWave 0.5s ease;
}

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

@keyframes tagWave {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(-3px);
  }
}

/* Projects Section */
.project-card {
  position: relative;
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  height: 100%;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.project-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.3),
    transparent 50%,
    rgba(255, 255, 255, 0.3)
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

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

.project-card img {
  width: 100%;
  height: 225px;
  object-fit: cover;
  transition: all 0.5s ease;
  transform-origin: center;
  filter: brightness(0.95);
}

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

.project-info {
  padding: 28px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  transform-style: preserve-3d;
  background: var(--white);
}

.project-info::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  transform: translateZ(-1px);
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

.project-info h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--navy);
  position: relative;
  padding-bottom: 15px;
  transform: translateZ(20px);
  transition: transform 0.5s ease;
}

.project-card:hover .project-info h4 {
  transform: translateZ(30px);
}

.project-info h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 50px;
  background: var(--deep-green);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover .project-info h4::after {
  width: 100px;
  transform: scaleX(1.2);
}

.project-info p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
  transform: translateZ(10px);
  transition: transform 0.5s ease;
}

.project-card:hover .project-info p {
  transform: translateZ(20px);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: auto;
  padding-bottom: 20px;
  transform: translateZ(15px);
}

.tech-tag {
  font-size: 11px;
  padding: 4px 11px;
  border-radius: 15px;
  background: var(--light-gray);
  color: var(--navy);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.project-card:hover .tech-tag::before {
  left: 100%;
}

.project-links {
  display: flex;
  justify-content: center;
  margin-top: auto;
  transform: translateZ(25px);
  transition: transform 0.5s ease;
}

.project-links .btn {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--deep-green);
  padding: 8px 24px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.project-links .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 ease;
}

.project-links .btn:hover {
  background: var(--deep-green);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.project-links .btn:hover::before {
  left: 100%;
}

.project-links .btn i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.project-links .btn:hover i {
  transform: translateX(3px);
}

@media (max-width: 991px) {
  .project-card {
    transform: none;
  }
  
  .project-card:hover {
    transform: translateY(-10px);
  }
  
  .project-info {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .project-card img {
    height: 200px;
  }
  
  .project-info {
    padding: 20px;
  }
  
  .project-info h4 {
    font-size: 18px;
  }
}

/* Portfolio Section */
.portfolio {
  padding: 60px 0 30px;
  background: var(--light-gray);
}

.portfolio .portfolio-container {
  position: relative;
}

.portfolio .portfolio-item {
  margin-bottom: 30px;
}

.portfolio .portfolio-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.portfolio .portfolio-wrap .static-img,
.portfolio .portfolio-wrap .gif-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio .portfolio-wrap .gif-img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.2s ease-out;
}

.portfolio .portfolio-wrap:hover .static-img {
  transform: scale(1);
}

.portfolio .portfolio-wrap:hover .gif-img {
  opacity: 1;
}

.portfolio .portfolio-links {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: all 0.15s ease-out;
}

.portfolio .portfolio-wrap:hover .portfolio-links {
  opacity: 1;
}

.portfolio-video-btn {
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--deep-green);
  border: none;
  cursor: pointer;
  transition: 0.2s;
}

.portfolio-video-btn i {
  font-size: 28px;
  line-height: 0;
}

.portfolio-video-btn:hover {
  background: var(--white);
  color: var(--deep-green);
  transform: scale(1.1);
}

.portfolio-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: none;
}

.portfolio-video.active {
  display: block;
  z-index: 10;
}

/* Responsive Portfolio */
@media (max-width: 991px) {
  .portfolio .portfolio-wrap {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .portfolio .portfolio-wrap {
    margin-bottom: 15px;
  }
}

@media (max-width: 576px) {
  .portfolio .portfolio-item {
    margin-bottom: 15px;
  }
}

/* Video Modal Styles */
.modal-content {
  background: transparent;
  border: none;
}

.modal-body {
  position: relative;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
}

.btn-close {
  position: absolute;
  right: 15px;
  top: 15px;
  z-index: 1;
  background-color: var(--white);
  opacity: 0.8;
  padding: 8px;
  border-radius: 50%;
}

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

video {
  display: block;
  width: 100%;
  border-radius: 10px;
}

@media (max-width: 767px) {
  .portfolio .portfolio-wrap img {
    height: 200px;
    object-fit: cover;
  }

  .portfolio .portfolio-links a {
    width: 50px;
    height: 50px;
  }

  .portfolio .portfolio-links a i {
    font-size: 24px;
  }
}

/* Contact Section */
.contact {
  padding: 30px 0 60px;
  position: relative;
  overflow: hidden;
}

.contact .info {
  padding: 27px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.contact .info i {
  font-size: 18px;
  color: var(--deep-green);
  float: left;
  width: 40px;
  height: 40px;
  background: var(--light-gray);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  margin-right: 20px;
  transition: var(--fast-transition);
}

.contact .info h4 {
  padding: 0 0 0 60px;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 5px;
}

.contact .info p {
  padding: 0 0 10px 60px;
  margin-bottom: 20px;
  font-size: 14px;
}

.contact .php-email-form {
  padding: 27px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

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

.contact .php-email-form input,
.contact .php-email-form textarea {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 11px 14px;
  font-size: 13px;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--deep-green);
  outline: none;
}

.contact .php-email-form button[type="submit"] {
  background: var(--deep-green);
  border: 0;
  padding: 9px 27px;
  color: var(--white);
  border-radius: 5px;
  transition: var(--fast-transition);
}

.contact .php-email-form button[type="submit"]:hover {
  background: var(--navy);
}

/* Footer */
#footer {
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  text-align: center;
  padding: 27px 0;
  margin-top: auto;
  width: 100%;
}

#footer .container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

#footer .copyright {
  margin: 0;
  text-align: center;
  width: 100%;
}

#footer .copyright strong {
  font-weight: 600;
  display: inline-block;
}

/* Responsive footer adjustments */
@media (max-width: 1200px) {
  #footer .container {
    max-width: 960px;
  }
}

@media (max-width: 991px) {
  #footer .container {
    max-width: 720px;
  }
}

@media (max-width: 768px) {
  #footer .container {
    max-width: 540px;
  }
}

@media (max-width: 576px) {
  #footer .container {
    padding: 0 20px;
  }
}

/* Back to top button */
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--deep-green);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: var(--transition);
}

.back-to-top i {
  font-size: 22px;
  color: var(--white);
  line-height: 0;
}

.back-to-top:hover {
  background: var(--navy);
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/* Mobile Navigation */
.mobile-nav-toggle {
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 9999;
  border: 0;
  font-size: 22px;
  transition: all 0.4s;
  outline: none !important;
  background-color: var(--deep-green);
  color: var(--white);
  width: 36px;
  height: 36px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav-toggle:hover {
  background-color: var(--navy);
  transform: scale(1.05);
}

.mobile-nav-active {
  overflow: hidden;
}

.mobile-nav-active .mobile-nav-toggle {
  right: 15px;
  background-color: var(--deep-green);
}

/* Responsive Navigation */
@media (max-width: 1199px) {
  #header {
    left: -252px;
  }

  #main {
    margin-left: 0;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  #header.nav-active {
    left: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }

  .section-title h2 {
    font-size: 28px;
  }

  #hero h1 {
    font-size: 36px;
  }

  #hero p {
    font-size: 20px;
  }

  .profile img {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 991px) {
  .about .content h3 {
    font-size: 22px;
  }

  .skill-box {
    padding: 20px;
  }

  .skill-box .skill-icon i {
    font-size: 36px;
  }

  .skill-box h3 {
    font-size: 18px;
  }

  .project-card img {
    height: 220px;
  }

  .project-info {
    padding: 20px;
  }

  .project-info h4 {
    font-size: 20px;
  }

  .contact .info h4 {
    font-size: 18px;
  }

  .profile img {
    width: 75px;
    height: 75px;
  }
}

@media (max-width: 768px) {
  #header {
    width: 250px;
    padding: 15px;
  }

  .profile {
    padding: 15px 0;
  }

  .profile img {
    width: 70px;
    height: 70px;
  }

  .profile h1 {
    font-size: 20px;
  }

  .nav-menu {
    padding: 15px 0;
  }

  .nav-menu ul {
    width: 95%;
  }

  .nav-menu .nav-link {
    padding: 10px 15px;
    margin-bottom: 12px;
    font-size: 14px;
  }

  .nav-menu .nav-link i {
    font-size: 20px;
    margin-right: 10px;
  }

  #hero h1 {
    font-size: 28px;
    margin-bottom: 15px;
  }

  #hero p {
    font-size: 18px;
  }

  .section-title {
    padding: 20px 0;
  }

  .section-title h2 {
    font-size: 24px;
  }

  .about .content h3 {
    font-size: 20px;
  }

  .project-card img {
    height: 200px;
  }

  .project-info h4 {
    font-size: 18px;
  }

  .project-info p {
    font-size: 14px;
  }

  .portfolio .portfolio-wrap img {
    height: 200px;
    object-fit: cover;
  }

  .portfolio .portfolio-links a {
    width: 50px;
    height: 50px;
  }

  .portfolio .portfolio-links a i {
    font-size: 24px;
  }

  .contact .info {
    margin-bottom: 30px;
  }
}

@media (max-width: 576px) {
  #header {
    width: 90%;
    left: -90%;
  }

  #header.nav-active {
    left: 0;
  }

  .nav-menu {
    padding: 20px 0 0 0;
  }

  .nav-menu ul {
    width: 100%;
  }

  .nav-menu .nav-link {
    margin-bottom: 10px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .nav-menu .nav-link i {
    font-size: 18px;
    margin-right: 8px;
  }

  .mobile-nav-toggle {
    right: 15px;
    top: 15px;
  }

  #main {
    margin-top: 70px;
  }

  .profile {
    padding: 0;
  }

  .profile img {
    max-width: 80px;
    margin-bottom: 10px;
  }

  .profile h1 {
    font-size: 20px;
  }

  .profile .social-links a {
    font-size: 16px;
    padding: 6px;
    margin: 0 5px;
  }

  #hero {
    height: calc(100vh - 80px);
  }

  #hero h1 {
    font-size: 24px;
    padding: 0 10px;
  }

  #hero p {
    font-size: 16px;
  }

  .section-title h2 {
    font-size: 22px;
  }

  .about .content h3 {
    font-size: 18px;
  }

  .skill-box {
    padding: 15px;
  }

  .skill-box .skill-icon i {
    font-size: 32px;
  }

  .skill-box h3 {
    font-size: 16px;
  }

  .skill-tag {
    font-size: 12px;
    padding: 4px 10px;
  }

  .project-card {
    margin-bottom: 20px;
  }

  .project-card img {
    height: 180px;
  }

  .project-info {
    padding: 15px;
  }

  .project-info h4 {
    font-size: 16px;
  }

  .project-links .btn {
    padding: 6px 15px;
    font-size: 13px;
  }

  .portfolio .portfolio-wrap img {
    height: 180px;
  }

  .portfolio .portfolio-links a {
    width: 45px;
    height: 45px;
  }

  .portfolio .portfolio-links a i {
    font-size: 20px;
  }

  .contact .info {
    padding: 20px;
  }
}

.memories-slideshow {
  position: relative;
  background: rgba(46, 64, 83, 0.85);
  border-radius: 15px;
  overflow: hidden;
  max-height: 85vh;
  margin: 0 auto;
  min-height: 400px;
  backdrop-filter: blur(10px);
}

.memories-slide {
  display: none;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.memories-slide.active {
  display: flex;
  opacity: 1;
  position: relative;
}

.memories-slide img {
  width: auto;
  height: auto;
  max-height: 75vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transform: scale(0.98);
  transition: all 0.4s ease-in-out;
  margin: 0 auto;
}

.slide-caption {
  text-align: center;
  color: var(--white);
  padding: 20px 0 10px;
  font-size: 20px;
  font-weight: 500;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease-in-out 0.2s;
}

.memories-slide.active .slide-caption {
  opacity: 1;
  transform: translateY(0);
}

#memoriesModal {
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  padding: 0 15px;
}

#memoriesModal .modal-dialog {
  max-width: 85vw;
  margin: 2.5rem auto;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 5rem);
}

#memoriesModal .modal-content {
  background: transparent;
  border: none;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  margin: auto;
  width: 100%;
}

#memoriesModal .btn-close {
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 10;
  background-color: var(--white);
  opacity: 0.9;
  padding: 10px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

#memoriesModal .btn-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.slideshow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.slideshow-nav:hover {
  background: var(--deep-green);
  transform: translateY(-50%) scale(1.1);
}

.slideshow-nav.prev {
  left: 25px;
}

.slideshow-nav.next {
  right: 25px;
}

.slideshow-nav i {
  font-size: 28px;
  line-height: 0;
}

@media (max-width: 991px) {
  #memoriesModal .modal-dialog {
    max-width: 95vw;
  }

  .memories-slide {
    padding: 20px;
  }

  .slide-caption {
    font-size: 18px;
    padding: 15px 0 5px;
  }

  .slideshow-nav {
    width: 40px;
    height: 40px;
  }

  .slideshow-nav i {
    font-size: 24px;
  }
}

@media (max-width: 576px) {
  .memories-slide {
    padding: 15px;
  }

  .slide-caption {
    font-size: 16px;
  }

  .slideshow-nav {
    width: 35px;
    height: 35px;
  }

  .slideshow-nav.prev {
    left: 15px;
  }

  .slideshow-nav.next {
    right: 15px;
  }

  .slideshow-nav i {
    font-size: 20px;
  }
}

/* Dragon Container */
.dragon-container {
    display: none;
}

.dragon {
    display: none;
}

/* Remove old curved trail styles */
.curved-trail {
    display: none;
}

.trail-canvas {
    display: none;
}

/* Ensure sections have relative positioning for proper z-indexing */
section {
    position: relative;
    z-index: 2;
    background-color: var(--body-bg);
}

/* Enhanced Hero Section Responsive Styles */
@media (max-width: 1400px) {
  #hero {
    background-position: 90% center;
  }
}

@media (max-width: 1199px) {
  #hero {
    background-attachment: scroll;
    background-position: 95% center;
  }

  #hero .hero-container {
    padding-left: 40px;
  }
}

@media (max-width: 991px) {
  #hero {
    text-align: center;
    padding: 120px 0;
    background-position: 100% center;
    background-size: cover;
  }

  #hero .hero-container {
    padding: 0 20px;
    background: rgba(46, 64, 83, 0.8);
    border-radius: 15px;
    margin: 0 15px;
  }
}

@media (max-width: 767px) {
  #hero {
    padding: 100px 0;
    background-position: 85% center;
    background-size: cover;
  }

  #hero .hero-container {
    padding: 30px 20px;
  }
}

@media (max-width: 575px) {
  #hero {
    height: 100vh;
    padding: 80px 0;
    background-position: 80% center;
    background-size: cover;
  }

  #hero .hero-container {
    padding: 25px 15px;
  }
}

/* Fix for iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
  #hero {
    height: -webkit-fill-available;
    background-attachment: scroll;
  }
}

/* Portfolio Audio States */
.portfolio-wrap {
  cursor: pointer;
  position: relative;
}

.portfolio-wrap::after {
  content: '';
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8 5v14l11-7z"/></svg>');
  background-size: 60%;
  background-position: center;
  background-repeat: no-repeat;
}

.portfolio-wrap.audio-playing::after {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z"/></svg>');
}

.portfolio-wrap:hover::after {
  opacity: 1;
}
