@import url(https://fonts.googleapis.com/css?family=Bitter:400,700);
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* CSS Variables for easy color management - Updated Colors */
:root {
  --primary-color: #1a1a2e;
  --secondary-color: #16213e;
  --accent-color: #0f3460;
  --highlight-color: #e94560;
  --text-light: #ffffff;
  --text-dark: #1a1a2e;
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.25);
  --shadow-light: 0 8px 32px rgba(31, 38, 135, 0.37);
  --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* Animated Background - Updated Colors */
body {
  background: linear-gradient(-45deg, #1a1a2e, #16213e, #0f3460, #e94560);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: var(--text-light);
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  min-height: 100vh;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Glassmorphism Effect - Enhanced */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--shadow-light);
}

/* Enhanced Navbar - Fixed Mobile Version */
.navbar {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-bottom: 2px solid rgba(233, 69, 96, 0.3);
  padding: 8px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.navbar:hover {
  background: rgba(26, 26, 46, 0.98);
  border-bottom: 2px solid rgba(233, 69, 96, 0.6);
  box-shadow: 0 12px 40px rgba(233, 69, 96, 0.2);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(45deg, #e94560, #0f3460, #16213e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logoGlow 3s ease-in-out infinite alternate;
  position: relative;
  overflow: hidden;
}

.logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(233, 69, 96, 0.3), transparent);
  transition: left 0.6s ease;
}

.logo:hover::before {
  left: 100%;
}

@keyframes logoGlow {
  from { 
    filter: drop-shadow(0 0 10px rgba(233, 69, 96, 0.6));
    transform: scale(1);
  }
  to { 
    filter: drop-shadow(0 0 25px rgba(15, 52, 96, 0.9));
    transform: scale(1.05);
  }
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 25px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}

.nav-links li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(233, 69, 96, 0.4), transparent);
  transition: left 0.6s ease;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(45deg, #e94560, #0f3460);
  transition: all 0.4s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-links li a:hover::before {
  left: 100%;
}

.nav-links li a:hover::after {
  width: 80%;
}

.nav-links li a:hover {
  background: linear-gradient(135deg, #e94560, #0f3460);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(233, 69, 96, 0.4);
  color: white;
  border-color: rgba(233, 69, 96, 0.5);
}

.nav-links li a i {
  font-size: 1rem;
  transition: all 0.3s ease;
}

.nav-links li a:hover i {
  transform: scale(1.2) rotate(5deg);
  color: #ffffff;
}

/* Active state for navigation */
.nav-links li a.active {
  background: linear-gradient(135deg, #e94560, #0f3460);
  color: white;
  box-shadow: 0 8px 25px rgba(233, 69, 96, 0.3);
  border-color: rgba(233, 69, 96, 0.5);
}

/* Enhanced Header */
.header {
  background: rgba(26, 26, 46, 0.8);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 30px;
  margin: 100px 20px 40px;
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.header .container {
  position: relative;
  z-index: 2;
}

.animated-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(45deg, #e94560, #0f3460, #16213e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGlow 3s ease-in-out infinite alternate;
  text-shadow: 0 0 30px rgba(233, 69, 96, 0.5);
}

@keyframes titleGlow {
  from { filter: drop-shadow(0 0 15px rgba(233, 69, 96, 0.6)); }
  to { filter: drop-shadow(0 0 35px rgba(15, 52, 96, 0.9)); }
}

.subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  opacity: 0.95;
  font-weight: 400;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.btn {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(45deg, #e94560, #0f3460);
  color: var(--text-light);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(233, 69, 96, 0.6);
  background: linear-gradient(45deg, #0f3460, #e94560);
}

/* Enhanced Sections */
section {
  margin: 40px 20px;
  padding: 40px;
  border-radius: 30px;
  background: rgba(26, 26, 46, 0.8);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
}

section:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
  background: rgba(26, 26, 46, 0.9);
}

section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  background: linear-gradient(45deg, #e94560, #0f3460);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(233, 69, 96, 0.3);
}

/* Enhanced Projects Section */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.project {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.project::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e94560, #0f3460, #16213e);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.project:hover::before {
  transform: scaleX(1);
}

.project:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(233, 69, 96, 0.4);
  background: rgba(255, 255, 255, 0.2);
}

.project img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.project:hover img {
  transform: scale(1.08);
}

.project h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-light);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.project p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  font-size: 1rem;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Enhanced Contact Form */
.contact-form {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 25px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-light);
}

.contact-form label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--text-light);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 18px 25px;
  margin-bottom: 25px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  color: var(--text-light);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  font-weight: 500;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #e94560;
  box-shadow: 0 0 25px rgba(233, 69, 96, 0.4);
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.contact-form textarea {
  height: 140px;
  resize: vertical;
}

.contact-form button {
  width: 100%;
  padding: 18px;
  background: linear-gradient(45deg, #e94560, #0f3460);
  color: var(--text-light);
  border: none;
  border-radius: 15px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);
}

.contact-form button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.contact-form button:hover::before {
  left: 100%;
}

.contact-form button:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(233, 69, 96, 0.6);
  background: linear-gradient(45deg, #0f3460, #e94560);
}

/* Enhanced Education Section */
.campus {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 25px;
  padding: 35px;
  margin: 35px 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.campus::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e94560, #0f3460, #16213e);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.campus:hover::before {
  transform: scaleX(1);
}

.campus:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(233, 69, 96, 0.4);
  background: rgba(255, 255, 255, 0.2);
}

