/* Light Mode Theme */
:root.light-mode {
  --light-bg: #fafafa;
  --light-bg-secondary: #f0f0f0;
  --light-text: #1a1a1a;
  --light-text-secondary: #333;
  --light-primary: #0d4a5f;
  --light-secondary: #d84315;
  --light-card: rgba(255, 255, 255, 0.98);
  --light-border: #ccc;
}

:root.light-mode body {
  background: linear-gradient(135deg, #fafafa, #f0f0f0);
  color: #1a1a1a;
}

:root.light-mode header {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
}

:root.light-mode .logo {
  color: #0d4a5f;
}

:root.light-mode .logo span {
  color: #d84315;
}

:root.light-mode nav ul li a {
  color: #1a1a1a;
}

:root.light-mode nav ul li a:hover {
  color: #0d4a5f;
  background: rgba(13, 74, 95, 0.1);
}

/* Light Mode Navigation - Hamburger Menu */
:root.light-mode #menu-toggle span {
  background-color: #1a1a1a;
}

:root.light-mode nav {
  background: rgba(250, 250, 250, 0.98);
}

:root.light-mode nav ul li a {
  color: #1a1a1a;
}

:root.light-mode nav ul li a:hover,
:root.light-mode nav ul li a:focus {
  color: #0d4a5f;
  background: rgba(13, 74, 95, 0.1);
}

