 /* Favicon styles */
link[rel="icon"] {
    border-radius: 50%;
    overflow: hidden;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Basic performance optimizations - keeping it simple */
img {
  max-width: 100%;
  height: auto;
}

/* Remove conflicting will-change properties */
.nav-links,
.work-image,
.profile-image {
  /* will-change removed to fix mobile issues */
}

/* Keep essential animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rotateGlobe {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Remove problematic transform properties */
.navbar,
.section,
.btn,
.get-in-touch-btn {
  /* transform: translateZ(0) removed */
  /* backface-visibility: hidden removed */
}

:root {
  --primary-color: #38bdf8;
  --main-bg-color-dark: #0f172a;
  --navbar-bg-color-dark: #1e293b;
  --main-bg-color-light: #f1f5f9;
  --navbar-bg-color-light: #e0e7ef;
  --main-bg-color: var(--main-bg-color-dark);
  --navbar-bg-color: var(--navbar-bg-color-dark);
}

body {
  background-color: var(--main-bg-color);
  color: #f1f5f9;
  line-height: 1.6;
}

body.light-mode {
  background-color: var(--main-bg-color);
  color: #0f172a;
  transition: background 0.4s, color 0.4s;
}
body.light-mode .navbar {
  background-color: var(--navbar-bg-color);
}
body.light-mode .logo {
  color: #0ea5e9;
}
body.light-mode .nav-links li a {
  color: #0f172a;
}
body.light-mode .nav-links li a:hover {
  color: #0ea5e9;
}
body.light-mode .section,
body.light-mode .service-box,
body.light-mode .achievement-item,
body.light-mode .project {
  background: #fff;
  color: #0f172a;
  border-color: #bae6fd;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.08);
}

/* Light mode text color fixes */
body.light-mode .service-content,
body.light-mode .service-content p,
body.light-mode .achievement-item li,
body.light-mode .service-details p,
body.light-mode .service-details li {
  color: #0f172a;
}

body.light-mode .service-details li:before {
  color: #0ea5e9;
}

body.light-mode .achievement-item li:before {
  color: #0ea5e9;
}
body.light-mode h2, body.light-mode .project-title, body.light-mode .service-box h3 {
  color: #0ea5e9;
}
body.light-mode .btn, body.light-mode .highlight-btn, body.light-mode .see-more-btn, body.light-mode .get-in-touch-btn {
  background: #0ea5e9;
  color: #fff;
}
body.light-mode .btn:hover, body.light-mode .highlight-btn:hover, body.light-mode .see-more-btn:hover, body.light-mode .get-in-touch-btn:hover {
  background: #38bdf8;
  color: #0f172a;
}
body.light-mode #visitor-counter {
  color: #0ea5e9;
}
body.light-mode #language-switcher {
  background: #e0e7ef;
  color: #0ea5e9;
  border: 1px solid #0ea5e9;
}
body.light-mode #language-switcher:focus {
  border: 1.5px solid #38bdf8;
}
body.light-mode #theme-toggle {
  color: #0ea5e9;
}
#theme-toggle {
  margin-left: 1.5rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #38bdf8;
  cursor: pointer;
  transition: color 0.3s;
}
#theme-toggle:hover {
  color: #0ea5e9;
}

/* Mobile adjustments for theme toggle */
@media (max-width: 768px) {
  #theme-toggle {
    display: none !important;
  }
  #theme-toggle-mobile {
    display: block !important;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #38bdf8;
    cursor: pointer;
    z-index: 1100;
  }
}

/* Desktop: hide mobile button */
@media (min-width: 769px) {
  #theme-toggle-mobile {
    display: none !important;
  }
}

/* Mobile adjustments for theme toggle */
@media (max-width: 768px) {
  #theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 20px;
    top: auto;
    z-index: 1002;
    background: rgba(30, 41, 59, 0.9);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid #38bdf8;
    margin-left: 0;
    pointer-events: all;
  }
  
  body.light-mode #theme-toggle {
    background: rgba(224, 231, 239, 0.9);
    border-color: #0ea5e9;
  }
  
  #theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
  }
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--navbar-bg-color);
  padding: 1rem 2rem;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #38bdf8;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  text-decoration: none;
  color: #f1f5f9;
  font-weight: bold;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 5px;
  position: relative;
  z-index: 1;
}

.nav-links li a:hover {
  color: #38bdf8;
}

/* Enhanced hover box for navigation links */
.nav-links li a::before {
  content: attr(data-info);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(0.8);
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.3));
  color: #f1f5f9;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.3);
  z-index: 1000;
  backdrop-filter: blur(5px);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
  }
  50% {
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4);
  }
  100% {
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
  }
}

.nav-links li a:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(5px) scale(1);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .nav-links li a::before {
    display: none;
  }
}

/* Menu toggle button - hidden by default */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #f1f5f9;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
  line-height: 1;
  align-self: center;
}

/* Hero section */
header#hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: url("/image/bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding: 2rem;
}

/* Add an overlay to make text more readable */
#bgcover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.7);
  z-index: 1;
}

/* Ensure content appears above the overlay */
#hero h1, #hero h2, #hero p, #hero a {
  position: relative;
  z-index: 2;
}

#hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
  width: 100%;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#hero h1 span {
  color: #38bdf8;
}

#hero h2 {
  font-size: 1.8rem;
  color: #82d71f;
  text-align: center;
  width: 100%;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#hero .typewriter {
  font-size: 1.4rem;
  color: #f1f5f9;
  margin-bottom: 1.5rem;
  text-align: center;
  width: 100%;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

#hero .btn {
  display: inline-block;
  margin: 0 auto;
  text-align: center;
}

.btn {
  background-color: #38bdf8;
  color: #0f172a;
  padding: 0.75rem 1.5rem;
  border: none;
  text-decoration: none;
  border-radius: 15px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: #0ea5e9;
}

/* Sections */
.section {
  padding: 2rem 2rem;
  max-width: 900px;
  margin: auto;
}

h2 {
  font-size: 2rem;
  color: #7dd3fc;
  margin-bottom: 1rem;
}

ul {
  list-style-type: square;
  padding-left: 1.5rem;
}

.project {
  margin-bottom: 2rem;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}


.skill-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
  transition: transform 0.3s;
}

.skill-card:hover {
  transform: translateY(-5px);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-info {
  padding: 1.5rem;
}

.project-title {
  color: #ccd6f6;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.project-description {
  margin-bottom: 1rem;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-links a {
  color: #64ffda;
  text-decoration: none;
}

/* Project Title Highlight */
.project h3 a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.3));
  padding: 8px 15px;
  border-radius: 10px;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
}

.project h3 a:hover {
  color: #0ea5e9;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.3), rgba(15, 23, 42, 0.4));
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.3);
}

/* Keep other project elements unchanged */
.project p {
  color: #f1f5f9;
  margin: 10px 0;
}

/* Light mode project description text fix */
body.light-mode .project p {
  color: #0f172a;
}

.project .highlight-btn {
  /* Keep the highlight button styling as is */
  background: linear-gradient(145deg, #38bdf8, #0ea5e9);
  color: #0f172a;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

/* Contact section */
#contact {
  text-align: left;
  padding: 2rem;
  max-width: 900px;
  margin: auto;
}

#contact p {
  margin-bottom: 20px;
  text-align: left;
}

/* Social icons container */
.social-icons {
  margin: 30px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 20px;
  max-width: 600px;
}

.social-icons a {
  margin: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
}

/* Icon-based social links (Font Awesome) - circular dark bg, white icon */
.social-icon-link {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.9);
  color: #f1f5f9;
  border: 2px solid rgba(56, 189, 248, 0.3);
  transition: all 0.3s ease;
}

.social-icon-link i {
  font-size: 1.25rem;
}

.social-icon-link:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Brand colors on hover - cursor le jate hi platform ka color dikhe */
.social-icon-link[href*="facebook"]:hover {
  background: #1877F2 !important;
  color: #fff !important;
  border-color: #1877F2 !important;
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.5);
}

.social-icon-link[href*="instagram"]:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important;
  color: #fff !important;
  border-color: #e6683c !important;
  box-shadow: 0 4px 15px rgba(220, 39, 67, 0.5);
}

.social-icon-link[href*="github"]:hover {
  background: #24292e !important;
  color: #fff !important;
  border-color: #24292e !important;
  box-shadow: 0 4px 15px rgba(36, 41, 46, 0.5);
}

.social-icon-link[href*="linkedin"]:hover {
  background: #0A66C2 !important;
  color: #fff !important;
  border-color: #0A66C2 !important;
  box-shadow: 0 4px 15px rgba(10, 102, 194, 0.5);
}