.campus-img {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.campus:hover .campus-img {
  transform: scale(1.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.campus-info h3 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-light);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.campus-info p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: 25px;
  font-size: 1.1rem;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Social Icons Enhancement */
.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 50%;
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
}

.social-icons a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(233, 69, 96, 0.3), transparent);
  transition: left 0.6s ease;
}

.social-icons a:hover::before {
  left: 100%;
}

.social-icons a:hover {
  background: linear-gradient(135deg, #e94560, #0f3460);
  transform: translateY(-5px) scale(1.1) rotate(5deg);
  box-shadow: 0 15px 35px rgba(233, 69, 96, 0.5);
  border-color: rgba(233, 69, 96, 0.6);
  color: white;
}

/* Enhanced Language Section */
.language-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-top: 35px;
}

.language {
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.language::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(233, 69, 96, 0.2), transparent);
  transition: left 0.5s;
}

.language:hover::before {
  left: 100%;
}

.language:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(233, 69, 96, 0.4);
  background: rgba(255, 255, 255, 0.2);
}

.language i {
  font-size: 2.2rem;
  margin-bottom: 18px;
  color: #e94560;
  text-shadow: 0 0 15px rgba(233, 69, 96, 0.5);
}

.language h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-light);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.language-level {
  margin-top: 18px;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress {
  height: 100%;
  background: linear-gradient(45deg, #e94560, #0f3460);
  border-radius: 10px;
  transition: width 1s ease;
  animation: progressFill 2s ease-out;
}

@keyframes progressFill {
  from { width: 0; }
  to { width: var(--progress-width); }
}

.language-level span {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Enhanced Skills Section - Complete Design */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.skill {
  text-align: center;
  padding: 25px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(233, 69, 96, 0.2), transparent);
  transition: left 0.5s;
}

.skill:hover::before {
  left: 100%;
}

.skill:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(233, 69, 96, 0.4);
  background: rgba(255, 255, 255, 0.2);
}

.skill img {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.skill:hover img {
  transform: scale(1.15) rotate(8deg);
}

.skill p {
  font-weight: 600;
  color: var(--text-light);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  margin: 0;
  font-size: 1rem;
}

.skill:hover p {
  color: #e94560;
  text-shadow: 0 0 15px rgba(233, 69, 96, 0.8);
}

/* Enhanced Skill Tooltips */

.skill-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: rgba(26, 26, 46, 0.95);
  color: white;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
  pointer-events: none;
  border: 1px solid rgba(233, 69, 96, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.skill-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(26, 26, 46, 0.95);
}

/* Enhanced Project Section */
.project-image {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 46, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.project:hover .project-overlay {
  opacity: 1;
}

.project-links {
  display: flex;
  gap: 20px;
}

.project-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  background: linear-gradient(45deg, #e94560, #0f3460);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  transform: scale(0);
  font-size: 1.3rem;
  box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);
}

.project:hover .project-link {
  transform: scale(1);
}

.project-link:hover {
  transform: scale(1.15);
  box-shadow: 0 12px 30px rgba(233, 69, 96, 0.6);
}

.project-tech {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.tech-tag {
  background: linear-gradient(45deg, #e94560, #0f3460);
  color: white;
  padding: 6px 15px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
}

/* Enhanced Campus Features */
.campus-features {
  display: flex;
  gap: 18px;
  margin: 25px 0;
  flex-wrap: wrap;
  justify-content: center;
}

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15);
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 1rem;
  color: var(--text-light);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  font-weight: 600;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.feature:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(233, 69, 96, 0.3);
}

.feature i {
  color: #e94560;
  font-size: 1.1rem;
}

/* Enhanced Form Groups */
.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--text-light);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.form-group label i {
  color: #e94560;
  font-size: 1.1rem;
}

/* Typing Animation */
.typing-text {
  font-size: 1.4rem;
  margin: 25px 0;
  min-height: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.cursor {
  animation: blink 1s infinite;
  color: #e94560;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(233, 69, 96, 0.8);
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Enhanced About Section */
.about-content {
  margin-bottom: 45px;
}

.about-text p {
  font-size: 1.2rem;
  line-height: 1.9;
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  font-weight: 500;
}

/* Enhanced Section Headers */
section h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 2.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 45px;
  background: linear-gradient(45deg, #e94560, #0f3460);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 25px rgba(233, 69, 96, 0.4);
}

section h2 i {
  font-size: 2.2rem;
  color: #e94560;
  -webkit-text-fill-color: #e94560;
  text-shadow: 0 0 15px rgba(233, 69, 96, 0.6);
}

/* Enhanced Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
  .header {
    margin: 80px 10px 30px;
    padding: 60px 20px;
  }
  
  .animated-title {
    font-size: 2.5rem;
  }
  
  .subtitle {
    font-size: 1.2rem;
  }
  
  section {
    margin: 20px 10px;
    padding: 30px 20px;
  }
  
  .nav-links {
    gap: 15px;
  }
  
  .nav-links li a {
    padding: 10px 18px;
    font-size: 0.9rem;
  }
  
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
  }
  
  .project-grid {
    grid-template-columns: 1fr;
  }

  .language-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .campus-features {
    flex-direction: column;
    align-items: center;
  }
  
  .feature {
    width: 100%;
    justify-content: center;
  }
  
  .project-tech {
    justify-content: center;
  }
  
  .typing-text {
    font-size: 1.1rem;
  }
  
  section h2 {
    font-size: 2rem;
    flex-direction: column;
    gap: 10px;
  }
  
  section h2 i {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .animated-title {
    font-size: 2rem;
  }
  
  .header {
    padding: 40px 15px;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 10px;
  }
  
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-form {
    padding: 20px;
  }

  .language-grid {
    grid-template-columns: 1fr;
  }
  
  .project-links {
    gap: 10px;
  }
  
  .project-link {
    width: 45px;
    height: 45px;
  }
  
  .tech-tag {
    font-size: 0.8rem;
    padding: 4px 10px;
  }
  
  .typing-text {
    font-size: 1rem;
  }
}

/* Floating Animation for Elements */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.skill, .project, .campus {
  animation: float 6s ease-in-out infinite;
}

.skill:nth-child(1) { animation-delay: 0s; }
.skill:nth-child(2) { animation-delay: 0.5s; }
.skill:nth-child(3) { animation-delay: 1s; }
.skill:nth-child(4) { animation-delay: 1.5s; }
.skill:nth-child(5) { animation-delay: 2s; }
.skill:nth-child(6) { animation-delay: 2.5s; }
.skill:nth-child(7) { animation-delay: 3s; }

.language:nth-child(1) { animation-delay: 0s; }
.language:nth-child(2) { animation-delay: 0.3s; }
.language:nth-child(3) { animation-delay: 0.6s; }
.language:nth-child(4) { animation-delay: 0.9s; }

/* Pulse Animation for Buttons */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(233, 69, 96, 0); }
  100% { box-shadow: 0 0 0 0 rgba(233, 69, 96, 0); }
}

.btn {
  animation: pulse 2s infinite;
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(26, 26, 46, 0.3);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #e94560, #0f3460);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #0f3460, #e94560);
}

/* Enhanced Loading States */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 25px;
  height: 25px;
  margin: -12px 0 0 -12px;
  border: 3px solid transparent;
  border-top: 3px solid #e94560;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Enhanced Hover Effects */
.project:hover .project-image img {
  transform: scale(1.12);
}

.campus:hover .campus-img {
  transform: scale(1.08);
}

.skill:hover img {
  transform: scale(1.15) rotate(8deg);
}

/* Enhanced Focus States */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #e94560;
  box-shadow: 0 0 30px rgba(233, 69, 96, 0.5);
  transform: translateY(-3px);
}

