* { 
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body { 
  height: 100%; 
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--c-text);
  background: var(--c-white);
  min-height: 100vh;
  width: 100vw;
  position: relative;
}

/* Clean anime background - no floating effects */

.bg-grid { 
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

.container { 
  width: 100%; 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 20px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .container {
    max-width: 100%;
    margin: 0;
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    max-width: 100%;
    margin: 0;
    padding: 12px;
  }
}

/* Unified Header System - Classic Clean Style */
.site-header, .header, .mobile-header, .desktop-header {
  background: linear-gradient(135deg, #ff85a2, #ff6b9d);
  border-bottom: none;
  box-shadow: 0 2px 12px rgba(255, 133, 162, 0.3), 0 1px 3px rgba(255, 107, 157, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

/* Mobile Header */
.mobile-header {
  display: block;
}

.mobile-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Desktop Header */
.desktop-header {
  display: none;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Logo Section */
.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  object-fit: cover;
}

/* Mobile Menu Button - Classic Clean Style */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  color: var(--c-text);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
}

.mobile-menu-btn:hover {
  background: var(--c-surface-light);
  border-color: var(--c-primary);
}

.header-container, .navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Navigation for other pages */
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--c-white);
  color: var(--c-text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  transition: all 0.2s ease;
  border: 1px solid var(--c-border);
}

.nav a:hover, .nav a.active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: var(--c-white);
}

/* Brand Section */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  object-fit: cover;
  background-color: transparent;
}

.brand-name {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: white;
  letter-spacing: 0.3px;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--c-white);
  color: var(--c-text);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  transition: all 0.3s ease;
  border: 1px solid var(--c-border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

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

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

.nav-link:hover,
.nav-link.active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 198, 238, 0.3);
}

.nav-link i {
  font-size: var(--font-size-sm);
}

/* Mobile Menu Toggle - Anime Style */
.mobile-menu-toggle, .mobile-toggle {
  display: none;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-secondary) 100%);
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transition: all 0.4s ease;
  position: relative;
  margin-right: 0.5rem;
  color: white;
  box-shadow: 0 0 15px rgba(44, 198, 238, 0.5);
  width: 40px;
  height: 40px;
  overflow: hidden;
}

.mobile-menu-toggle::before, .mobile-toggle::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(45deg, var(--c-primary), transparent, var(--c-secondary));
  z-index: -1;
  opacity: 0.6;
  animation: rotateGradient 3s linear infinite;
  border-radius: 50%;
}

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

.mobile-menu-toggle:hover, .mobile-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(44, 198, 238, 0.7);
}

.mobile-menu-toggle svg {
  display: block;
  transition: transform 0.3s ease;
}