.social-icon-link[href*="youtube"]:hover {
  background: #FF0000 !important;
  color: #fff !important;
  border-color: #FF0000 !important;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.5);
}

.social-icon-link[href*="twitter"]:hover {
  background: #000000 !important;
  color: #fff !important;
  border-color: #000000 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.social-icon-link[href*="snapchat"]:hover {
  background: #FFFC00 !important;
  color: #1a1a1a !important;
  border-color: #FFFC00 !important;
  box-shadow: 0 4px 15px rgba(255, 252, 0, 0.5);
}

.social-icon-link[href*="t.me"]:hover {
  background: #26A5E4 !important;
  color: #fff !important;
  border-color: #26A5E4 !important;
  box-shadow: 0 4px 15px rgba(38, 165, 228, 0.5);
}

body.light-mode .social-icon-link {
  background: rgba(224, 231, 239, 0.95);
  color: #0f172a;
  border-color: rgba(14, 165, 233, 0.4);
}

/* Light mode - hover par bhi same brand colors */
body.light-mode .social-icon-link[href*="facebook"]:hover {
  background: #1877F2 !important;
  color: #fff !important;
  border-color: #1877F2 !important;
}

body.light-mode .social-icon-link[href*="instagram"]:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important;
  color: #fff !important;
  border-color: #e6683c !important;
}

body.light-mode .social-icon-link[href*="github"]:hover {
  background: #24292e !important;
  color: #fff !important;
  border-color: #24292e !important;
}

body.light-mode .social-icon-link[href*="linkedin"]:hover {
  background: #0A66C2 !important;
  color: #fff !important;
  border-color: #0A66C2 !important;
}

body.light-mode .social-icon-link[href*="youtube"]:hover {
  background: #FF0000 !important;
  color: #fff !important;
  border-color: #FF0000 !important;
}

body.light-mode .social-icon-link[href*="twitter"]:hover {
  background: #000000 !important;
  color: #fff !important;
  border-color: #000000 !important;
}

body.light-mode .social-icon-link[href*="snapchat"]:hover {
  background: #FFFC00 !important;
  color: #1a1a1a !important;
  border-color: #FFFC00 !important;
}

body.light-mode .social-icon-link[href*="t.me"]:hover {
  background: #26A5E4 !important;
  color: #fff !important;
  border-color: #26A5E4 !important;
}

.social-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

/* Specific adjustments for YouTube and Telegram icons */
.social-icons a[href*="youtube"] .social-icon,
.social-icons a[href*="telegram"] .social-icon {
  transform: scale(1.2);
}

.social-icons a:hover .social-icon {
  transform: scale(1.1);
}

/* Responsive adjustments for social icons - mobile pe 4+4 grid, sab equal dikhe */
@media (max-width: 768px) {
  .social-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    align-items: center;
    gap: 12px 8px;
    max-width: 100%;
    margin: 24px auto;
  }
  
  .social-icons a {
    width: 40px;
    height: 40px;
  }
  
  .social-icon-link {
    width: 40px !important;
    height: 40px !important;
  }
  
  .social-icon-link i {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .social-icons {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 6px;
    margin: 20px auto;
  }
  
  .social-icons a {
    width: 36px;
    height: 36px;
  }
  
  .social-icon-link {
    width: 36px !important;
    height: 36px !important;
  }
  
  .social-icon-link i {
    font-size: 0.95rem;
  }
}

/* Contact form */
.contact-form {
  max-width: 700px;
  margin: 50px 0;
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: flex-start;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 22px 25px;
  border: 2px solid #333;
  border-radius: 12px;
  font-size: 20px;
  outline: none;
  background: linear-gradient(to right, #1a1a1a, #2a2a2a);
  color: white;
  resize: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0af;
  box-shadow: 0 5px 20px rgba(0, 170, 255, 0.3);
  transform: translateY(-2px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #888;
  opacity: 0.8;
}

.contact-form textarea {
  min-height: 220px;
}

.contact-form button {
  padding: 16px 40px;
  background: linear-gradient(to right, #0af, #08c);
  color: white;
  font-size: 20px;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  align-self: flex-start;
  box-shadow: 0 5px 15px rgba(0, 170, 255, 0.3);
}

.contact-form button:hover {
  background: linear-gradient(to right, #08c, #0af);
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 170, 255, 0.4);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #1e293b;
  color: #94a3b8;
  position: relative;
}

/* Footer Features Layout */
.footer-features {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
}

/* Footer Status */
.footer-status {
  background: rgba(30, 41, 59, 0.9);
  color: #fff;
  padding: 8px 15px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.status-text {
  color: #10b981;
}

/* Footer Buttons */
.footer-btn {
  background: linear-gradient(145deg, #38bdf8, #0ea5e9);
  color: #fff;
  padding: 10px 15px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.footer-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.analytics-btn {
  background: linear-gradient(145deg, #10b981, #059669);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.analytics-btn:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.feedback-btn {
  background: linear-gradient(145deg, #ec4899, #db2777);
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.feedback-btn:hover {
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.chat-btn {
  background: linear-gradient(145deg, #38bdf8, #0ea5e9);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.chat-btn:hover {
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

/* Update Panel Positions for Footer */
.analytics-panel,
.feedback-panel,
.chat-window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2000;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border-radius: 15px;
}

/* Better panel styling */
.analytics-panel,
.feedback-panel,
.chat-window {
  backdrop-filter: blur(10px);
  border: 2px solid rgba(56, 189, 248, 0.3);
  animation: panelSlideIn 0.3s ease-out;
}

@keyframes panelSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.analytics-panel {
  width: 350px;
  height: auto;
  min-height: 350px;
  max-height: 600px;
  display: flex;
  flex-direction: column;
}

.feedback-panel {
  width: 380px;
  height: auto;
  min-height: 400px;
  max-height: 650px;
  display: flex;
  flex-direction: column;
}

.chat-window {
  width: 400px;
  height: 500px;
  max-height: 500px;
  display: flex;
  flex-direction: column;
}

/* Mobile Responsive Footer */
@media (max-width: 768px) {
  .footer-features {
    gap: 15px;
    margin: 15px 0;
  }
  
  .footer-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  
  .footer-status {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  .analytics-panel,
  .feedback-panel,
  .chat-window {
    width: 90%;
    max-width: 320px;
    max-height: 75vh;
  }
  
  .chat-window {
    height: 450px;
  }
  
  .analytics-panel {
    min-height: 300px;
  }
  
  .feedback-panel {
    min-height: 350px;
  }
}

@media (max-width: 480px) {
  .footer-features {
    gap: 10px;
    flex-direction: column;
  }
  
  .footer-btn {
    width: 100%;
    max-width: 200px;
    justify-content: center;
  }
  
  .analytics-panel,
  .feedback-panel,
  .chat-window {
    width: 95%;
    max-width: 280px;
    max-height: 70vh;
  }
  
  .chat-window {
    height: 420px;
  }
  
  .analytics-panel {
    min-height: 280px;
  }
  
  .feedback-panel {
    min-height: 320px;
  }
}

/* Responsive navigation */
@media (max-width: 768px) {
  .navbar {
    align-items: center;
    flex-wrap: nowrap;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    cursor: pointer;
    z-index: 1001;
    padding: 0.35rem;
    line-height: 1;
    min-height: 44px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    background-color: #1e293b;
    flex-direction: column;
    width: 250px;
    height: 100vh;
    padding: 80px 20px 20px;
    border-radius: 0 0 0 8px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
  }

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

  .nav-links li {
    margin: 6px 0 !important;
  }
  
  .nav-links li a {
    display: block;
    padding: 8px 10px !important;
    text-align: left;
    font-size: 16px !important;
    border-radius: 5px;
    transition: all 0.3s ease;
  }
  
  /* Light mode mobile navigation text fix */
  body.light-mode .nav-links li a {
    color: #ffffff;
  }
  
  .nav-links li a:hover {
    background-color: rgba(56, 189, 248, 0.2);
    padding-left: 20px;
  }

  /* Hero background image - mobile pe thoda upper dikhe */
  #hero {
    background-position: center 25%;
  }

  .hero h1,
  #hero h1 {
    font-size: 2.25rem;
  }

  .hero h1 span,
  #hero h1 span {
    color: #38bdf8;
  }

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

  .hero .typewriter,
  #hero .typewriter {
    font-size: 1.3rem;
  }
  
  h2 {
    font-size: 1.9rem;
  }
  
  .section p,
  #about p {
    font-size: 1.05rem;
  }

  .work-image {
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }

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

  h2 {
    font-size: 1.5rem;
  }

  .work-image {
    max-width: 250px;
  }
}

/* see more button */
.centered-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 2rem 0;
}

.see-more-btn {
  display: inline-block;
  background-color: #66cd69;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
}

.see-more-btn:hover {
  background-color: #45a049;
  transform: scale(1.1);
}

.see-more-btn:focus {
  outline: none;
}

/* Accordion styles */
.accordion-btn {
  background-color: #1e293b;
  color: #f1f5f9;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  transition: 0.4s;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Specific styling for Developer Tools button */
#tools-btn {
  background: linear-gradient(145deg, #8b5cf6, #7c3aed);
  color: white;
}

#tools-btn:hover {
  background: linear-gradient(145deg, #7c3aed, #6d28d9);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#tools-btn.active {
  background: linear-gradient(145deg, #6d28d9, #5b21b6);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Web Development button */
#webDev-btn {
  background-color: #38bdf8;
  color: #0f172a;
}

#webDev-btn:hover {
  background-color: #0ea5e9;
}

/* Skills Section Buttons */
#progLang-btn {
  background-color: #82d71f;
  color: #0f172a;
}

#tools-btn {
  background-color: #3b82f6;
  color: #ffffff;
}

/* Hover effects for all skill buttons */
#progLang-btn:hover,
#tools-btn:hover,
#designTools-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* Active state for all skill buttons */
#progLang-btn.active,
#tools-btn.active,
#designTools-btn.active {
  opacity: 0.8;
  transform: translateY(0);
}

/* AI Tools for Developers button */
#designTools-btn {
  background: linear-gradient(135deg, #6e8efb, #a777e3);
  color: #fff !important;
  border: none;
  box-shadow: 0 4px 15px rgba(110, 142, 251, 0.3);
  transition: all 0.3s ease;
}

#designTools-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(110, 142, 251, 0.4);
}

#designTools-btn.active {
  background: linear-gradient(135deg, #5a7df4, #8f5fe3);
  box-shadow: 0 4px 15px rgba(90, 125, 244, 0.4);
}

/* Light mode styles */
body.light-mode #designTools-btn {
  background: linear-gradient(135deg, #6e8efb, #a777e3);
  color: #fff;
}

body.light-mode #designTools-btn:hover {
  box-shadow: 0 6px 20px rgba(110, 142, 251, 0.4);
}

body.light-mode #designTools-btn.active {
  background: linear-gradient(135deg, #5a7df4, #8f5fe3);
}

#progLang-btn:hover {
  background-color: #6ab318;
}

.panel {
  display: none;
  padding: 15px;
  background-color: #1e293b;
  border-radius: 0 0 5px 5px;
  margin-bottom: 10px;
}

.accordion-btn.active {
  background-color: #0f172a;
  color: #f1f5f9;
}

/* Experience buttons */
#exp3-btn {
  background-color: #10b981;
  color: #0f172a;
}