/* Enhanced Button States */
.btn:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233, 69, 96, 0.5);
}

/* Remove mobile menu toggle styles */
.mobile-menu-toggle { display: none !important; }

/* Make nav links wrap on small screens instead of dropdown */
.nav-links { flex-wrap: wrap; }
.nav-links li { flex: 1 1 auto; }

@media (max-width: 768px) {
  .nav-links {
    display: flex !important;
    position: static !important;
    width: 100%;
    gap: 10px;
    justify-content: center;
    padding: 10px 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .nav-links li { width: auto; }
  .nav-links li a {
    padding: 8px 12px;
    font-size: 0.95rem;
  }
  body { overflow: auto !important; }
}

/* Navbar scroll effect enhancement */
.navbar.scrolled {
  background: rgba(26, 26, 46, 0.98);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-bottom: 2px solid rgba(233, 69, 96, 0.8);
  box-shadow: 0 15px 50px rgba(233, 69, 96, 0.2);
  padding: 6px 0;
}

/* Responsive navbar */
@media (max-width: 768px) {
  .navbar {
    padding: 6px 0;
  }
  
  .logo {
    font-size: 1.4rem;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(233, 69, 96, 0.3);
    flex-direction: column;
    gap: 0;
    padding: 15px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    animation: slideDown 0.3s ease-out;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    width: 100%;
  }
  
  .nav-links li a {
    padding: 15px 25px;
    font-size: 1.1rem;
    border-radius: 0;
    border: none;
    background: transparent;
    justify-content: center;
    gap: 12px;
    margin: 2px 0;
  }
  
  .nav-links li a:hover {
    background: linear-gradient(135deg, #e94560, #0f3460);
    transform: none;
    box-shadow: none;
    color: white;
  }
  
  .mobile-menu-toggle {
    display: flex;
    position: relative;
    z-index: 2100;
  }
  
  .social-icons {
    gap: 10px;
  }
  
  .social-icons a {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 4px 0;
  }
  
  .logo {
    font-size: 1.2rem;
  }
  
  .nav-links {
    padding: 10px 0;
  }
  
  .nav-links li a {
    padding: 12px 20px;
    font-size: 1rem;
  }
  
  .mobile-menu-toggle {
    padding: 6px;
  }
  
  .mobile-menu-toggle span {
    width: 22px;
    height: 2px;
  }
  
  .social-icons {
    gap: 8px;
  }
  
  .social-icons a {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}

@media (max-width: 360px) {
  .navbar .container {
    padding: 0 10px;
  }
  
  .logo {
    font-size: 1.1rem;
  }
  
  .nav-links li a {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  
  .social-icons a {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
  
  .mobile-menu-toggle span {
    width: 20px;
    height: 2px;
  }
}

/* Mobile menu animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Desktop responsive adjustments */
@media (max-width: 768px) {
  .header {
    margin: 80px 10px 30px;
    padding: 60px 20px;
  }
  
  .animated-title {
    font-size: 2.5rem;
  }
  
  .subtitle {
    font-size: 1.2rem;
  }
  
  section {
    margin: 20px 10px;
    padding: 30px 20px;
  }
  
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
  }
  
  .project-grid {
    grid-template-columns: 1fr;
  }

  .language-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .campus-features {
    flex-direction: column;
    align-items: center;
  }
  
  .feature {
    width: 100%;
    justify-content: center;
  }
  
  .project-tech {
    justify-content: center;
  }
  
  .typing-text {
    font-size: 1.1rem;
  }
  
  section h2 {
    font-size: 2rem;
    flex-direction: column;
    gap: 10px;
  }
  
  section h2 i {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .animated-title {
    font-size: 2rem;
  }
  
  .header {
    padding: 40px 15px;
  }
  
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-form {
    padding: 20px;
  }

  .language-grid {
    grid-template-columns: 1fr;
  }
  
  .project-links {
    gap: 10px;
  }
  
  .project-link {
    width: 45px;
    height: 45px;
  }
  
  .tech-tag {
    font-size: 0.8rem;
    padding: 4px 10px;
  }
  
  .typing-text {
    font-size: 1rem;
  }
}

/* Featured Project Styles */
.featured-project {
  margin-bottom: 50px;
}

.featured-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(45deg, #e94560, #0f3460);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
  z-index: 10;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.project-details {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 30px;
  margin-top: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-details h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-details h4 i {
  color: #e94560;
  animation: iconGlow 2s ease-in-out infinite alternate;
}

@keyframes iconGlow {
  from { filter: drop-shadow(0 0 5px rgba(233, 69, 96, 0.5)); }
  to { filter: drop-shadow(0 0 15px rgba(233, 69, 96, 0.8)); }
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.detail-item {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 15px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.detail-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(233, 69, 96, 0.1), transparent);
  transition: left 0.6s ease;
}

.detail-item:hover::before {
  left: 100%;
}

.detail-item:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 15px 35px rgba(233, 69, 96, 0.3);
  border-color: rgba(233, 69, 96, 0.3);
}

.detail-item h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-item h5 i {
  color: #e94560;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.detail-item:hover h5 i {
  transform: scale(1.2) rotate(5deg);
}

.detail-item p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Capabilities Showcase */
.capabilities-showcase {
  margin-bottom: 50px;
}

.capabilities-showcase h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 30px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: center;
  justify-content: center;
}

.capabilities-showcase h3 i {
  color: #e94560;
  animation: iconGlow 2s ease-in-out infinite alternate;
}

@keyframes iconGlow {
  from { filter: drop-shadow(0 0 5px rgba(233, 69, 96, 0.5)); }
  to { filter: drop-shadow(0 0 15px rgba(233, 69, 96, 0.8)); }
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
}

.capability-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.capability-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(233, 69, 96, 0.1), transparent);
  transition: left 0.6s ease;
}

.capability-item:hover::before {
  left: 100%;
}

.capability-item:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(233, 69, 96, 0.3);
  border-color: rgba(233, 69, 96, 0.4);
}

.capability-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(45deg, #e94560, #0f3460);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: white;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);
}

.capability-item:hover .capability-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 35px rgba(233, 69, 96, 0.6);
}

.capability-item h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.capability-item p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Stagger animation for skill items */
.skill-item:nth-child(1) { animation-delay: 0.1s; }
.skill-item:nth-child(2) { animation-delay: 0.2s; }
.skill-item:nth-child(3) { animation-delay: 0.3s; }
.skill-item:nth-child(4) { animation-delay: 0.4s; }
.skill-item:nth-child(5) { animation-delay: 0.5s; }
.skill-item:nth-child(6) { animation-delay: 0.6s; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }
  
  .skill-item {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .skills-showcase h3 {
    font-size: 1.5rem;
  }
  
  .skill-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .skill-item h4 {
    font-size: 1.1rem;
  }
}

/* Capabilities Section */
.capabilities {
  margin: 40px 20px;
  padding: 40px;
  border-radius: 30px;
  background: rgba(26, 26, 46, 0.8);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
}

.capabilities:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
  background: rgba(26, 26, 46, 0.9);
}

