@media (max-width: 1024px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .discord-demo {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
  }

  .portfolio-showcase {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
  }

  .portfolio-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .project-card {
    min-height: 420px;
  }

  .project-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .process {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-actions .btn { display: none; }

  .nav-links.open {
    display: grid;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 24px;
    text-align: center;
    backdrop-filter: blur(20px);
  }

  /* Custom Scrollbar Mobile Adjustments */
  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }

  .scroll-progress {
    height: 2px;
    top: 65px;
  }

  .scroll-progress::before {
    border-radius: 0 0 1px 1px;
  }

  .scroll-progress.glow::before {
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.6), 0 0 20px rgba(74, 222, 128, 0.3);
  }

  .scroll-progress.visible {
    opacity: 1;
  }

  .games-grid,
  .services-grid,
  .portfolio-showcase {
    grid-template-columns: 1fr;
  }

  .portfolio-showcase {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .portfolio-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .portfolio-filters {
    gap: 12px;
  }

  .filter-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .project-card {
    min-height: 400px;
  }

  .project-header {
    padding: 20px 20px 0;
  }

  .project-content {
    padding: 0 20px;
  }

  .project-metrics {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }

  .project-actions {
    flex-direction: column;
    gap: 8px;
    padding-bottom: 20px;
  }

  .project-preview {
    position: static;
    width: 100%;
    opacity: 1;
    transform: none;
    background: rgba(255,255,255,0.05);
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    height: 80px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .process {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .step {
    padding: 24px 20px;
    min-height: auto;
  }
  
  .process-interactive {
    margin-top: 16px;
  }
  
  .flow-diagram {
    padding: 12px;
    gap: 8px;
  }
  
  .flow-node {
    padding: 10px 12px;
  }
  
  .flow-arrow {
    font-size: 1rem;
  }
  
  .service-card {
    min-height: 400px;
  }
  
  .discord-messages {
    height: 300px;
  }
  
  .demo-features {
    order: -1;
  }

  .requirements-form {
    max-width: 100%;
  }
  
  .node-steps {
    max-width: 150px;
  }
  
  .code-snippets,
  .deployment-interface {
    max-width: 100%;
  }
  
  .status-metrics {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .server-bars {
    gap: 2px;
  }
  
  .bar {
    width: 4px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
    align-items: center;
  }

  .footer .links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .footer .social {
    gap: 16px;
  }

  .footer .social a {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .footer a {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .footer .brand {
    font-size: 1.1rem;
  }

  .footer .links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .terms-section h2 {
    font-size: 1.2rem;
    padding-left: 20px;
  }

  .terms-section h2::before {
    width: 3px;
    height: 20px;
  }

  .terms-list li {
    padding-left: 20px;
  }

  .terms-highlight {
    padding: 16px;
    margin: 16px 0;
  }

  .terms-contact {
    padding: 24px;
  }

  .testimonials-stats {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px;
  }

  .stat-item::after {
    display: none;
  }

  .slide {
    padding: 32px 24px 50px;
  }

  .testimonial-header {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .testimonial-quote {
    font-size: 1rem;
    padding: 0 16px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .contract-container {
    max-width: 100%;
  }

  .contract-header {
    padding: 20px;
  }

  .contract-content {
    padding: 20px;
  }

  .contract-title h3 {
    font-size: 1rem;
  }

  .term-item {
    padding: 10px;
  }

  .signature-section {
    padding: 16px;
  }

  .contract-footer {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100%, calc(100vw - 32px));
    margin-inline: auto;
    padding-inline: 12px;
  }

  .section {
    padding: 48px 0;
  }

  /* Enhanced Navigation Mobile */
  .nav {
    backdrop-filter: blur(16px);
  }

  .nav-inner {
    padding: 16px 0;
    gap: 16px;
  }

  .brand {
    font-size: 1rem;
  }

  .hamburger {
    padding: 12px;
  }

  .hamburger span {
    width: 20px;
    height: 2px;
  }

  /* Mobile Navigation Menu */
  .nav-links.open {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding: 32px 24px;
    text-align: center;
    z-index: 1000;
    gap: 24px;
    animation: mobileNavSlide 0.3s ease-out;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 16px 0;
    display: block;
    width: 100%;
  }

  /* Enhanced Hero Mobile */
  .hero {
    min-height: calc(100vh - 70px);
    padding: 32px 0;
  }

  .hero-content {
    gap: 32px;
  }

  .hero-main {
    gap: 24px;
  }

  .availability {
    padding: 6px 14px;
    font-size: 0.75rem;
  }

  .headline {
    font-size: clamp(2rem, 8vw, 3.5rem);
    line-height: 1.1;
  }

  .sub-headline {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 90%;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 300px;
  }

  .hero-buttons .btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    min-height: 48px;
  }

  /* Enhanced Hero Stats */
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 100%;
  }

  .profile-card {
    grid-template-columns: auto 1fr;
    gap: 16px;
    padding: 16px 20px;
  }

  .profile-frame {
    width: 80px;
    height: 80px;
    border-radius: 24px;
  }

  .profile-meta p {
    font-size: 0.7rem;
  }

  .profile-meta strong {
    font-size: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 16px;
    gap: 12px;
  }

  .stat-card .icon {
    font-size: 1.2rem;
  }

  .stat-card p {
    font-size: 0.8rem;
  }

  .stat-card strong {
    font-size: 1.4rem;
  }

  /* Enhanced Section Titles */
  .section-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    margin-bottom: 32px;
  }

  /* Enhanced Services Grid */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    min-height: 400px;
    padding: 24px;
    border-radius: 20px;
  }

  .service-header {
    margin-bottom: 20px;
  }

  .service-header .icon {
    font-size: 1.8rem;
  }

  .service-header h3 {
    font-size: 1.2rem;
  }

  /* Enhanced Discord Demo */
  .discord-demo {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 100%;
  }

  .discord-interface {
    border-radius: 16px;
    max-width: 100%;
  }

  .discord-header {
    padding: 12px 16px;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .server-info {
    width: 100%;
  }

  .server-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .discord-messages {
    height: 280px;
    padding: 12px 16px;
    gap: 12px;
  }

  .message {
    gap: 8px;
  }

  .message-avatar {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .message-content {
    flex: 1;
  }

  .message-header {
    margin-bottom: 6px;
  }

  .username {
    font-size: 0.9rem;
  }

  .message-text {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .discord-input {
    padding: 12px 16px;
  }

  .input-container {
    padding: 0 12px;
  }

  #demo-input {
    padding: 12px 0;
    font-size: 0.95rem;
  }

  .send-btn {
    padding: 8px;
    margin-left: 8px;
  }

  .demo-features {
    padding: 20px;
    border-radius: 16px;
  }

  .demo-features h3 {
    font-size: 1rem;
    margin-bottom: 16px;
  }

  .command-buttons {
    gap: 8px;
  }

  .command-btn {
    padding: 12px 16px;
    font-size: 0.85rem;
    border-radius: 12px;
    min-height: 44px;
  }

  /* Enhanced Portfolio */
  .portfolio-showcase {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .portfolio-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px;
  }

  .portfolio-filters {
    gap: 8px;
    padding: 0 4px;
    flex-wrap: wrap;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
    border-radius: 20px;
    min-height: 40px;
  }

  .project-card {
    min-height: 380px;
    border-radius: 20px;
  }

  .project-header {
    padding: 20px 20px 16px;
  }

  .project-content {
    padding: 0 20px;
  }

  .project-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .project-description {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .project-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 16px;
  }

  .metric {
    text-align: center;
  }

  .metric-value {
    font-size: 1.1rem;
  }

  .metric-label {
    font-size: 0.75rem;
  }

  .project-tech {
    gap: 6px;
    padding: 0 20px 16px;
  }

  .tech-tag {
    padding: 4px 10px;
    font-size: 0.7rem;
    border-radius: 12px;
  }

  .project-actions {
    flex-direction: column;
    gap: 10px;
    padding: 0 20px 20px;
  }

  .project-actions .btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.9rem;
    min-height: 44px;
  }

  .project-preview {
    height: 70px;
    border-radius: 0 0 20px 20px;
  }

  .preview-content {
    padding: 12px 16px;
  }

  /* Enhanced Footer */
  .footer {
    padding: 48px 0 24px;
    margin-top: 80px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .footer .brand {
    font-size: 1.1rem;
  }

  .footer .links {
    flex-direction: column;
    gap: 20px;
  }

  .footer .social {
    gap: 16px;
    justify-content: center;
  }

  .footer .social a {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .footer a {
    padding: 12px 20px;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  .footer .copyright {
    margin-top: 24px;
    padding-top: 24px;
    font-size: 0.8rem;
  }

  /* Enhanced Loading Screen */
  .loading-content {
    max-width: 90%;
    padding: 32px 24px;
  }

  .logo-icon {
    font-size: 3.5rem;
    width: 90px;
    height: 90px;
  }

  .loading-title {
    font-size: 1.8rem;
  }

  .loading-text {
    font-size: 0.95rem;
  }

  .loading-status {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  .loading-dots {
    gap: 8px;
  }
}

@media (max-width: 360px) {
  .container {
    width: min(100%, calc(100vw - 24px));
    padding-inline: 8px;
  }

  .section {
    padding: 40px 0;
  }

  .nav-inner {
    padding: 12px 0;
  }

  .brand {
    font-size: 0.95rem;
  }

  .hamburger span {
    width: 18px;
  }

  .hero {
    min-height: calc(100vh - 65px);
    padding: 24px 0;
  }

  .hero-content {
    gap: 24px;
  }

  .headline {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }

  .sub-headline {
    font-size: 0.95rem;
    max-width: 95%;
  }

  .hero-buttons {
    max-width: 280px;
  }

  .hero-buttons .btn {
    padding: 14px 20px;
    font-size: 0.95rem;
    min-height: 46px;
  }

  .profile-frame {
    width: 70px;
    height: 70px;
    border-radius: 20px;
  }

  .profile-meta p {
    font-size: 0.65rem;
  }

  .profile-meta strong {
    font-size: 0.95rem;
  }

  .stat-card {
    padding: 14px;
  }

  .stat-card strong {
    font-size: 1.3rem;
  }

  .service-card {
    min-height: 350px;
    padding: 20px;
  }

  .discord-messages {
    height: 240px;
  }

  .discord-header {
    padding: 10px 12px;
  }

  .demo-features {
    padding: 16px;
  }

  .command-btn {
    padding: 10px 14px;
    font-size: 0.8rem;
    min-height: 42px;
  }

  .portfolio-stats {
    padding: 16px;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 0.75rem;
    min-height: 38px;
  }

  .project-card {
    min-height: 350px;
  }

  .footer {
    padding: 40px 0 20px;
    margin-top: 60px;
  }

  .footer-inner {
    gap: 28px;
  }

  .loading-content {
    padding: 24px 20px;
  }

  .logo-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
  }

  .loading-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 320px) {
  .container {
    width: min(100%, calc(100vw - 16px));
    padding-inline: 8px;
  }

  .section {
    padding: 32px 0;
  }

  .nav-inner {
    padding: 10px 0;
    gap: 12px;
  }

  .brand {
    font-size: 0.9rem;
  }

  .hamburger span {
    width: 16px;
    height: 2px;
  }

  .hero {
    min-height: calc(100vh - 60px);
    padding: 20px 0;
  }

  .hero-content {
    gap: 20px;
  }

  .availability {
    padding: 6px 12px;
    font-size: 0.7rem;
  }

  .headline {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
    line-height: 1.15;
  }

  .sub-headline {
    font-size: 0.9rem;
    max-width: 100%;
  }

  .hero-buttons {
    max-width: 260px;
    gap: 10px;
  }

  .hero-buttons .btn {
    padding: 12px 18px;
    font-size: 0.9rem;
    min-height: 44px;
  }

  .profile-frame {
    width: 60px;
    height: 60px;
    border-radius: 16px;
  }

  .profile-meta p {
    font-size: 0.6rem;
  }

  .profile-meta strong {
    font-size: 0.9rem;
  }

  .stat-card {
    padding: 12px;
    gap: 8px;
  }

  .stat-card .icon {
    font-size: 1.1rem;
  }

  .stat-card p {
    font-size: 0.75rem;
  }

  .stat-card strong {
    font-size: 1.2rem;
  }

  .service-card {
    min-height: 320px;
    padding: 18px;
    border-radius: 16px;
  }

  .service-header .icon {
    font-size: 1.6rem;
  }

  .service-header h3 {
    font-size: 1.1rem;
  }

  .service-header p {
    font-size: 0.85rem;
  }

  .discord-messages {
    height: 200px;
  }

  .discord-header {
    padding: 8px 12px;
    gap: 8px;
  }

  .server-details h3 {
    font-size: 0.9rem;
  }

  .server-details p {
    font-size: 0.75rem;
  }

  .demo-features {
    padding: 14px;
  }

  .demo-features h3 {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }

  .command-btn {
    padding: 10px 12px;
    font-size: 0.75rem;
    min-height: 40px;
    border-radius: 10px;
  }

  .portfolio-stats {
    padding: 14px;
    gap: 8px;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 0.7rem;
    min-height: 36px;
    border-radius: 18px;
  }

  .project-card {
    min-height: 320px;
    border-radius: 16px;
  }

  .project-header {
    padding: 16px 16px 12px;
  }

  .project-content {
    padding: 0 16px;
  }

  .project-title {
    font-size: 1rem;
  }

  .project-description {
    font-size: 0.85rem;
  }

  .project-metrics {
    padding: 10px 12px;
  }

  .project-tech {
    padding: 0 16px 12px;
  }

  .project-actions {
    padding: 0 16px 16px;
  }

  .project-actions .btn {
    padding: 10px 14px;
    font-size: 0.85rem;
    min-height: 42px;
  }

  .footer {
    padding: 32px 0 16px;
    margin-top: 48px;
  }

  .footer-inner {
    gap: 24px;
  }

  .footer .brand {
    font-size: 1rem;
  }

  .footer .social a {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .footer a {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .footer .copyright {
    margin-top: 20px;
    padding-top: 20px;
    font-size: 0.75rem;
  }

  .loading-content {
    padding: 20px 16px;
  }

  .logo-icon {
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
  }

  .loading-title {
    font-size: 1.4rem;
  }

  .loading-text {
    font-size: 0.85rem;
  }

  .loading-status {
    font-size: 0.75rem;
  }
}

/* Enhanced Mobile Navigation Animation */
@keyframes mobileNavSlide {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}