#exp3-btn:hover {
  background-color: #059669;
}

#exp1-btn {
  background-color: #f59e0b;
  color: #0f172a;
}

#exp1-btn:hover {
  background-color: #d97706;
}

#exp2-btn {
  background-color: #ec4899;
  color: #0f172a;
}

#exp2-btn:hover {
  background-color: #db2777;
}

/* Education buttons */
#edu1-btn {
  background-color: #8b5cf6;
  color: #0f172a;
}

#edu1-btn:hover {
  background-color: #7c3aed;
}

#edu2-btn {
  background-color: #06b6d4;
  color: #0f172a;
}

#edu2-btn:hover {
  background-color: #0891b2;
}

#edu3-btn {
  background-color: #14b8a6;
  color: #0f172a;
}

#edu3-btn:hover {
  background-color: #0d9488;
}

/* Add specific spacing for skills, experience, and education sections */
#skills, #experience, #education {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Work section image */
.work-image {
  max-width: 350px;
  width: 100%;
  height: auto;
  border-radius: 15px;
  margin: 20px 0;
  display: block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  float: left;
  margin-right: 20px;
}

/* Clear float after the image */
#work p {
  clear: both;
  margin-top: 20px;
}

.service-box {
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.1), rgba(15, 23, 42, 0.2));
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem auto;
  max-width: 600px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.service-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.3);
  border-color: rgba(56, 189, 248, 0.4);
}

.service-box h3 {
  color: #38bdf8;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service-content {
  color: #f1f5f9;
  line-height: 1.5;
}

.service-content p {
  margin-bottom: 1rem;
  font-size: 1rem;
  text-align: center;
}

.service-details {
  background: rgba(56, 189, 248, 0.05);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.service-details p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  text-align: left;
}

.service-details ul {
  list-style-type: none;
  padding-left: 0;
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
}

.service-details li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.service-details li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #38bdf8;
}

@media (max-width: 768px) {
  .service-box {
    padding: 1.2rem;
    margin: 1rem auto;
  }
  
  .service-box h3 {
    font-size: 1.3rem;
  }
  
  .service-content p {
    font-size: 0.9rem;
  }
  
  .service-details ul {
    grid-template-columns: 1fr;
  }
}

/* Profile Image Section */
#profile-image {
  position: fixed;
  top: 150px;
  right: 30px;
  width: 30%;
  max-width: 300px;
  padding: 1rem;
  z-index: 10;
}

.profile-image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(30, 41, 59, 0.7);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(56, 189, 248, 0.3);
  transition: all 0.3s ease;
}

.profile-image-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.4);
  border-color: rgba(56, 189, 248, 0.6);
}

.profile-image {
  width: 100%;
  height: auto;
  max-height: 300px;
  border-radius: 10px;
  margin-bottom: 1rem;
  object-fit: contain;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background-color: rgba(15, 23, 42, 0.5);
}

.image-caption {
  font-size: 1.2rem;
  font-weight: bold;
  color: #38bdf8;
  text-align: center;
  margin-top: 0.5rem;
}

.image-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.image-btn {
  background-color: rgba(56, 189, 248, 0.2);
  color: #f1f5f9;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 5px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.image-btn:hover {
  background-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

/* Adjust the skills, experience, and education sections to make room for the image */
#skills, #experience, #education {
  width: 65%;
  margin-right: 35%;
  position: relative;
  z-index: 5;
}

/* Responsive adjustments for the profile image */
@media (max-width: 768px) {
  #profile-image {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: 300px;
    padding: 1rem;
    margin: 2rem auto;
  }
  
  #skills, #experience, #education {
    width: 100%;
    margin-right: 0;
  }
  
  .profile-image-container {
    max-width: 300px;
    margin: 0 auto;
  }
}

/* Project Highlight Styles */
.highlight-btn {
  background: linear-gradient(145deg, #38bdf8, #0ea5e9);
  color: #0f172a;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.highlight-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.project.highlighted {
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.15), rgba(15, 23, 42, 0.25));
  border: 2px solid #38bdf8;
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.2);
}

/* Work Section Text Box */
.work-text-box {
  background: linear-gradient(145deg, rgba(63, 181, 232, 0.141), rgba(31, 49, 94, 0.2));
  border: 2px solid #38bdf8;
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
  transition: all 0.3s ease;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.work-text-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.3);
  border-color: #0ea5e9;
}

.work-text-box p {
  color: #f1f5f9;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

.work-text-box a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.3));
  padding: 5px 10px;
  border-radius: 8px;
  display: inline-block;
}

.work-text-box a:hover {
  color: #0ea5e9;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.3), rgba(15, 23, 42, 0.4));
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
}

/* Get in Touch Button */
.get-in-touch-container {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.get-in-touch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  background: linear-gradient(145deg, #38bdf8, #0ea5e9);
  color: #0f172a;
  text-decoration: none;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
  transition: all 0.3s ease;
  border: 3px solid #38bdf8;
  padding: 20px;
  line-height: 1.4;
}

.get-in-touch-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.4);
  background: linear-gradient(145deg, #0ea5e9, #38bdf8);
  border-color: #0ea5e9;
}

@media (max-width: 768px) {
  .get-in-touch-btn {
    width: 85px;
    height: 85px;
    font-size: 0.95rem;
  }
}

/* Skills Progress Section */
.skills-progress {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.skill-item {
  margin-bottom: 25px;
}

.skill-name {
  color: #f1f5f9;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.progress {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  border-radius: 10px;
  position: relative;
  transition: width 1.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  font-weight: bold;
  font-size: 0.9rem;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    rgba(255, 255, 255, 0.1) 100%);
  animation: shine 2s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 768px) {
  .skills-progress {
    padding: 15px;
  }
  
  .skill-name {
    font-size: 1rem;
  }
  
  .progress-bar {
    height: 18px;
  }
}