.capabilities h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  background: linear-gradient(45deg, #e94560, #0f3460);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(233, 69, 96, 0.3);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
}

.capability-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.capability-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(233, 69, 96, 0.1), transparent);
  transition: left 0.6s ease;
}

.capability-item:hover::before {
  left: 100%;
}

.capability-item:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(233, 69, 96, 0.3);
  border-color: rgba(233, 69, 96, 0.4);
}

.capability-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(45deg, #e94560, #0f3460);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: white;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);
}

.capability-item:hover .capability-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 35px rgba(233, 69, 96, 0.6);
}

.capability-item h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.capability-item p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Stagger animations */
.capability-item:nth-child(1) { animation-delay: 0.1s; }
.capability-item:nth-child(2) { animation-delay: 0.2s; }
.capability-item:nth-child(3) { animation-delay: 0.3s; }
.capability-item:nth-child(4) { animation-delay: 0.4s; }
.capability-item:nth-child(5) { animation-delay: 0.5s; }
.capability-item:nth-child(6) { animation-delay: 0.6s; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .capability-item {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .capabilities h2 {
    font-size: 2rem;
  }
  
  .capability-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .capability-item h4 {
    font-size: 1.1rem;
  }
}


/* ===== Pro Animations & Effects (Professional Upgrade) ===== */
/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* 3D Tilt Card */
.skill, .project, .capability-item, .campus {
  transform-style: preserve-3d;
  will-change: transform;
  perspective: 800px;
}
.tilt-glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,50%), rgba(233,69,96,0.25), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.skill:hover .tilt-glow,
.project:hover .tilt-glow,
.capability-item:hover .tilt-glow,
.campus:hover .tilt-glow {
  opacity: 1;
}