.mobile-menu-toggle.active svg {
  transform: rotate(90deg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile Menu Content - Clean Anime Style */
.mobile-menu-content {
  padding: 1rem;
  background: var(--c-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #23caee;
}



.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: transparent;
  color: white;
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  transition: all 0.2s ease;
  position: relative;
  text-align: center;
  border-radius: 12px;
  margin: 0 20px;
}

/* Removed complex pseudo-elements for cleaner design */

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.mobile-nav-link i {
  width: 40px;
  height: 40px;
  text-align: center;
  font-size: 20px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover i,
.mobile-nav-link.active i {
  color: white;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

/* Responsive Design */
@media (min-width: 769px) {
  .mobile-header {
    display: none;
  }
  
  .desktop-header {
    display: block;
  }
  
  .logo {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .header-container {
    height: 60px;
    padding: 0 1rem;
    justify-content: space-between;
  }
  
  .brand {
    flex: 1;
    gap: 0.5rem;
  }
  
  .mobile-menu {
    right: 0.5rem;
    width: calc(100vw - 1rem);
    max-width: 320px;
  }
}
  
  .brand-logo {
    width: 32px;
    height: 32px;
  }
  
  .brand-name {
    font-size: 1.1rem;
  }
  
  .logo {
    width: 32px;
    height: 32px;
  }
  
  .mobile-nav {
    height: 60px;
    padding: 0 1rem;
  }
  
  .nav-container {
    height: 60px;
    padding: 0 1rem;
  }

/* Mobile Menu Overlay - Not needed with full-screen approach */
.mobile-menu-overlay {
  display: none;
}

/* Mobile Menu Panel - Pink Gradient Theme */
.mobile-menu, .offcanvas {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, rgba(255, 133, 162, 0.95), rgba(255, 107, 157, 0.95));
  backdrop-filter: blur(15px);
  z-index: 1600;
  transform: translateX(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.offcanvas {
  top: 70px;
  right: 20px;
}

.offcanvas.active, .mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

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

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  min-height: 80px;
}

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

.mobile-menu-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: white;
  margin: 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mobile-menu-close {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 10px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 24px;
  position: absolute;
  top: 20px;
  right: 30px;
}

.mobile-menu-close:hover {
  color: #ccc;
  transform: rotate(90deg);
}

/* Mobile menu brand removed - no logo after hamburger */

.mobile-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-close:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.mobile-menu nav {
  padding: 30px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 12px;
}

/* Removed - using .mobile-nav-link instead */
/* .mobile-menu-nav a styles moved to .mobile-nav-link */

/* All .mobile-menu-nav a styles moved to .mobile-nav-link */

/* All .mobile-menu-nav a i styles moved to .mobile-nav-link i */

/* Cleaned up - using .mobile-nav-link:last-child instead */

/* Mobile Menu Responsive */
@media (max-width: 480px) {
  .mobile-menu {
    left: 0;
    right: 0;
    width: 100vw;
    top: 0;
    max-width: none;
  }
  
  .mobile-menu-header {
    padding: 15px 20px;
    min-height: 60px;
  }
  
  .mobile-menu-close {
    top: 15px;
    right: 20px;
  }
  
  .mobile-menu nav {
    padding: 10px 0;
  }
  
  .mobile-nav {
    padding: 0 12px;
    height: 60px;
  }
  
  .brand {
    font-size: 16px;
  }
  
  .brand-logo {
    width: 28px;
    height: 28px;
  }
  
  .mobile-nav-link {
    padding: 16px;
    font-size: var(--font-size-xs);
    margin: 0 16px;
    gap: 6px;
  }
  
  .mobile-nav-link i {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

/* Tighten global spacing for small screens */
@media (max-width: 520px) {
  .container { padding: 12px; }
  .navbar { padding: 10px 12px; }
  .brand img { width: 36px; height: 36px; }
  .brand span { font-size: var(--font-size-lg); }
  .section { padding: 16px; }
  .btn { padding: 10px 12px; font-size: var(--font-size-sm); }
  .card { margin-bottom: 16px; }
}

/* Better mobile grid spacing */
@media (max-width: 520px) {
  .grid { gap: 12px; }
  .showcase { margin-top: 16px; }
}


.btn { display: inline-flex; align-items: center; gap: 10px; border: none; border-radius: 12px; padding: 12px 16px; cursor: pointer; font-weight: var(--font-weight-bold); font-size: var(--font-size-base); line-height: var(--line-height-normal); transition: all 200ms ease; text-decoration: none; }
.btn-primary { color: var(--c-white); background: var(--c-primary); border: 2px solid var(--c-primary); }
.btn-primary:hover { background: var(--c-secondary); border-color: var(--c-secondary); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: var(--c-accent); color: var(--c-text); border: 2px solid var(--c-secondary); }
.btn-ghost:hover { background: var(--c-white); border-color: var(--c-primary); transform: translateY(-1px); box-shadow: var(--shadow-soft); }

.card { background: var(--c-white); border: 1px solid var(--c-secondary); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); position: relative; }
.section { padding: 28px; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid-4 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Heading Styles with Pink Gradient */
h1, h2, h3, h4, h5, h6 {
  background: linear-gradient(135deg, #ff85a2, #ff6b9d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: var(--font-weight-bold);
  margin: 0 0 16px 0;
}

h1 { font-size: var(--font-size-4xl); line-height: var(--line-height-tight); }
h2 { font-size: var(--font-size-3xl); line-height: var(--line-height-tight); }
h3 { font-size: var(--font-size-2xl); line-height: var(--line-height-tight); }
h4 { font-size: var(--font-size-xl); line-height: var(--line-height-normal); }
h5 { font-size: var(--font-size-lg); line-height: var(--line-height-normal); }
h6 { font-size: var(--font-size-base); line-height: var(--line-height-normal); }

/* Pink Gradient Highlighting */
.highlight {
  background: linear-gradient(135deg, #ff85a2, #ff6b9d);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: var(--font-weight-medium);
}

.highlight-border {
  border: 2px solid;
  border-image: linear-gradient(135deg, #ff85a2, #ff6b9d) 1;
  border-radius: 8px;
}

.highlight-text {
  background: linear-gradient(135deg, #ff85a2, #ff6b9d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: var(--font-weight-semibold);
}

/* Footer - Fixed at bottom */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  text-align: center;
  color: var(--c-text);
  font-size: var(--font-size-xs);
  background-color: var(--c-accent);
  padding: 12px 16px;
  border-top: 1px solid var(--c-secondary);
  z-index: 100;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(255, 133, 162, 0.95), rgba(255, 107, 157, 0.95));
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 0 12px 0;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  justify-content: space-around;
}

.mobile-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 8px 4px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  border-radius: 12px;
  margin: 0 4px;
}

.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item.active {
  color: white;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.mobile-bottom-nav .nav-item i {
  font-size: 18px;
  margin-bottom: 4px;
}

.mobile-bottom-nav .nav-item span {
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
}

/* Add bottom padding to body to prevent content overlap with fixed footer */
body {
  padding-bottom: 60px;
}

/* Package grid */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.pkg {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pkg:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.pkg.selected {
  border-color: var(--accent-color);
  background: rgba(255, 193, 7, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

/* Projects Grid - Custom grid with hover text color change */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1rem 0;
}

.projects-grid .card {
  background: var(--c-white);
  border: 2px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.projects-grid .card:hover {
  transform: translateY(-4px);
  border-color: var(--c-primary);
  box-shadow: 0 8px 25px rgba(44, 198, 238, 0.3);
}

/* Hover effect for projects-grid cards - change all text to black */
.projects-grid .card:hover,
.projects-grid .card:hover * {
  color: black !important;
  -webkit-text-fill-color: black !important;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .desktop-footer {
    display: none;
  }
  
  .mobile-bottom-nav {
    display: flex;
  }
  
  body {
    padding-bottom: 80px;
  }
}