/* Work Images Container */
.work-images-container {
  position: relative;
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.work-image {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: none;
  margin: 0;
  transition: opacity 0.3s ease;
}

.work-image.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

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

.image-switch-buttons {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  margin-left: 0;
}

.image-switch-btn {
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.3));
  color: #f1f5f9;
  border: 2px solid #38bdf8;
  padding: 10px 25px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  font-size: 1.1rem;
}

.image-switch-btn:hover {
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.3), rgba(15, 23, 42, 0.4));
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
}

.image-switch-btn.active {
  background: linear-gradient(145deg, #38bdf8, #0ea5e9);
  color: #0f172a;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

@media (max-width: 768px) {
  .work-images-container {
    padding: 10px;
    align-items: center;
  }
  
  .work-image {
    max-width: 300px;
  }

  .image-switch-buttons {
    gap: 15px;
    justify-content: center;
  }

  .image-switch-btn {
    padding: 8px 20px;
    font-size: 1rem;
  }
}

/* Soft Skills Section */
#soft-skills .progress {
  background: linear-gradient(90deg, #82d71f, #6ab318);
}

#soft-skills .progress-bar {
  background: rgba(130, 215, 31, 0.1);
}

#soft-skills .skill-name {
  color: #82d71f;
}

#soft-skills .progress::after {
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    rgba(255, 255, 255, 0.1) 100%);
}

#soft-skills h2 {
  color: #82d71f;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  text-shadow: 0 2px 4px rgba(130, 215, 31, 0.3);
}

/* Design Section */
#design .progress {
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
}

#design .progress-bar {
  background: rgba(56, 189, 248, 0.1);
}

#design .skill-name {
  color: #38bdf8;
}

#design .progress::after {
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    rgba(255, 255, 255, 0.1) 100%);
}

#design h2 {
  color: #38bdf8;
  text-align: left;
  margin-bottom: 30px;
  font-size: 2rem;
  text-shadow: 0 2px 4px rgba(56, 189, 248, 0.3);
}

/* Achievements Section */
.achievements-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.achievement-item {
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.1), rgba(15, 23, 42, 0.2));
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.achievement-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.3);
  border-color: rgba(56, 189, 248, 0.4);
}

.achievement-item h3 {
  color: #38bdf8;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.achievement-item ul {
  list-style-type: none;
  padding-left: 0;
}

.achievement-item li {
  color: #f1f5f9;
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 1rem;
  line-height: 1.5;
}

.achievement-item li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #38bdf8;
}

@media (max-width: 768px) {
  .achievements-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .achievement-item {
    padding: 1.2rem;
  }
  
  .achievement-item h3 {
    font-size: 1.2rem;
  }
  
  .achievement-item li {
    font-size: 0.9rem;
  }
}

/* Projects Section Styles */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.1);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.3);
}

.project-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

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

.project-content {
  padding: 20px;
}

.project-content h3 {
  margin: 0 0 10px 0;
  color: #38bdf8;
  font-size: 1.4rem;
}

.project-content p {
  color: #94a3b8;
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.project-btn {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.project-btn:hover {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}

/* Light mode styles */
body.light-mode .project-card {
  background: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

body.light-mode .project-card:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: #bae6fd;
}

body.light-mode .project-content p {
  color: #64748b;
}

/* Responsive styles */
@media (max-width: 768px) {
  .projects-container {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .projects-container {
    grid-template-columns: 1fr;
  }
  
  .project-image {
    height: 180px;
  }
}

/* Add smooth transitions for all interactive elements */
.nav-links li a,
.btn,
.accordion-btn,
.image-btn,
.highlight-btn,
.get-in-touch-btn,
.see-more-btn,
.social-icon,
.work-image,
.profile-image {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Improve image loading and transitions */
.work-image,
.profile-image {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.work-image.active,
.profile-image {
  opacity: 1;
}

/* Optimize animations for better performance */
@keyframes fadeIn {
  from { 
    opacity: 0;
    transform: translateY(10px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

/* Add will-change for better performance */
.nav-links,
.work-image,
.profile-image,
.accordion-btn,
.panel {
  will-change: transform, opacity;
}

/* Improve mobile menu performance */
@media (max-width: 768px) {
  .nav-links {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-links.active {
    transform: translateX(0);
  }
}

/* Optimize scrolling performance */
html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Add loading optimization */
img {
  loading: lazy;
}

/* Projects Section Styling */
#projects {
  padding: 4rem 2rem;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.8));
}

#projects h2 {
  color: #38bdf8;
  font-size: 2.5rem;
  text-align: left;
  margin-bottom: 3rem;
  /* text-transform: uppercase; */
  letter-spacing: 2px;
  position: relative;
  padding-bottom: 15px;
  padding-left: 50px;
  text-shadow: 0 2px 10px rgba(56, 189, 248, 0.3);
}

#projects h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50px;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.3);
}

#projects h2::before {
  content: '✨';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  animation: sparkle 2s infinite;
}

.project {
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.1), rgba(15, 23, 42, 0.2));
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.3);
  border-color: rgba(56, 189, 248, 0.4);
}

.project h3 {
  margin-bottom: 1rem;
}

.project h3 a {
  color: #38bdf8;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.3));
}

.project h3 a:hover {
  color: #0ea5e9;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.3), rgba(15, 23, 42, 0.4));
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
}

.project p {
  color: #f1f5f9;
  font-size: 1.1rem;
  margin: 1rem 0;
  line-height: 1.6;
}

.highlight-btn {
  background: linear-gradient(145deg, #38bdf8, #0ea5e9);
  color: #0f172a;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.highlight-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
  background: linear-gradient(145deg, #0ea5e9, #38bdf8);
}

.project.highlighted {
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.15), rgba(15, 23, 42, 0.25));
  border: 2px solid #38bdf8;
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.2);
}

@media (max-width: 768px) {
  #projects {
    padding: 3rem 1rem;
  }
  
  #projects h2 {
    font-size: 2rem;
    padding-left: 40px;
  }
  
  .project {
    padding: 1.5rem;
  }
  
  .project h3 a {
    font-size: 1.3rem;
  }
  
  .project p {
    font-size: 1rem;
  }
  
  .highlight-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Contact Buttons */
.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 25px;
  border-radius: 15px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.call-btn {
  background: linear-gradient(145deg, #10b981, #059669);
  color: #0f172a;
}

.call-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.message-btn {
  background: linear-gradient(145deg, #3b82f6, #2563eb);
  color: #0f172a;
}

.message-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

@media (max-width: 768px) {
  .contact-buttons {
    flex-direction: row;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
  }
  
  .contact-btn {
    width: auto;
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .contact-buttons {
    flex-direction: row;
    gap: 10px;
  }
  
  .contact-btn {
    padding: 8px 15px;
    font-size: 0.85rem;
  }
}

.whatsapp-float {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 2000;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  padding: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.whatsapp-float:hover {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  background: #1ebe5d;
}

.panel-readmore-left {
  display: block;
  text-align: left;
  margin-top: 10px;
  width: fit-content;
  color: #0f172a;
}

/* Dark mode button text color fix */
body:not(.light-mode) .panel-readmore-left {
  color: #0f172a;
}

@media (max-width: 480px) {
  .panel-readmore-left {
    font-size: 0.95rem;
    padding: 7px 16px !important;
    white-space: nowrap;
    border-radius: 10px;
  }
  .panel-readmore-left.btn {
    padding: 7px 16px;
    font-size: 0.95rem;
  }
}

/* Certificate section links styling */
#certificate ul li a {
  color: #38bdf8;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s, text-decoration 0.2s;
  text-decoration: none;
  font-size: 1.08rem;
  display: inline-block;
}
#certificate ul li a:hover, #certificate ul li a:focus {
  color: #0ea5e9;
  background: rgba(56, 189, 248, 0.12);
  text-decoration: underline;
}

#welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.97);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease;
  opacity: 1;
}

#welcome-overlay.hide {
  opacity: 0;
  pointer-events: none;
}

.welcome-content {
  text-align: center;
  color: #38bdf8;
  font-family: 'Roboto', sans-serif;
  padding: 2rem 3rem;
  border-radius: 18px;
  background: rgba(30,41,59,0.7);
  box-shadow: 0 8px 40px rgba(56,189,248,0.15);
}