/* Magnetic buttons */
.btn, .project-link {
  will-change: transform;
  transition: transform 0.2s ease;
}

/* Performance & Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}


/* ===== Animated Title - Pro Look ===== */
.animated-title {
  position: relative;
  background: linear-gradient(90deg, #e94560, #0f3460, #e94560);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: titleGradient 6s linear infinite;
  text-shadow: 0 0 20px rgba(233,69,96,0.25), 0 0 40px rgba(15,52,96,0.25);
  letter-spacing: 1px;
}

@keyframes titleGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.animated-title::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.5) 20%, transparent 40%);
  background-size: 200% 100%;
  animation: titleShimmer 3.5s ease-in-out infinite;
  mix-blend-mode: screen;
  pointer-events: none;
  border-radius: .2em;
}

@keyframes titleShimmer {
  0% { background-position: -150% 0; }
  100% { background-position: 150% 0; }
}

.animated-title span.char {
  display: inline-block;
  will-change: transform, opacity, filter;
}

@media (prefers-reduced-motion: reduce) {
  .animated-title { animation: none; }
  .animated-title::after { display: none; }
}

/* Contact layout fix: constrain width and prevent overflow */
.contact .container {
  max-width: 900px;
}
.contact-form {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  box-sizing: border-box;
}
.contact {
  overflow: hidden;
}
.contact .form-group input,
.contact .form-group textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .contact .container { padding: 0 16px; }
  .contact-form { max-width: 100%; }
}

/* Contact status message */
.contact-status { margin-top: 14px; min-height: 22px; }
.contact-status .ok { color: #6ee7a8; display: inline-flex; align-items:center; gap:8px; }
.contact-status .err { color: #ff7b7b; display: inline-flex; align-items:center; gap:8px; }

@media (max-width: 768px) {
  :root { --navbar-h: 64px; }
  .navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }
  .mobile-menu-toggle { display: flex; position: relative; z-index: 2100; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--navbar-h);
    left: 0;
    right: 0;
    z-index: 2000;
    max-height: calc(100vh - var(--navbar-h));
    overflow-y: auto;
  }
  body.menu-open .nav-links { display: flex; }
  body.menu-open { overflow: hidden; }
}

/* Force-hide navigation on small screens (user request) */
@media (max-width: 768px) {
  .nav-links,
  .nav-links.active,
  body.menu-open .nav-links { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