:root.light-mode .scroll-progress-bar {
  background: linear-gradient(90deg, #0d4a5f, #d84315);
}

:root.light-mode .hero {
  background: linear-gradient(135deg, #fafafa 60%, #f0f0f0 100%);
}

:root.light-mode .hero-content h2 {
  color: #0d4a5f;
}

:root.light-mode .hero-content h1 {
  color: #d84315;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

:root.light-mode .hero-content h3 {
  color: #333;
}

:root.light-mode .luxury-title {
  color: #0d4a5f;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

:root.light-mode .luxury-subtitle {
  color: #1a1a1a;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  font-weight: 500;
}

:root.light-mode .about-hero {
  background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1200&q=80') no-repeat center center/cover;
}

/* Experience Page Links - Dark Mode */
.contact-item {
  color: #00fff7;
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
  font-weight: 500;
}

.contact-item:hover {
  color: #ffd700;
  text-shadow: 0 0 8px #ffd700;
}

/* Experience Page Links - Light Mode */
:root.light-mode .contact-item {
  color: #0d4a5f;
  text-decoration: none;
  font-weight: 600;
}

:root.light-mode .contact-item:hover {
  color: #d84315;
  text-decoration: underline;
}

:root.light-mode .social-links a {
  color: #0d4a5f;
}

:root.light-mode .social-links a:hover {
  color: #d84315;
}

:root.light-mode .service-card,
:root.light-mode .work,
:root.light-mode .about-container,
:root.light-mode .contact-container,
:root.light-mode .letters-container,
:root.light-mode .tools-container {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 24px rgba(13, 74, 95, 0.12), 0 2px 24px rgba(216, 67, 21, 0.08);
  color: #1a1a1a;
  border-color: #ddd;
}

:root.light-mode .service-card:hover,
:root.light-mode .work:hover {
  box-shadow: 0 0 48px rgba(13, 74, 95, 0.25), 0 2px 32px rgba(216, 67, 21, 0.15);
  border-color: #0d4a5f;
}

:root.light-mode .service-card h3,
:root.light-mode .services-title,
:root.light-mode .projects-title,
:root.light-mode .letters-title,
:root.light-mode .tools-title {
  color: #0d4a5f;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

:root.light-mode .service-card p,
:root.light-mode .layer p,
:root.light-mode .about-container p,
:root.light-mode .contact-container label,
:root.light-mode .letter-body {
  color: #333;
}

:root.light-mode .service-card i,
:root.light-mode .card-icon {
  color: #d84315;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

:root.light-mode .layer a {
  color: #0d4a5f;
  background: #f5f5f5;
}

:root.light-mode .layer a:hover {
  background: #0d4a5f;
  color: #fff;
}

:root.light-mode .btn-primary,
:root.light-mode .btn {
  background: linear-gradient(90deg, #0d4a5f, #d84315);
  color: #fff;
  box-shadow: 0 2px 12px rgba(13, 74, 95, 0.3);
}

:root.light-mode .btn-primary:hover,
:root.light-mode .btn:hover {
  background: linear-gradient(90deg, #d84315, #0d4a5f);
  box-shadow: 0 0 18px rgba(216, 67, 21, 0.5), 0 0 4px #0d4a5f;
}

:root.light-mode .contact-container input,
:root.light-mode .contact-container textarea {
  background: rgba(250, 250, 250, 0.95);
  color: #1a1a1a;
  border-color: #ccc;
}

:root.light-mode .contact-container input:focus,
:root.light-mode .contact-container textarea:focus {
  border-color: #0d4a5f;
  box-shadow: 0 0 12px rgba(13, 74, 95, 0.3);
}

:root.light-mode .theme-toggle {
  color: #1a1a1a;
}

:root.light-mode .theme-toggle:hover {
  color: #0d4a5f;
}

:root.light-mode .back-to-top {
  background: linear-gradient(135deg, #0d4a5f, #d84315);
  color: #fff;
}

:root.light-mode .back-to-top:hover {
  box-shadow: 0 0 24px #0d4a5f, 0 0 12px #d84315;
}

/* Enhanced Light Mode Visibility for All Elements */
:root.light-mode .timeline-title,
:root.light-mode .dashboard-header h1,
:root.light-mode .about-container h1,
:root.light-mode .luxury-title,
:root.light-mode .category-title,
:root.light-mode .position-title,
:root.light-mode .layer h3,
:root.light-mode .timeline-event-content h3,
:root.light-mode .skill-category h3,
:root.light-mode .experience-card h3 {
  color: #0d4a5f;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

:root.light-mode .achievement,
:root.light-mode .skill-name,
:root.light-mode .tool-title,
:root.light-mode .tool-type,
:root.light-mode .company-name,
:root.light-mode .duration-location,
:root.light-mode .stat-label,
:root.light-mode .subtitle,
:root.light-mode .luxury-subtitle,
:root.light-mode .contact-item {
  color: #333;
}

:root.light-mode .stat-number {
  color: #0d4a5f;
}

:root.light-mode .category-icon,
:root.light-mode .card-icon,
:root.light-mode .tool-box i {
  color: #d84315;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

:root.light-mode .interest-box {
  background: rgba(250, 250, 250, 0.95);
  border-color: #ccc;
  color: #0d4a5f;
}

:root.light-mode .interest-box i {
  color: #d84315;
}

:root.light-mode .interest-box:hover {
  border-color: #0d4a5f;
  box-shadow: 0 0 18px rgba(13, 74, 95, 0.3), 0 0 4px #d84315;
  background: #f5f5f5;
}

:root.light-mode #interest-info {
  color: #0d4a5f;
}

:root.light-mode .filter-btn {
  background: rgba(250, 250, 250, 0.95);
  border-color: #ccc;
  color: #1a1a1a;
}

:root.light-mode .filter-btn:hover,
:root.light-mode .filter-btn.active {
  background: linear-gradient(90deg, #0d4a5f, #d84315);
  color: #fff;
  border-color: #0d4a5f;
  box-shadow: 0 0 18px rgba(13, 74, 95, 0.3), 0 0 4px #d84315;
}

:root.light-mode .search-box {
  background: rgba(250, 250, 250, 0.95);
  border-color: #ccc;
  color: #1a1a1a;
}

:root.light-mode .search-box:focus {
  border-color: #0d4a5f;
  box-shadow: 0 0 20px rgba(13, 74, 95, 0.3);
}

:root.light-mode .search-box::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

:root.light-mode .timeline-event-content {
  background: rgba(255, 255, 255, 0.98);
  border-color: #0d4a5f;
  color: #1a1a1a;
}

:root.light-mode .timeline-event-content p {
  color: #333;
}

:root.light-mode .timeline-year {
  background: #fafafa;
  border-color: #0d4a5f;
  color: #0d4a5f;
}

:root.light-mode .timeline-badge {
  background: linear-gradient(135deg, #0d4a5f 60%, #d84315 100%);
  border-color: #fafafa;
  color: #fff;
}

:root.light-mode .timeline::before {
  background: linear-gradient(180deg, #0d4a5f 0%, #d84315 100%);
  box-shadow: 0 0 32px rgba(13, 74, 95, 0.3);
}

:root.light-mode .tag {
  background: linear-gradient(90deg, #0d4a5f, #d84315);
  color: #fff;
}

:root.light-mode .skill-category {
  background: rgba(255, 255, 255, 0.98);
  border-color: #ddd;
  box-shadow: 0 0 24px rgba(13, 74, 95, 0.12), 0 2px 24px rgba(216, 67, 21, 0.08);
}

:root.light-mode .skill-category:hover {
  box-shadow: 0 0 48px rgba(13, 74, 95, 0.25), 0 2px 32px rgba(216, 67, 21, 0.15);
  border-color: #0d4a5f;
}

:root.light-mode .skill-level {
  background: linear-gradient(90deg, #0d4a5f, #d84315);
  color: #fff;
}

:root.light-mode .skill-bar {
  background: rgba(0, 0, 0, 0.1);
}

:root.light-mode .skill-progress {
  background: linear-gradient(90deg, #0d4a5f, #d84315);
}

:root.light-mode .experience-card {
  background: rgba(255, 255, 255, 0.98);
  border-color: #ddd;
  box-shadow: 0 0 24px rgba(13, 74, 95, 0.12), 0 2px 24px rgba(216, 67, 21, 0.08);
  color: #1a1a1a;
}

:root.light-mode .experience-card:hover {
  box-shadow: 0 0 48px rgba(13, 74, 95, 0.25), 0 2px 32px rgba(216, 67, 21, 0.15);
  border-color: #0d4a5f;
}

:root.light-mode .stat-card {
  background: rgba(255, 255, 255, 0.98);
  border-color: #ddd;
  box-shadow: 0 0 24px rgba(13, 74, 95, 0.12), 0 2px 24px rgba(216, 67, 21, 0.08);
  color: #1a1a1a;
}

:root.light-mode .stat-card:hover {
  box-shadow: 0 0 48px rgba(13, 74, 95, 0.25), 0 2px 32px rgba(216, 67, 21, 0.15);
  border-color: #0d4a5f;
}

:root.light-mode .tool-box {
  background: rgba(255, 255, 255, 0.98);
  border-color: #ddd;
  box-shadow: 0 0 12px rgba(13, 74, 95, 0.1), 0 2px 12px rgba(216, 67, 21, 0.08);
  color: #1a1a1a;
}

:root.light-mode .tool-box:hover {
  box-shadow: 0 0 24px rgba(13, 74, 95, 0.25), 0 2px 24px rgba(216, 67, 21, 0.15);
  border-color: #0d4a5f;
}

:root.light-mode .letter-card {
  background: rgba(255, 255, 255, 0.98);
  border-color: #ddd;
  box-shadow: 0 0 18px rgba(13, 74, 95, 0.1);
  color: #1a1a1a;
}

:root.light-mode .letter-card:hover {
  box-shadow: 0 0 24px rgba(13, 74, 95, 0.25), 0 2px 24px rgba(216, 67, 21, 0.15);
  border-color: #0d4a5f;
}

:root.light-mode .letter-header {
  border-bottom-color: rgba(13, 74, 95, 0.2);
}

:root.light-mode .letter-card h2 {
  color: #0d4a5f;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

:root.light-mode .letter-card .company {
  color: #d84315;
}

:root.light-mode .letter-date {
  color: #555;
}

:root.light-mode .letter-signature {
  color: #0d4a5f;
}

:root.light-mode .letter-signature .title {
  color: #d84315;
}

:root.light-mode .download-link {
  background: rgba(13, 74, 95, 0.1);
  color: #0d4a5f;
  border-color: rgba(13, 74, 95, 0.3);
}

:root.light-mode .download-link:hover {
  background: linear-gradient(90deg, #0d4a5f, #d84315);
  color: #fff;
  box-shadow: 0 0 12px rgba(13, 74, 95, 0.3);
}

:root.light-mode .return-link {
  color: #0d4a5f;
}

:root.light-mode .return-link:hover {
  color: #d84315;
}

:root.light-mode .return-link.btn {
  background: linear-gradient(90deg, #0d4a5f, #d84315);
  color: #fff;
  box-shadow: 0 2px 12px rgba(13, 74, 95, 0.3);
}

:root.light-mode .return-link.btn:hover {
  background: linear-gradient(90deg, #d84315, #0d4a5f);
  box-shadow: 0 0 18px rgba(216, 67, 21, 0.5), 0 0 4px #0d4a5f;
}

:root.light-mode .success-message {
  background: rgba(0, 255, 127, 0.15);
  border-color: #00cc66;
  color: #006633;
}

:root.light-mode .error-message {
  background: rgba(255, 99, 99, 0.15);
  border-color: #ff6363;
  color: #cc0000;
}

:root.light-mode .spinner {
  border-color: #ccc;
  border-top-color: #0d4a5f;
}

/* Image Overlay Adjustments for Light Mode */
:root.light-mode .layer {
  background: linear-gradient(135deg, rgba(250, 250, 250, 0.95) 60%, rgba(13, 74, 95, 0.85) 100%);
}

:root.light-mode .about-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1200&q=80') no-repeat center center/cover;
}

/* Reset and base styles */
* {
  box-sizing: border-box;
}


/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, #ffd700, #00fff7);
  width: 0%;
  z-index: 1003;
  box-shadow: 0 0 12px #00fff799;
}

html {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: 'Montserrat', 'Playfair Display', serif;
  background: linear-gradient(135deg, #0f2027, #2c5364);
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Prevent body scroll when mobile menu is open */
body.no-scroll {
  overflow: hidden;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2.5rem;
  background: rgba(24,24,24,0.92);
  box-shadow: 0 2px 24px #00fff744;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-sizing: border-box;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #ffd700;
  font-weight: 700;
  letter-spacing: 2px;
}

.logo span {
  color: #00fff7;
  font-weight: 700;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

@media (max-width: 1024px) {
  nav ul {
    gap: 1.5rem;
  }
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 600;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.7rem;
  border-radius: 18px;
}

nav ul li a:hover {
  color: #ffd700;
  background: rgba(0,255,247,0.08);
}

/* Hamburger Menu Toggle */
#menu-toggle {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002; /* Ensure it's above the nav overlay */
}

#menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: #fff;
  margin: 5px 0;
  border-radius: 3px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.5rem;
  margin-right: 1rem;
  transition: color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 44px;
  height: 44px;
}

.theme-toggle:hover {
  color: #ffd700;
  transform: scale(1.1) rotate(20deg);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: -60px;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ffd700, #00fff7);
  color: #181818;
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: bottom 0.3s ease-in-out, transform 0.2s, box-shadow 0.2s;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
}

.back-to-top.show {
  bottom: 2rem;
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover,
.back-to-top:focus {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 0 24px #ffd700, 0 0 12px #00fff7;
  outline: none;
}

/* Skip to Content Link */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: #ffd700;
  color: #181818;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
  font-weight: 600;
}

.skip-to-content:focus {
  top: 0;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem 2rem 2rem;
  gap: 2rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #181818 60%, #0f2027 100%);
}

.hero-content {
  max-width: 500px;
}

.hero-content h2 {
  font-size: 1.5rem;
  color: #ffd700;
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', 'Playfair Display', serif;
  letter-spacing: 1px;
}

.hero-content h1 {
  font-size: 2.7rem;
  color: #00fff7;
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.7rem;
  letter-spacing: 2px;
  text-shadow: 0 2px 16px #000a;
}

.hero-content h3 {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  font-family: 'Montserrat', 'Playfair Display', serif;
}

.social-links {
  margin-bottom: 1.5rem;
}

.social-links a {
  color: #ffd700;
  font-size: 1.5rem;
  margin-right: 1.2rem;
  transition: color 0.2s;
}

.social-links a:hover {
  color: #00fff7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn-primary {
  background: linear-gradient(90deg, #ffd700, #00fff7);
  color: #181818;
  padding: 0.7rem 2rem;
  border-radius: 32px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.08rem;
  box-shadow: 0 2px 12px #ffd70099;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  border: none;
  display: inline-block;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #00fff7, #ffd700);
  color: #fff;
  box-shadow: 0 0 18px #00fff7cc, 0 0 4px #ffd700;
}

.hero-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 32px #00fff766, 0 2px 32px #ffd70044;
  background: linear-gradient(135deg, #ffd700 60%, #00fff7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #181818;
}

/* Services Section */
.services-section {
  margin: 64px auto 0 auto;
  max-width: 1200px;
  padding: 0 2rem;
}

.services-title {
  color: #00fff7;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  text-align: left;
  margin-bottom: 2.5rem;
  letter-spacing: 2px;
  text-shadow: 0 2px 16px #000a;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: flex-start;
}

@media (max-width: 480px) {
  .services-grid {
    gap: 1rem;
  }
}

.service-card {
  flex: 1 1 320px;
  min-width: 280px;
  max-width: 370px;
  width: 100%;
  background: rgba(24,24,24,0.92);
  border-radius: 18px;
  box-shadow: 0 0 24px #00fff766, 0 2px 24px #ffd70044;
  padding: 2.2rem 1.5rem 1.5rem 1.5rem;
  transition: box-shadow 0.25s, border 0.25s, transform 0.2s;
  border: 2px solid #222;
  text-align: left;
  position: relative;
  cursor: pointer;
  color: #fff;
  backdrop-filter: blur(6px);
}

.service-card i {
  font-size: 2.5rem;
  color: #ffd700;
  margin-bottom: 1.2rem;
  transition: color 0.2s, text-shadow 0.2s;
  text-shadow: 0 2px 12px #ffd70099;
  display: block;
}

.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: #00fff7;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px #00fff799;
}

.service-card p {
  font-size: 1.08rem;
  color: #e0e0e0;
  line-height: 1.6;
}

.service-card:hover {
  box-shadow: 0 0 48px #ffd700cc, 0 2px 32px #00fff7cc;
  border: 2px solid #00fff7;
  transform: translateY(-6px) scale(1.03);
  color: #ffd700;
}

.service-card:hover i {
  color: #00fff7;
  text-shadow: 0 0 16px #00fff7cc;
}

/* Tablet breakpoint */
@media (max-width: 1024px) {
  .services-grid, .work-list {
    justify-content: center;
  }
  .service-card, .work {
    flex: 1 1 300px;
  }
}

@media (max-width: 900px) {
  .services-grid {
    flex-direction: column;
    gap: 1.5rem;
  }
  .service-card {
    max-width: 100%;
    flex: none;
  }
}

/* Projects Section */
.projects-section {
  margin: 64px auto 0 auto;
  max-width: 1200px;
  padding: 0 2rem;
}

.projects-title {
  color: #ffd700;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  text-align: left;
  margin-bottom: 2.5rem;
  letter-spacing: 2px;
  text-shadow: 0 2px 16px #000a;
}

.work-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: flex-start;
}

.work {
  position: relative;
  flex: 1 1 320px;
  min-width: 280px;
  max-width: 370px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 24px #00fff766, 0 2px 24px #ffd70044;
  background: rgba(24,24,24,0.92);
  transition: box-shadow 0.25s, transform 0.2s;
  cursor: pointer;
  margin-bottom: 1rem;
}

.work img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 18px 18px 0 0;
}

.layer {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #181818cc 60%, #00fff799 100%);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  border-radius: 18px;
  text-align: center;
}

.work:hover .layer {
  opacity: 1;
}

.layer h3 {
  font-size: 1.3rem;
  color: #ffd700;
  margin-bottom: 0.7rem;
  font-family: 'Playfair Display', serif;
  text-shadow: 0 2px 8px #ffd70099;
}

.layer p {
  font-size: 1.08rem;
  margin-bottom: 1rem;
  color: #fff;
}

.layer a {
  color: #00fff7;
  font-size: 1.5rem;
  background: #181818;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.layer a:hover {
  background: #00fff7;
  color: #181818;
}

.btn {
  background: linear-gradient(90deg, #ffd700, #00fff7);
  color: #181818;
  padding: 0.7rem 2rem;
  border-radius: 32px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.08rem;
  box-shadow: 0 2px 12px #ffd70099;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  border: none;
  display: inline-block;
  margin-top: 2rem;
}

.btn:hover {
  background: linear-gradient(90deg, #00fff7, #ffd700);
  color: #fff;
  box-shadow: 0 0 18px #00fff7cc, 0 0 4px #ffd700;
}

/* Add to your <style> section in contact.html */
.return-link.btn {
  background: linear-gradient(90deg, #ffd700, #00fff7);
  color: #222;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 32px;
  font-weight: 600;
  font-size: 1.08rem;
  box-shadow: 0 2px 12px #00fff744;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: block;
}

.return-link.btn:hover {
  background: linear-gradient(90deg, #00fff7, #ffd700);
  color: #fff;
  box-shadow: 0 0 18px #ffd700cc, 0 0 4px #00fff7;
  text-decoration: underline;
}

/* About Page Styles */
.about-hero {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1200&q=80') no-repeat center center/cover;
  padding: 5rem 2rem 3rem;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 32px #00fff766;
}

.luxury-title {
  font-size: 3rem;
  font-family: 'Playfair Display', serif;
  color: #ffd700;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  margin-top: 0;
  text-shadow: 0 2px 16px #000a;
}

.luxury-subtitle {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 2rem;
  font-weight: 400;
  text-shadow: 0 1px 8px #000a;
}

.about-container {
  background: rgba(24,24,24,0.85);
  max-width: 750px;
  margin: 0 auto 48px;
  padding: 2.5rem 2rem;
  border-radius: 24px;
  box-shadow: 0 0 32px #00fff766, 0 2px 32px #ffd70044;
  backdrop-filter: blur(8px);
  position: relative;
  transform: translateY(-60px);
  z-index: 2;
}

.about-container h1 {
  color: #ffd700;
  font-family: 'Playfair Display', serif;
  font-size: 2.3rem;
  margin-top: 0;
  text-align: center;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 12px #000a;
}

.about-container p {
  font-size: 1.13rem;
  line-height: 1.7;
  color: #eee;
  margin-bottom: 1.2rem;
}

.about-interests {
  margin-top: 2.5rem;
  margin-bottom: 2rem;
}

.about-interests h3 {
  color: #aaa;
  font-size: 1rem;
  letter-spacing: 1px;
  margin-bottom: 0.2rem;
  text-align: left;
}

.about-interests h2 {
  color: #00fff7;
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-align: left;
  letter-spacing: 1px;
}

.interests-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
}

.interest-box {
  background: rgba(34,34,34,0.85);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 200px;
  margin-bottom: 0.5rem;
  border: 1.5px solid #222;
  box-shadow: 0 2px 12px #00fff744;
  transition: border 0.2s, box-shadow 0.25s, color 0.2s, background 0.2s, transform 0.2s;
  cursor: pointer;
  position: relative;
  z-index: 1;
  color: #ffd700;
}

.interest-box i {
  font-size: 1.3rem;
  color: #00fff7;
  transition: color 0.2s, text-shadow 0.2s;
}

.interest-box.glow-hover:hover {
  border: 1.5px solid #00fff7;
  box-shadow: 0 0 18px #00fff7cc, 0 0 4px #ffd700;
  background: #181f1f;
  color: #00fff7;
  transform: translateY(-4px) scale(1.03);
}

.interest-box.glow-hover:hover i {
  color: #ffd700;
  text-shadow: 0 0 8px #ffd700cc;
}

#interest-info {
  margin-top: 1.2rem;
  color: #00fff7;
  font-size: 1.08rem;
  min-height: 32px;
  text-align: center;
  transition: opacity 0.2s;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Certifications Page Styles */
.timeline-container {
  width: 100%;
  max-width: 1100px;
  margin: 40px auto 0 auto;
  padding: 0 8px;
}

.timeline-title {
  text-align: center;
  color: #00fff7;
  font-size: 2.5rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: 2.5rem;
  letter-spacing: 2px;
  text-shadow: 0 2px 16px #000a;
}

.timeline {
  position: relative;
  margin: 0 auto;
  width: 100%;
  padding-bottom: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 7px;
  height: 100%;
  background: linear-gradient(180deg, #ffd700 0%, #00fff7 100%);
  border-radius: 3px;
  z-index: 1;
  box-shadow: 0 0 32px #ffd700cc;
  opacity: 0.8;
  animation: timelineGlow 2s infinite alternate;
}

.timeline-event {
  position: relative;
  width: 50%;
  padding: 40px 32px;
  box-sizing: border-box;
  min-height: 180px;
  z-index: 2;
  transition: transform 0.2s;
}

.timeline-event.right {
  left: 50%;
  text-align: left;
  padding-left: 64px;
  padding-right: 0;
}

.timeline-event.left {
  left: 0;
  text-align: right;
  padding-right: 64px;
  padding-left: 0;
}

.timeline-event-content {
  background: rgba(24,24,24,0.98);
  border: 2.5px solid #ffd700;
  border-radius: 22px;
  padding: 28px 36px;
  box-shadow: 0 0 24px #00fff766, 0 2px 16px #ffd70044;
  position: relative;
  z-index: 2;
  min-width: 260px;
  max-width: 440px;
  margin: 0 auto;
  transition: box-shadow 0.3s, border 0.3s, transform 0.2s;
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.timeline-event-content:hover {
  box-shadow: 0 0 48px #ffd700cc, 0 2px 24px #00fff7cc;
  border-color: #00fff7;
  transform: scale(1.03);
}

.timeline-event .timeline-year {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffd700;
  background: #181818;
  padding: 8px 22px;
  border-radius: 18px;
  border: 2.5px solid #ffd700;
  z-index: 3;
  left: 100%;
  margin-left: 22px;
  white-space: nowrap;
  box-shadow: 0 0 12px #ffd700cc;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px #ffd70099;
}

.timeline-event.left .timeline-year {
  left: auto;
  right: 100%;
  margin-left: 0;
  margin-right: 22px;
}

.timeline-event-content h3 {
  margin-top: 0;
  color: #00fff7;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  letter-spacing: 0.5px;
  font-weight: 700;
  text-shadow: 0 2px 8px #00fff799;
  font-family: 'Montserrat', 'Playfair Display', serif;
}

.timeline-event-content p {
  margin-bottom: 0;
  font-size: 1.08rem;
  color: #e0e0e0;
  line-height: 1.6;
}

.timeline-event-content a {
  display: block;
  text-align: center;
  color: #00fff7;
  font-size: 1.5rem;
  margin-top: 1rem;
  transition: color 0.2s, transform 0.2s;
}

.timeline-event-content a:hover {
  color: #ffd700;
  transform: scale(1.2);
}

.timeline-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #ffd700 60%, #00fff7 100%);
  border: 4px solid #181818;
  border-radius: 50%;
  z-index: 5;
  box-shadow: 0 0 24px #ffd700cc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #181818;
  transition: background 0.2s, color 0.2s;
  animation: badgePulse 2s infinite alternate;
}

.timeline-event.right .timeline-badge { left: -19px; }

.timeline-event.left .timeline-badge {
  left: auto;
  right: -19px;
  transform: translateY(-50%);
}

.timeline-event-content .tag {
  display: inline-block;
  background: linear-gradient(90deg, #ffd700, #00fff7);
  color: #181818;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 12px;
  padding: 2px 12px;
  margin-bottom: 10px;
  margin-right: 8px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px #ffd70099;
}

/* Experience Page Styles */
.dashboard { padding: 20px; max-width: 1600px; margin: 0 auto; }
.dashboard-header { text-align: center; margin-bottom: 40px; animation: fadeInDown 1s ease-out; padding-top: 2rem; }
.dashboard-header h1 { font-family: 'Playfair Display', serif; font-size: 2.5rem; margin-bottom: 10px; color: #00fff7; letter-spacing: 2px; text-shadow: 0 2px 16px #000a; }
.subtitle { font-size: 1.2rem; color: #ffd700; margin-bottom: 10px; }
.contact-info { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 15px; }
.contact-item { background: rgba(24,24,24,0.92); padding: 5px 15px; border-radius: 20px; font-size: 0.9rem; backdrop-filter: blur(6px); border: 1px solid #222; }
.stats-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 40px; animation: fadeInUp 1s ease-out 0.3s both; }
.stat-card { background: rgba(24,24,24,0.92); backdrop-filter: blur(6px); border-radius: 18px; padding: 25px; text-align: center; border: 2px solid #222; box-shadow: 0 0 24px #00fff766, 0 2px 24px #ffd70044; transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent); transition: left 0.5s; }
.stat-card:hover::before { left: 100%; }
.stat-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 0 48px #ffd700cc, 0 2px 32px #00fff7cc; border: 2px solid #00fff7; }
.stat-number { font-size: 2.8rem; font-weight: bold; color: #ffd700; margin-bottom: 5px; }
.stat-label { font-size: 1rem; opacity: 0.9; }
.filter-section { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; animation: fadeInUp 1s ease-out 0.6s both; }
.filter-btn { padding: 12px 24px; background: rgba(24,24,24,0.92); border: 2px solid #222; border-radius: 30px; color: white; cursor: pointer; transition: all 0.3s ease; font-weight: 600; position: relative; overflow: hidden; }
.filter-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, #ffd700, #00fff7); transition: left 0.3s; z-index: -1; }
.filter-btn:hover::before, .filter-btn.active::before { left: 0; }
.filter-btn:hover, .filter-btn.active { transform: translateY(-3px); box-shadow: 0 0 18px #ffd700cc, 0 0 4px #00fff7; border-color: #00fff7; color: #181818; }
.experiences-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 25px; animation: fadeInUp 1s ease-out 0.9s both; }
.experience-card { background: rgba(24,24,24,0.92); backdrop-filter: blur(6px); border-radius: 18px; padding: 30px; border: 2px solid #222; box-shadow: 0 0 24px #00fff766, 0 2px 24px #ffd70044; transition: all 0.4s ease; position: relative; overflow: hidden; margin-bottom: 25px; }
.experience-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #ffd700, #00fff7); opacity: 0; transition: opacity 0.3s; }
.experience-card:hover::after { opacity: 1; }
.experience-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 0 48px #ffd700cc, 0 2px 32px #00fff7cc; border: 2px solid #00fff7; }
.card-header { display: flex; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid rgba(255, 255, 255, 0.1); }
.card-icon { font-size: 2rem; margin-right: 15px; color: #ffd700; }
.card-title { flex: 1; }
.position-title { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: bold; margin-bottom: 5px; color: #00fff7; letter-spacing: 1px; }
.company-name { font-size: 1.1rem; color: #ffd700; font-weight: 600; }
.duration-location { font-size: 0.9rem; opacity: 0.8; margin-top: 5px; }
.card-content { margin-top: 20px; }
.achievement { margin-bottom: 15px; padding-left: 20px; position: relative; line-height: 1.6; opacity: 0; animation: slideInLeft 0.6s ease-out forwards; }
.achievement:nth-child(1) { animation-delay: 0.1s; }
.achievement:nth-child(2) { animation-delay: 0.2s; }
.achievement:nth-child(3) { animation-delay: 0.3s; }
.achievement:nth-child(4) { animation-delay: 0.4s; }
.achievement::before { content: '▸'; position: absolute; left: 0; color: #ffd700; font-weight: bold; }
.tech-tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.tech-tag { background: linear-gradient(90deg, #ffd700, #00fff7); color: #181818; padding: 4px 12px; border-radius: 15px; font-size: 0.8rem; font-weight: 500; }
.search-container { text-align: center; margin-bottom: 30px; animation: fadeInUp 1s ease-out 1.2s both; }
.search-box { padding: 15px 25px; background: rgba(24,24,24,0.92); border: 2px solid #222; border-radius: 30px; color: white; font-size: 1.1rem; width: 400px; max-width: 90%; backdrop-filter: blur(6px); transition: all 0.3s ease; }
.search-box:focus { outline: none; border-color: #00fff7; box-shadow: 0 0 25px rgba(0, 255, 247, 0.4); }
.search-box::placeholder { color: rgba(255, 255, 255, 0.6); }
.certification-badge { background: linear-gradient(90deg, #ffd700, #00fff7); color: #181818; padding: 8px 15px; border-radius: 20px; font-size: 0.9rem; font-weight: 600; display: inline-block; margin: 5px 5px 0 0; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); }

/* Animations */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-50px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes timelineGlow { from { box-shadow: 0 0 32px #ffd700cc; } to { box-shadow: 0 0 48px #00fff7cc; } }
@keyframes badgePulse { from { box-shadow: 0 0 24px #ffd700cc; } to { box-shadow: 0 0 36px #00fff7cc; } }

@media (max-width: 900px) {
  .work-list {
    flex-direction: column;
    gap: 1.5rem;
  }
  .work {
    max-width: 100%;
    flex: none;
  }

  /* Certifications page responsive */
  .timeline::before { left: 10px; transform: translateX(0); }
  .timeline-event, .timeline-event.left, .timeline-event.right { width: 100%; left: 0; text-align: left; padding: 40px 0 0 40px; }
  .timeline-event-content { margin: 0; max-width: 100%; }
  .timeline-event .timeline-year, .timeline-event.left .timeline-year { left: auto; right: 15px; top: 10px; transform: none; }
  .timeline-badge, .timeline-event.right .timeline-badge, .timeline-event.left .timeline-badge { left: 10px; transform: translate(-50%, -50%); }
}

@media (max-width: 768px) {
  /* About page responsive */
  .about-container { margin: 0 8px 24px; transform: translateY(0); padding: 1.5rem 1rem; }
  .about-container h1 { font-size: 1.7rem; }
  .interests-grid { flex-direction: column; gap: 0.7rem; }
  .interest-box { min-width: unset; width: 100%; justify-content: flex-start; }
  .about-hero { padding: 3rem 1rem 2rem; }
  .luxury-title { font-size: 2rem; }

  /* Experience page responsive */
  .dashboard .header h1 { font-size: 2.5rem; }
  .experiences-grid { grid-template-columns: 1fr; }
  .search-box { width: 100%; }
  .contact-info { flex-direction: column; align-items: center; }

  /* Certifications page responsive */
  .timeline-title { font-size: 2rem;
  }
}

/* Letters Page Styles */
.letters-container {
  max-width: 950px;
  margin: 48px auto;
  padding: 2.5rem 2rem;
  background: rgba(24,24,24,0.85);
  border-radius: 24px;
  box-shadow: 0 0 32px #00fff766, 0 2px 32px #ffd70044;
  backdrop-filter: blur(8px);
}

.letters-title {
  text-align: center;
  color: #00fff7;
  font-size: 2.5rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: 2.5rem;
  letter-spacing: 2px;
  text-shadow: 0 2px 16px #000a;
}

.letters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.letter-card {
  background: rgba(34,34,34,0.85);
  border-radius: 18px;
  box-shadow: 0 0 18px #ffd70044;
  padding: 2rem 1.5rem;
  border: 2px solid #222;
  transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
}

.letter-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 24px #00fff7cc, 0 2px 24px #ffd700cc;
  border: 2px solid #00fff7;
}

.letter-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #ffd70033;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.letter-card h2 {
  color: #00fff7;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin: 0;
  text-shadow: 0 2px 8px #00fff799;
}

.letter-card .company {
  color: #ffd700;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.letter-date {
  color: #ccc;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  padding-left: 1rem;
}

.letter-body {
  font-size: 1.08rem;
  line-height: 1.7;
  color: #e0e0e0;
}

.letter-body p { margin-bottom: 1rem; }
.letter-body p:last-child { margin-bottom: 0; }

.letter-signature {
  margin-top: 1.5rem;
  font-style: italic;
  color: #ffd700;
  text-align: right;
}

.letter-signature .name { font-weight: bold; display: block; }
.letter-signature .title { font-size: 0.9rem; color: #00fff7; }

.letter-download { margin-top: 1.5rem; text-align: left; }

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 255, 247, 0.1);
  color: #00fff7;
  padding: 0.5rem 1rem;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid #00fff733;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.download-link:hover {
  background: linear-gradient(90deg, #00fff7, #ffd700);
  color: #181818;
  box-shadow: 0 0 12px #00fff799;
}

/* Contact Page Styles */
.contact-container { background: rgba(24,24,24,0.85); padding: 2.5rem 2rem; border-radius: 24px; box-shadow: 0 0 32px #00fff766, 0 2px 32px #ffd70044; max-width: 420px; width: 90%; color: #fff; position: relative; backdrop-filter: blur(8px); animation: fadeIn 1s; margin: 64px auto; }
.contact-container h2 { margin-top: 0; color: #ffd700; text-align: center; font-family: 'Playfair Display', serif; font-size: 2rem; letter-spacing: 1px; text-shadow: 0 2px 12px #000a; }
.contact-container label { display: block; margin: 1rem 0 0.3rem 0; font-weight: 500; color: #00fff7; letter-spacing: 0.5px; }
.contact-container input, .contact-container textarea { width: 100%; padding: 0.7rem; border-radius: 10px; border: 1.5px solid #222; background: rgba(34,34,34,0.85); color: #ffd700; margin-bottom: 1rem; font-size: 1rem; box-shadow: 0 2px 12px #00fff744; transition: border 0.2s, box-shadow 0.2s; box-sizing: border-box; }
.contact-container input:focus, .contact-container textarea:focus { border: 1.5px solid #00fff7; box-shadow: 0 0 12px #00fff7cc; outline: none; }
.contact-container textarea { resize: vertical; }
.contact-container .actions { display: flex; justify-content: flex-end; gap: 1rem; }
.contact-container .btn { background: linear-gradient(90deg, #ffd700, #00fff7); color: #222; border: none; padding: 0.7rem 1.5rem; border-radius: 32px; font-weight: 600; cursor: pointer; font-size: 1.08rem; box-shadow: 0 2px 12px #00fff744; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.contact-container .btn:hover { background: linear-gradient(90deg, #00fff7, #ffd700); color: #fff; box-shadow: 0 0 18px #ffd700cc, 0 0 4px #00fff7; }
.contact-container .btn:disabled { opacity: 0.6; cursor: not-allowed; }
.success-message { display: none; background: rgba(0, 255, 127, 0.1); border: 1px solid #00ff7f; color: #00ff7f; padding: 1rem; border-radius: 10px; margin-top: 1rem; text-align: center; animation: slideIn 0.3s ease; }
.error-message { display: none; background: rgba(255, 99, 99, 0.1); border: 1px solid #ff6363; color: #ff6363; padding: 1rem; border-radius: 10px; margin-top: 1rem; text-align: center; animation: slideIn 0.3s ease; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid #222; border-radius: 50%; border-top-color: #00fff7; animation: spin 1s ease-in-out infinite; margin-right: 8px; }
.return-link { display: block; text-align: center; margin-top: 2rem; color: #ffd700; font-weight: 600; text-decoration: none; font-size: 1.08rem; transition: color 0.2s; }
.return-link:hover { color: #00fff7; text-decoration: underline; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(40px);} to { opacity: 1; transform: translateY(0);} }
@keyframes slideIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Skills Page Styles */
.skills-dashboard .header p { color: #ffd700; font-size: 1.2rem; margin-bottom: 1rem; }
.skills-dashboard .stats-overview .stat-card { padding: 20px; }
.skills-dashboard .stats-overview .stat-card:hover { transform: translateY(-5px); }
.skills-dashboard .stats-overview .stat-number { font-size: 2.5rem; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; animation: fadeInUp 1s ease-out 0.6s both; }
.skill-category { background: rgba(24,24,24,0.92); backdrop-filter: blur(6px); border-radius: 18px; padding: 25px; border: 2px solid #222; box-shadow: 0 0 24px #00fff766, 0 2px 24px #ffd70044; transition: all 0.3s ease; }
.skill-category:hover { transform: scale(1.02); box-shadow: 0 0 48px #ffd700cc, 0 2px 32px #00fff7cc; border: 2px solid #00fff7; }
.category-header { display: flex; align-items: center; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid rgba(255, 255, 255, 0.2); }
.category-icon { font-size: 1.5rem; margin-right: 10px; color: #ffd700; animation: pulse 2s infinite; }
.category-title { font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: bold; color: #00fff7; letter-spacing: 1px; }
.skill-item { margin-bottom: 15px; opacity: 0; animation: slideInLeft 0.8s ease-out forwards; }
.skill-item:nth-child(2) { animation-delay: 0.1s; }
.skill-item:nth-child(3) { animation-delay: 0.2s; }
.skill-item:nth-child(4) { animation-delay: 0.3s; }
.skill-item:nth-child(5) { animation-delay: 0.4s; }
.skill-item:nth-child(6) { animation-delay: 0.5s; }
.skill-name { font-weight: 500; margin-bottom: 5px; display: flex; justify-content: space-between; align-items: center; }
.skill-level { font-size: 0.8rem; background: linear-gradient(90deg, #ffd700, #00fff7); color: #181818; padding: 2px 8px; border-radius: 10px; font-weight: bold; }
.skill-bar { height: 8px; background: rgba(255, 255, 255, 0.2); border-radius: 10px; overflow: hidden; position: relative; }
.skill-progress { height: 100%; background: linear-gradient(90deg, #ffd700, #00fff7); border-radius: 10px; transition: width 2s ease-in-out; position: relative; }
.skill-progress::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent); animation: shimmer 2s infinite; }
.filter-buttons { display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; flex-wrap: wrap; animation: fadeInUp 1s ease-out 0.9s both; }
.skills-dashboard .filter-btn { padding: 10px 20px; background: rgba(24,24,24,0.92); border: 2px solid #222; border-radius: 25px; color: white; cursor: pointer; transition: all 0.3s ease; font-weight: 500; }
.skills-dashboard .filter-btn:hover, .skills-dashboard .filter-btn.active { background: linear-gradient(90deg, #ffd700, #00fff7); color: #181818; transform: translateY(-2px); box-shadow: 0 0 18px #ffd700cc, 0 0 4px #00fff7; border: 2px solid #00fff7; }
.skills-dashboard .search-container { text-align: center; margin-bottom: 30px; animation: fadeInUp 1s ease-out 1.2s both; }
.skills-dashboard .search-box { padding: 12px 20px; background: rgba(24,24,24,0.92); border: 2px solid #222; border-radius: 25px; color: white; font-size: 1rem; width: 300px; max-width: 90%; backdrop-filter: blur(6px); transition: all 0.3s ease; }
.skills-dashboard .search-box:focus { outline: none; border-color: #00fff7; box-shadow: 0 0 20px rgba(0, 255, 247, 0.3); }
.skills-dashboard .search-box::placeholder { color: rgba(255, 255, 255, 0.6); }

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

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

/* Tools & Platforms Page Styles */
.tools-container {
  max-width: 950px;
  margin: 48px auto;
  padding: 2.5rem 2rem;
  background: rgba(24,24,24,0.85);
  border-radius: 24px;
  box-shadow: 0 0 32px #00fff766, 0 2px 32px #ffd70044;
  backdrop-filter: blur(8px);
}
.tools-title {
  text-align: center;
  color: #00fff7;
  font-size: 2.5rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  margin-bottom: 2.5rem;
  letter-spacing: 2px;
  text-shadow: 0 2px 16px #000a;
}
.tools-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  align-items: flex-start;
}
.tools-block {
  flex: 1 1 340px;
  min-width: 300px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  background: rgba(34,34,34,0.85);
  border-radius: 18px;
  box-shadow: 0 0 18px #ffd70044;
  padding: 1.5rem 1rem 1.2rem 1rem;
  margin-bottom: 1rem;
}
.tools-block h2 {
  color: #00fff7;
  text-align: center;
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
  font-family: 'Montserrat', 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  text-shadow: 0 2px 8px #00fff799;
}
.tools-grid { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; width: 100%; }
.tool-box { background: rgba(24,24,24,0.98); border-radius: 14px; padding: 1.5rem 1rem; text-align: center; box-shadow: 0 0 12px #00fff733, 0 2px 12px #ffd70044; transition: transform 0.2s, box-shadow 0.2s, border 0.2s; border: 2px solid #222; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 120px; position: relative; overflow: hidden; backdrop-filter: blur(4px); }
.tool-box:hover { transform: translateY(-8px) scale(1.04); box-shadow: 0 0 24px #00fff7cc, 0 2px 24px #ffd700cc; border: 2px solid #00fff7; }
.tool-box i { font-size: 2.2rem; margin-bottom: 0.5rem; color: #00fff7; transition: color 0.2s, text-shadow 0.2s; text-shadow: 0 2px 8px #00fff799; }
.tool-box:hover i { color: #ffd700; text-shadow: 0 0 12px #ffd700cc; }
.tool-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.2rem; color: #ffd700; letter-spacing: 0.5px; font-family: 'Montserrat', 'Playfair Display', serif; }
.tool-type { font-size: 0.95rem; color: #00fff7; margin-bottom: 0; display: block; font-weight: 500; letter-spacing: 0.5px; }

@media (max-width: 768px) {
  /* Hamburger Menu Active State */
  #menu-toggle {
    display: block;
  }

  #menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  #menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  #menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Navigation Menu Mobile Styles */
  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 32, 39, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1001;
  }

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

  nav ul {
    flex-direction: column;
    gap: 2rem;
  }

  header .logo {
    font-size: 1.5rem; z-index: 1002;
  }

  
  .hero {
    padding: 2rem 1.5rem;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .services-section, .projects-section {
    margin-top: 48px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .services-title, .projects-title {
    font-size: 2rem;
  }

  /* Letters page responsive */
  .letters-container { padding: 2rem 1rem; }
  .letters-title { font-size: 2rem; }
  .letter-card h2 { font-size: 1.3rem; }

  /* Skills page responsive */
  .skills-dashboard .header h1 { font-size: 2rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .skills-dashboard .search-box { width: 100%; }
}

@media (max-width: 900px) {
  /* Tools page responsive */
  .tools-sections {
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
  }
  .tools-block {
    max-width: 100%;
  }
  .tools-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  /* Contact page responsive */
  .contact-container { padding: 1.2rem 0.5rem; }
  .contact-container h2 { font-size: 1.3rem;
  }
}

@media (max-width: 600px) {
  header {
    padding: 1rem;
  }
  
  header .logo {
    font-size: 1.3rem;
  }
  
  nav ul li a {
    font-size: 1.2rem; /* Make text larger for overlay menu */
  }
  .hero {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1rem;
  }
  
  .hero-content {
    text-align: center;
    max-width: 100%;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }
  
  .hero-content h2 {
    font-size: 1.1rem;
  }
  
  .hero-content h3 {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
  }
  
  .btn-primary {
    text-align: center;
    padding: 0.8rem 1.5rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .hero-image-circle {
    width: 120px;
    height: 120px;
  }
  
  .services-title, .projects-title {
    font-size: 1.6rem;
    text-align: center;
  }
  
  .services-section, .projects-section {
    margin-top: 32px;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .service-card {
    padding: 1.5rem 1rem;
    min-width: auto;
    width: 100%;
  }
  
  .work {
    min-width: auto;
    width: 100%;
  }
  
  .service-card h3 {
    font-size: 1.2rem;
  }
  
  .service-card p {
    font-size: 1rem;
  }

  /* Tools page responsive */
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .tool-box {
    height: auto;
    padding: 1.2rem 0.7rem;
  }
  .tools-title {
    font-size: 1.5rem;
  }
}

/* Landscape Mode - Mobile Devices */
@media (max-height: 600px) and (orientation: landscape) {
  * {
    margin: 0;
    padding: 0;
  }

  html, body {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  header {
    width: 100vw;
    padding: 0.8rem 1.5rem;
    margin: 0;
    box-sizing: border-box;
  }

  .logo {
    font-size: 1.3rem;
  }

  nav ul {
    gap: 0.8rem;
  }

  nav ul li a {
    font-size: 0.85rem;
    padding: 0.2rem 0.4rem;
  }

  .hero {
    width: 100vw;
    padding: 1.5rem 1rem;
    gap: 1rem;
    margin: 0;
    box-sizing: border-box;
  }

  .hero-content {
    max-width: 100%;
    margin: 0;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content h2 {
    font-size: 0.9rem;
  }

  .hero-content h3 {
    font-size: 0.85rem;
  }

  .hero-buttons {
    flex-direction: row;
    gap: 0.5rem;
  }

  .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .hero-image-circle {
    width: 100px;
    height: 100px;
  }

  .services-section,
  .projects-section {
    width: 100vw;
    margin: 1.5rem 0;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .services-title,
  .projects-title {
    font-size: 1.3rem;
  }

  .service-card,
  .work {
    max-width: 100%;
    padding: 1rem;
  }

  .scroll-progress-bar {
    height: 3px;
  }

  .social-links {
    margin-bottom: 0.8rem;
  }

  .social-links a {
    font-size: 1.2rem;
    margin-right: 0.8rem;
  }
}

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