.welcome-content h1 {
  font-size: 2.7rem;
  margin-bottom: 1.2rem;
  color: #38bdf8;
  letter-spacing: 2px;
}

.welcome-content h2 {
  font-size: 1.7rem;
  margin: 0.3rem 0;
  color: #f1f5f9;
  font-weight: 400;
}

/* #welcome-message {
  font-size: 2.7rem;
  font-weight: bold;
  background: linear-gradient(90deg, #38bdf8, #82d71f, #f59e0b, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  letter-spacing: 2px;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1);
  will-change: opacity;
  text-shadow: 0 2px 10px rgba(56,189,248,0.2);
} */

#welcome-message.show {
  opacity: 1;
}

#visitor-counter {
  color: #38bdf8;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
}

.admin-panel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0.5rem;
  margin-left: auto;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  background: radial-gradient(circle at top left, #facc15, #38bdf8 45%, #0ea5e9 100%);
  border: 2px solid rgba(248, 250, 252, 0.7);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-panel-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 28px rgba(56, 189, 248, 0.6);
  background: radial-gradient(circle at top left, #facc15, #0ea5e9 35%, #38bdf8 100%);
}

.admin-panel-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.7);
}

.admin-panel-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, rgba(248, 250, 252, 0.6), rgba(248, 250, 252, 0));
  transform: skewX(-20deg);
  opacity: 0;
}

.admin-panel-btn:hover::before {
  opacity: 1;
  animation: adminShine 0.7s forwards;
}

@keyframes adminShine {
  from {
    left: -40%;
  }
  to {
    left: 120%;
  }
}

#language-switcher {
  background: #1e293b;
  color: #38bdf8;
  border: 1px solid #38bdf8;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 1rem;
  margin-left: 1.5rem;
  outline: none;
  transition: border 0.2s;
}
#language-switcher:focus {
  border: 1.5px solid #0ea5e9;
}

#settings-fab {
  position: fixed;
  left: 30px;
  bottom: 30px;
  z-index: 2001;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#settings-icon {
  width: 56px;
  height: 56px;
  background: #1e293b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(56,189,248,0.2);
  color: var(--primary-color, #38bdf8);
  cursor: pointer;
  animation: rotate360 2.5s linear infinite;
  border: 2px solid var(--primary-color, #38bdf8);
  transition: box-shadow 0.3s, border 0.3s;
}
#settings-icon:hover {
  box-shadow: 0 8px 25px rgba(56,189,248,0.3);
  border-color: #0ea5e9;
}
@keyframes rotate360 {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
#color-palette {
  display: none;
  flex-direction: row;
  gap: 12px;
  margin-top: 18px;
  background: rgba(30,41,59,0.95);
  padding: 12px 18px;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(56,189,248,0.15);
  border: 1.5px solid var(--primary-color, #38bdf8);
}
#color-palette.active {
  display: flex;
}
.color-option {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  cursor: pointer;
  transition: transform 0.2s, border 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.color-option:hover, .color-option.selected {
  transform: scale(1.18);
  border: 2.5px solid var(--primary-color, #38bdf8);
}

@media (max-width: 768px) {
  #settings-fab {
    left: 16px;
    bottom: 16px;
  }
  #settings-icon {
    width: 48px;
    height: 48px;
  }
  #color-palette {
    padding: 8px 10px;
    gap: 8px;
  }
  .color-option {
    width: 26px;
    height: 26px;
  }
}

body.light-mode .panel {
  background-color: #fff;
  color: #0f172a;
}

body.light-mode .accordion-btn.active {
  background-color: #e0e7ef;
  color: #0f172a;
}

body.light-mode .skills-progress .skill-name {
  color: #0f172a;
}
body.light-mode .skills-progress .progress {
  color: #0f172a;
}

.globe-icon {
  display: inline-block;
  animation: rotateGlobe 2s linear infinite;
}

@keyframes rotateGlobe {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .nav-links {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 0 0 18px 8px;
    box-shadow: -5px 0 25px rgba(56, 189, 248, 0.15);
    border: 1.5px solid rgba(56, 189, 248, 0.08);
  }
  .nav-links li {
    margin: 6px 0 !important;
  }
  .nav-links li a {
    position: relative;
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.07);
    border-radius: 8px;
    margin: 0 0 2px 0;
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
    font-weight: 600;
    letter-spacing: 0.5px;
    overflow: hidden;
    padding: 8px 10px !important;
    font-size: 16px !important;
  }
  .nav-links li a:hover, .nav-links li a:focus {
    background: linear-gradient(90deg, #38bdf8 0%, #0ea5e9 100%);
    color: #fff !important;
    padding-left: 18px !important;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.12);
  }
  .nav-links li a::before {
    content: '•';
    color: #0ea5e9;
    font-size: 1.1em;
    margin-right: 8px;
    opacity: 0.7;
    transition: color 0.2s;
  }
  .nav-links li a:hover::before, .nav-links li a:focus::before {
    color: #fff;
  }
}

#website .btn {
  background: linear-gradient(90deg, #ec4899 0%, #f472b6 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.15);
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
#website .btn:hover {
  background: linear-gradient(90deg, #f472b6 0%, #ec4899 100%);
  color: #fff;
  transform: scale(1.06);
}

/* Comprehensive Mobile Responsiveness - Consistent across all devices */
/* Base mobile styles for all small devices */
@media (max-width: 480px) {
  /* Prevent horizontal scroll */
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }
  
  /* Navbar improvements - three lines icon same line mein, center align */
  .navbar {
    padding: 0.8rem 1rem;
    flex-wrap: nowrap;
    gap: 0.5rem;
    align-items: center;
  }

  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.3rem;
    line-height: 1;
  }
  
  .logo {
    font-size: 1.3rem;
    white-space: nowrap;
  }
  
  .language-switcher-container {
    margin-left: 0.5rem !important;
    flex-shrink: 0;
  }
  
  #language-switcher {
    padding: 4px 8px !important;
    font-size: 0.9rem !important;
    max-width: 100px;
  }
  
  .globe-icon {
    font-size: 1.2rem !important;
  }
  
  /* Hero section - readable text size on mobile */
  #hero {
    padding: 1rem !important;
    min-height: 100vh;
    height: auto;
    background-position: center 20%;
  }
  
  #hero h1 {
    font-size: 2.2rem !important;
    line-height: 1.3;
    word-wrap: break-word;
    padding: 0 0.5rem;
  }
  
  #hero h2 {
    font-size: 1.5rem !important;
    line-height: 1.4;
    word-wrap: break-word;
    padding: 0 0.5rem;
  }
  
  #hero .typewriter {
    font-size: 1.25rem !important;
    line-height: 1.5;
    word-wrap: break-word;
    padding: 0 0.5rem;
  }
  
  /* Sections - better padding */
  .section {
    padding: 1.5rem 1rem !important;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  h2 {
    font-size: 1.85rem !important;
    line-height: 1.3;
    word-wrap: break-word;
    padding: 0 0.5rem;
  }
  
  /* Text content - readable size, prevent overflow */
  p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.6;
    font-size: 1rem !important;
  }
  
  /* Buttons - readable size */
  .btn {
    padding: 0.75rem 1.4rem !important;
    font-size: 0.95rem !important;
    white-space: nowrap;
    min-width: auto;
    width: auto;
    max-width: 100%;
  }
  
  .get-in-touch-btn {
    width: 80px !important;
    height: 80px !important;
    font-size: 0.95rem !important;
    padding: 10px !important;
    line-height: 1.2;
  }
  
  /* Contact buttons */
  .contact-buttons {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  
  .contact-btn {
    padding: 11px 20px !important;
    font-size: 0.95rem !important;
    white-space: nowrap;
  }
  
  /* Work images */
  .work-image {
    max-width: 100% !important;
    width: 100%;
    height: auto;
  }
  
  .work-images-container {
    padding: 10px !important;
  }
  
  /* Social icons - 4 columns grid, 2 rows equal */
  .social-icons {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    gap: 10px 6px;
  }
  
  .social-icons a {
    width: 38px !important;
    height: 38px !important;
  }
  
  .social-icon-link {
    width: 38px !important;
    height: 38px !important;
  }
  
  /* Contact form */
  .contact-form {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 14px 16px !important;
    font-size: 16px !important;
    width: 100%;
    box-sizing: border-box;
  }
  
  .contact-form button {
    padding: 12px 28px !important;
    font-size: 16px !important;
    width: 100%;
    max-width: 200px;
  }
  
  /* Profile image section */
  #profile-image {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100%;
    margin: 1rem auto;
  }
  
  /* Skills, experience, education sections */
  #skills, #experience, #education {
    width: 100% !important;
    margin-right: 0 !important;
  }
  
  /* Accordion buttons */
  .accordion-btn {
    padding: 14px 12px !important;
    font-size: 1rem !important;
    line-height: 1.4;
    word-wrap: break-word;
  }
  
  /* Project cards */
  .project {
    padding: 1.2rem !important;
    margin-bottom: 1.5rem;
  }
  
  .project h3 a {
    font-size: 1.2rem !important;
    line-height: 1.4;
    word-wrap: break-word;
  }
  
  .project p {
    font-size: 1.05rem !important;
    line-height: 1.6;
  }
  
  /* Website and games grid */
  .website-grid,
  .games-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
    padding: 1rem;
  }
  
  .website-card,
  .game-card {
    padding: 1.2rem !important;
  }
  
  .website-content h3,
  .game-card .btn {
    font-size: 1.2rem !important;
  }
  
  .website-content p {
    font-size: 1rem !important;
  }
  
  /* Service box */
  .service-box {
    padding: 1.2rem !important;
    margin: 1rem auto;
  }
  
  .service-box h3 {
    font-size: 1.35rem !important;
  }
  
  .service-content p {
    font-size: 1rem !important;
    line-height: 1.6;
  }
  
  /* Achievement items */
  .achievement-item {
    padding: 1.2rem !important;
  }
  
  .achievement-item h3 {
    font-size: 1.2rem !important;
  }
  
  .achievement-item li {
    font-size: 1rem !important;
    line-height: 1.6;
  }
  
  /* Skills progress */
  .skill-name {
    font-size: 1.05rem !important;
  }
  
  /* Footer features */
  .footer-features {
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-btn {
    width: 100%;
    max-width: 200px;
    padding: 11px 16px !important;
    font-size: 0.95rem !important;
  }
  
  /* About section & other body text */
  #about p,
  .service-details li,
  .work-text-box p {
    font-size: 1rem !important;
  }
  
  footer h5,
  footer p {
    font-size: 1rem !important;
  }
}

/* Extra small devices (old phones - 320px to 360px) */
@media (max-width: 360px) {
  /* Prevent all horizontal scrolling */
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }
  
  /* Navbar - compact */
  .navbar {
    padding: 0.6rem 0.8rem !important;
    flex-wrap: wrap;
    gap: 0.3rem;
  }
  
  .logo {
    font-size: 1.2rem !important;
    white-space: nowrap;
  }
  
  .language-switcher-container {
    margin-left: 0.3rem !important;
  }
  
  #language-switcher {
    padding: 3px 6px !important;
    font-size: 0.85rem !important;
    max-width: 90px;
  }
  
  .globe-icon {
    font-size: 1.1rem !important;
  }
  
  /* Hero section - readable text on small screens */
  #hero {
    padding: 0.8rem !important;
  }
  
  #hero h1 {
    font-size: 1.85rem !important;
    line-height: 1.2;
    margin-bottom: 0.8rem;
  }
  
  #hero h2 {
    font-size: 1.35rem !important;
    line-height: 1.3;
  }
  
  #hero .typewriter {
    font-size: 1.1rem !important;
    line-height: 1.4;
    margin-bottom: 1rem;
  }
  
  /* Sections - minimal padding */
  .section {
    padding: 1.2rem 0.8rem !important;
  }
  
  h2 {
    font-size: 1.6rem !important;
    line-height: 1.3;
    margin-bottom: 0.8rem;
  }
  
  /* All text - readable size */
  p, li, span {
    font-size: 0.95rem !important;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Buttons - touchable, readable */
  .btn {
    padding: 0.65rem 1.2rem !important;
    font-size: 0.9rem !important;
    min-height: 44px;
  }
  
  .get-in-touch-btn {
    width: 74px !important;
    height: 74px !important;
    font-size: 0.9rem !important;
    padding: 8px !important;
  }
  
  .contact-btn {
    padding: 10px 18px !important;
    font-size: 0.9rem !important;
    min-height: 44px;
  }
  
  /* Work images */
  .work-image {
    max-width: 100% !important;
  }
  
  /* Social icons - 4 columns grid, smaller size */
  .social-icons {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    gap: 8px 5px;
  }
  
  .social-icons a {
    width: 34px !important;
    height: 34px !important;
  }
  
  .social-icon-link {
    width: 34px !important;
    height: 34px !important;
  }
  
  .social-icon-link i {
    font-size: 0.9rem !important;
  }
  
  /* Contact form - compact */
  .contact-form input,
  .contact-form textarea {
    padding: 12px 14px !important;
    font-size: 15px !important;
  }
  
  .contact-form button {
    padding: 11px 25px !important;
    font-size: 15px !important;
    min-height: 44px;
  }
  
  /* Accordion */
  .accordion-btn {
    padding: 12px 10px !important;
    font-size: 0.95rem !important;
  }
  
  /* Project cards */
  .project {
    padding: 1rem !important;
  }
  
  .project h3 a {
    font-size: 1.1rem !important;
  }
  
  .project p {
    font-size: 0.98rem !important;
  }
  
  /* Website and games */
  .website-card,
  .game-card {
    padding: 1rem !important;
  }
  
  .website-content h3,
  .game-card .btn {
    font-size: 1.15rem !important;
  }
  
  .website-content p {
    font-size: 0.98rem !important;
  }
  
  /* Service box */
  .service-box {
    padding: 1rem !important;
  }
  
  .service-box h3 {
    font-size: 1.2rem !important;
  }
  
  .service-content p {
    font-size: 0.98rem !important;
  }
  
  /* Achievement items */
  .achievement-item {
    padding: 1rem !important;
  }
  
  .achievement-item h3 {
    font-size: 1.1rem !important;
  }
  
  .achievement-item li {
    font-size: 0.98rem !important;
  }
  
  /* Skills */
  .skill-name {
    font-size: 0.98rem !important;
  }
  
  .progress-bar {
    height: 16px !important;
  }
  
  /* Footer */
  .footer-btn {
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
  }
  
  footer h5,
  footer p {
    font-size: 0.98rem !important;
  }
  
  /* Chat window */
  .chat-window {
    width: 95% !important;
    max-width: 100% !important;
    height: 400px !important;
  }
  
  /* Menu toggle */
  .menu-toggle {
    font-size: 1.6rem !important;
  }
  
  .nav-links {
    width: 260px !important;
    padding: 70px 20px 20px !important;
  }
  
  .nav-links li a {
    font-size: 0.9rem !important;
    padding: 8px 10px !important;
  }
}

/* Standardize mobile navigation across all devices */
@media (max-width: 768px) {
  .nav-links {
    width: 280px;
    padding: 80px 25px 25px;
  }
  
  .nav-links li a {
    padding: 10px 12px !important;
    font-size: 16px !important;
    margin: 4px 0;
  }
  
  .nav-links li a:hover {
    padding-left: 20px !important;
  }
}

/* Ensure consistent button spacing in website section */
@media (max-width: 768px) {
  #website {
    text-align: center;
  }
  
  #website .website-card,
  #website .website-content,
  #website .website-content h3,
  #website .website-content p {
    text-align: center;
  }
  
  #website .btn {
    margin: 0.5rem auto;
    padding: 0.7rem 1.4rem;
    font-size: 0.95rem;
    white-space: nowrap;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Live Chat System Styles */
.live-chat-container {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 2000;
  font-family: 'Roboto', sans-serif;
}

.chat-toggle {
  background: linear-gradient(145deg, #38bdf8, #0ea5e9);
  color: #fff;
  padding: 15px 20px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  animation: pulse 2s infinite;
}

.chat-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.chat-toggle span:first-child {
  font-size: 1.5rem;
}

.chat-window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 500px;
  max-height: 500px;
  background: rgba(30, 41, 59, 0.95);
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border: 2px solid #38bdf8;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  z-index: 2000;
  max-height: 80vh;
  overflow-y: auto;
  animation: panelSlideIn 0.3s ease-out;
}

.chat-header {
  background: linear-gradient(145deg, #38bdf8, #0ea5e9);
  color: #fff;
  padding: 15px 20px;
  border-radius: 13px 13px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
}

.close-chat {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background 0.2s;
}

.close-chat:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 300px;
  max-height: 350px;
}

.message {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 15px;
  word-wrap: break-word;
  animation: fadeIn 0.3s ease;
}

.message.visitor {
  background: linear-gradient(145deg, #38bdf8, #0ea5e9);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}

.message.admin {
  background: rgba(56, 189, 248, 0.1);
  color: #f1f5f9;
  border: 1px solid rgba(56, 189, 248, 0.3);
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}

.message.system {
  background: rgba(130, 215, 31, 0.1);
  color: #82d71f;
  border: 1px solid rgba(130, 215, 31, 0.3);
  align-self: center;
  text-align: center;
  font-size: 0.9rem;
  font-style: italic;
}

.message p {
  margin: 0;
  line-height: 1.4;
}

.chat-input-container {
  padding: 15px;
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  gap: 10px;
  margin-top: auto;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 0 0 13px 13px;
}

#chat-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.8);
  color: #f1f5f9;
  font-size: 0.9rem;
  outline: none;
  transition: border 0.2s;
}

#chat-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

#chat-input::placeholder {
  color: #94a3b8;
}

.send-btn {
  background: linear-gradient(145deg, #38bdf8, #0ea5e9);
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s;
  min-width: 60px;
}

.send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.3);
}

.send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .live-chat-container {
    bottom: 80px;
    right: 20px;
  }
  
  .chat-window {
    width: 90%;
    max-width: 320px;
    height: 450px;
    max-height: 75vh;
  }
  
  .chat-toggle {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
  
  .chat-toggle span:first-child {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .chat-window {
    width: 95%;
    max-width: 280px;
    height: 420px;
    max-height: 70vh;
  }
  
  .chat-header h3 {
    font-size: 1rem;
  }
  
  .message {
    max-width: 85%;
    font-size: 0.9rem;
  }
}

/* Animation for new messages */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.5);
  }
}

/* Live Notifications System */
.notifications-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notification {
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.95), rgba(15, 23, 42, 0.95));
  color: #fff;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border-left: 4px solid #38bdf8;
  max-width: 300px;
  animation: slideIn 0.3s ease;
  backdrop-filter: blur(10px);
}

.notification.success {
  border-left-color: #10b981;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.95), rgba(15, 23, 42, 0.95));
}

.notification.warning {
  border-left-color: #f59e0b;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.95), rgba(15, 23, 42, 0.95));
}

.notification.error {
  border-left-color: #ef4444;
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.95), rgba(15, 23, 42, 0.95));
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Live Analytics Dashboard */
.analytics-toggle {
  position: fixed;
  bottom: 180px;
  right: 30px;
  background: linear-gradient(145deg, #10b981, #059669);
  color: #fff;
  padding: 12px 18px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  z-index: 2000;
}

.analytics-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.analytics-panel {
  position: fixed;
  bottom: 240px;
  right: 30px;
  width: 300px;
  background: rgba(30, 41, 59, 0.95);
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border: 2px solid #10b981;
  backdrop-filter: blur(10px);
  z-index: 2000;
}

.analytics-header {
  background: linear-gradient(145deg, #10b981, #059669);
  color: #fff;
  padding: 15px 20px;
  border-radius: 13px 13px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.analytics-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
}

.close-analytics {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background 0.2s;
}

.close-analytics:hover {
  background: rgba(255, 255, 255, 0.2);
}

.analytics-content {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
  min-height: 250px;
}

.analytics-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px 15px;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  transition: all 0.2s ease;
}

.analytics-item:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.analytics-label {
  color: #f1f5f9;
  font-weight: bold;
}

.analytics-value {
  color: #38bdf8;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Live Status Indicator */
.status-indicator {
  position: fixed;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  background: rgba(30, 41, 59, 0.9);
  color: #fff;
  padding: 8px 15px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.status-text {
  color: #10b981;
}

/* Live Comments/Feedback System */
.feedback-toggle {
  position: fixed;
  bottom: 240px;
  right: 30px;
  background: linear-gradient(145deg, #ec4899, #db2777);
  color: #fff;
  padding: 12px 18px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  z-index: 2000;
}

.feedback-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.feedback-panel {
  position: fixed;
  bottom: 300px;
  right: 30px;
  width: 320px;
  background: rgba(30, 41, 59, 0.95);
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border: 2px solid #ec4899;
  backdrop-filter: blur(10px);
  z-index: 2000;
}

.feedback-header {
  background: linear-gradient(145deg, #ec4899, #db2777);
  color: #fff;
  padding: 15px 20px;
  border-radius: 13px 13px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feedback-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
}

.close-feedback {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background 0.2s;
}

.close-feedback:hover {
  background: rgba(255, 255, 255, 0.2);
}

.feedback-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.rating-container {
  margin-bottom: 20px;
  text-align: center;
  padding: 15px;
  background: rgba(236, 72, 153, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(236, 72, 153, 0.2);
}

.rating-container span {
  color: #f1f5f9;
  font-weight: bold;
  display: block;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.star {
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0.3;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.star:hover,
.star.active {
  opacity: 1;
  transform: scale(1.1);
}

#feedback-text {
  width: 100%;
  min-height: 120px;
  max-height: 200px;
  padding: 15px;
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.8);
  color: #f1f5f9;
  font-size: 0.9rem;
  resize: vertical;
  outline: none;
  transition: border 0.2s;
  margin-bottom: 15px;
  flex: 1;
}

#feedback-text:focus {
  border-color: #ec4899;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.2);
}

#feedback-text::placeholder {
  color: #94a3b8;
}

.submit-feedback {
  width: 100%;
  background: linear-gradient(145deg, #ec4899, #db2777);
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.2);
}

.submit-feedback:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

/* Mobile Responsive for new features */
@media (max-width: 768px) {
  .analytics-toggle,
  .feedback-toggle {
    bottom: 160px;
    right: 20px;
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  
  .analytics-panel,
  .feedback-panel {
    width: 280px;
    bottom: 220px;
    right: 20px;
  }
  
  .status-indicator {
    top: 50%;
    left: 15px;
    padding: 6px 12px;
    font-size: 0.8rem;
    transform: translateY(-50%);
  }
  
  .notifications-container {
    top: 15px;
    right: 15px;
  }
  
  .notification {
    max-width: 250px;
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .analytics-panel,
  .feedback-panel {
    width: 260px;
  }
  
  .analytics-content,
  .feedback-content {
    padding: 15px;
  }
  
  .notification {
    max-width: 220px;
    padding: 10px 14px;
  }
} 

/* Certificate Modal Styles */
#certificateModal {
  animation: modalFadeIn 0.3s ease-out;
}

#certificateImg.zoomed {
  max-width: none !important;
  max-height: none !important;
  cursor: zoom-out !important;
}

#certificateModal button {
  transition: all 0.3s ease;
}

#certificateModal button:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

#certificateModal button:active {
  transform: scale(0.95);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(5px);
  }
}

/* Certificate image loading animation */
#certificateImg {
  transition: opacity 0.3s ease;
}

/* Mobile responsive for certificate modal */
@media (max-width: 768px) {
  #certificateModal button {
    font-size: 1.5rem !important;
    width: 40px !important;
    height: 40px !important;
  }
  
  #certificateModal button:last-child {
    font-size: 0.9rem !important;
    padding: 10px 20px !important;
  }
}

@media (max-width: 480px) {
  #certificateModal button {
    font-size: 1.3rem !important;
    width: 35px !important;
    height: 35px !important;
  }
  
  #certificateModal button:last-child {
    font-size: 0.8rem !important;
    padding: 8px 16px !important;
  }
} 

/* Certificate Modal - Ensure Close Buttons are Visible */
#certificateModal {
  position: fixed !important;
  z-index: 9999 !important;
  background: rgba(0,0,0,0.95) !important;
}

#certificateModal div[onclick="closeCertificate()"] {
  cursor: pointer !important;
  z-index: 10000 !important;
  position: absolute !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}

#certificateModal div[onclick="closeCertificate()"]:hover {
  transform: scale(1.1) !important;
  transition: transform 0.2s ease !important;
}

#certificateModal div[onclick="closeCertificate()"]:active {
  transform: scale(0.95) !important;
}

/* Mobile responsive for certificate modal close buttons */
@media (max-width: 768px) {
  #certificateModal div[onclick="closeCertificate()"] {
    font-size: 1.5rem !important;
    padding: 12px 20px !important;
  }
  
  #certificateModal div[onclick="closeCertificate()"]:first-child {
    width: 50px !important;
    height: 50px !important;
    font-size: 2rem !important;
  }
}

@media (max-width: 480px) {
  #certificateModal div[onclick="closeCertificate()"] {
    font-size: 1.2rem !important;
    padding: 10px 16px !important;
  }
  
  #certificateModal div[onclick="closeCertificate()"]:first-child {
    width: 45px !important;
    height: 45px !important;
    font-size: 1.8rem !important;
  }
} 
 
 
/* 
Debug: Ensure certificates 54-57 are visible */
#certificate ul li:nth-child(n+54) {
  display: list-item !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Highlight new certificates for debugging */
#certificate ul li:nth-child(54),
#certificate ul li:nth-child(55),
#certificate ul li:nth-child(56),
#certificate ul li:nth-child(57) {
  background-color: rgba(56, 189, 248, 0.1) !important;
  border-left: 3px solid #38bdf8 !important;
  padding-left: 10px !important;
  margin: 5px 0 !important;
}
/* Website Section - Circular Image Cards */
.website-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  padding: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.website-card {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid rgba(56, 189, 248, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.website-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
  border-color: #38bdf8;
}

.website-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  border: 3px solid rgba(56, 189, 248, 0.5);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
  background: rgba(30, 41, 59, 0.8);
}

.website-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
  border-radius: 50%;
}

.website-card:hover .website-image {
  border-color: #38bdf8;
  transform: scale(1.05);
}

.website-card:hover .website-image img {
  transform: scale(1.1);
}

.website-content {
  padding: 0 0.5rem;
  margin-top: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.website-content h3 {
  color: #38bdf8;
  font-size: 1.4rem;
  margin: 0 0 0.8rem 0;
  font-weight: 600;
}

.website-content p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  flex: 1;
  padding: 0 0.5rem;
}

.website-card .btn {
  width: 100%;
  max-width: 180px;
  margin: 1rem auto 0;
  padding: 10px 20px;
  border-radius: 30px;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(56, 189, 248, 0.2);
}

.website-card .btn:hover {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}

/* Light mode styling for website cards */
body.light-mode .website-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(14, 165, 233, 0.3);
}

body.light-mode .website-card:hover {
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.2);
  border-color: #0ea5e9;
}

body.light-mode .website-image {
  background: rgba(14, 165, 233, 0.05);
}

/* Mobile responsive */
@media (max-width: 992px) {
  .website-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1rem;
  }
  
  .website-card {
    padding: 1.5rem;
    max-width: 100%;
  }
  
  .website-image {
    width: 120px;
    height: 120px;
  }
  
  .website-card .btn {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .website-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
/* G
/* Games Section - Square Cards Grid (Same as Website Section) */
.games-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  gap: 2rem !important;
}

.game-card {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 15px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid rgba(56, 189, 248, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
  border-color: #38bdf8;
}

.game-image {
  width: 180px;
  height: 180px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(56, 189, 248, 0.3);
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-card:hover .game-image {
  border-color: #38bdf8;
  transform: scale(1.05);
}

.game-card:hover .game-image img {
  transform: scale(1.1);
}

.game-card .btn {
  width: 100%;
  max-width: 200px;
  margin: 1rem auto 0;
  padding: 10px 20px;
  border-radius: 30px;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.game-card .btn:hover {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}

/* Light mode styling for game cards */
body.light-mode .game-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(14, 165, 233, 0.3);
}

body.light-mode .game-card:hover {
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.2);
  border-color: #0ea5e9;
}

body.light-mode .game-image {
  background: rgba(14, 165, 233, 0.05);
}

/* Mobile responsive for games */
@media (max-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 0.5rem;
  }
  
  .game-card {
    padding: 1rem;
  }
  
  .game-card .btn {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .games-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ============================================
   COMPREHENSIVE MOBILE OPTIMIZATIONS
   For old and new mobile phones
   ============================================ */

/* Performance optimizations for mobile */
@media (max-width: 768px) {
  /* Reduce animations on mobile for better performance */
  * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  /* Optimize images */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  /* Prevent text overflow */
  * {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Better text rendering */
  body {
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
  }
  
  /* Fix text alignment issues */
  .section {
    text-align: left;
  }
  
  h1, h2, h3 {
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  p, li, span {
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Center align buttons */
  .btn, .get-in-touch-btn, .contact-btn {
    text-align: center;
    /* display: inline-block; */
  }
  
  /* Fix hero section text alignment */
  #hero {
    text-align: center;
  }
  
  #hero h1, #hero h2, #hero p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Fix navbar alignment */
  .navbar {
    align-items: center;
    justify-content: space-between;
  }
  
  /* Fix contact form */
  .contact-form {
    text-align: left;
  }
  
  .contact-form input,
  .contact-form textarea {
    text-align: left;
  }
  
  /* Fix social icons alignment */
  .social-icons {
    justify-content: center;
    text-align: center;
  }
  
  /* Fix work section */
  .work-text-box {
    text-align: center;
  }
  
  /* Fix certificate section */
  #certificate ul {
    text-align: left;
  }
  
  #certificate ul li {
    text-align: left;
    word-wrap: break-word;
  }
  
  /* Fix project section */
  .project {
    text-align: left;
  }
  
  .project h3 {
    text-align: left;
  }
  
  .project p {
    text-align: left;
  }
  
  /* Fix service box */
  .service-box {
    text-align: left;
  }
  
  .service-content {
    text-align: left;
  }
  
  /* Fix achievement items */
  .achievement-item {
    text-align: left;
  }
  
  .achievement-item h3 {
    text-align: center;
  }
  
  .achievement-item ul {
    text-align: left;
  }
  
  /* Website section - text center on mobile (square boxes ke andar) */
  #website,
  #website .section,
  #website .website-card,
  #website .website-content,
  #website .website-content h3,
  #website .website-content p {
    text-align: center !important;
  }
  
  #website .website-content p {
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Games section - text center on mobile */
  #games,
  #games .section,
  #games .game-card {
    text-align: center !important;
  }
  
  #games .game-card .btn {
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Footer - text center on mobile */
  footer,
  footer h5,
  footer p {
    text-align: center !important;
  }
  
  footer h5,
  footer p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .footer-features {
    justify-content: center;
  }
  
  /* Smooth scrolling */
  html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Prevent zoom on input focus (iOS) */
  input, textarea, select {
    font-size: 16px !important;
  }
  
  /* Better touch targets */
  button, a, .btn {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Fix floating elements */
  .whatsapp-float {
    width: 56px;
    height: 56px;
    right: 15px;
    bottom: 15px;
  }
  
  #settings-fab {
    left: 15px;
    bottom: 15px;
  }
  
  /* Fix chat window */
  .chat-window {
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }
  
  /* Fix panels */
  .analytics-panel,
  .feedback-panel {
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    right: auto !important;
    bottom: auto !important;
  }
}

/* Extra optimizations for small phones (320px-375px) - still readable text */
@media (max-width: 375px) {
  /* Compact spacing */
  .section {
    padding: 1rem 0.8rem !important;
  }
  
  /* Readable base font */
  body {
    font-size: 15px;
  }
  
  h1 {
    font-size: 1.65rem !important;
  }
  
  h2 {
    font-size: 1.5rem !important;
  }
  
  h3 {
    font-size: 1.15rem !important;
  }
  
  /* Buttons - readable */
  .btn {
    padding: 0.65rem 1.1rem !important;
    font-size: 0.9rem !important;
  }
  
  /* Forms */
  .contact-form input,
  .contact-form textarea {
    padding: 12px 14px !important;
    font-size: 16px !important;
  }
  
  /* Cards */
  .website-card,
  .game-card,
  .project {
    padding: 1rem !important;
  }
  
  .navbar {
    padding: 0.6rem 0.8rem !important;
  }
  
  .logo {
    font-size: 1.15rem !important;
  }
  
  #hero h1 {
    font-size: 1.75rem !important;
  }
  
  #hero h2 {
    font-size: 1.4rem !important;
  }
  
  #hero .typewriter {
    font-size: 1.15rem !important;
  }
  
  p, .achievement-item li, .service-content p {
    font-size: 0.98rem !important;
  }
}

/* Landscape orientation fixes */
@media (max-width: 768px) and (orientation: landscape) {
  #hero {
    min-height: auto;
    padding: 2rem 1rem;
  }
  
  #hero h1 {
    font-size: 1.8rem !important;
  }
  
  #hero h2 {
    font-size: 1.4rem !important;
  }
  
  .section {
    padding: 1.5rem 1rem;
  }
  
  .chat-window,
  .analytics-panel,
  .feedback-panel {
    max-height: 85vh;
  }
}

/* Print styles - hide unnecessary elements */
@media print {
  .navbar,
  .whatsapp-float,
  #settings-fab,
  .footer-features,
  .chat-window,
  .analytics-panel,
  .feedback-panel {
    display: none !important;
  }
}