/* Mobile-First Responsive Design */
/* Using standard breakpoints: 480px, 768px, 992px, 1200px */

/* Modern Hamburger Menu Styles */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  transition: all 0.3s ease;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
  /* Navbar Optimization */
  .navbar {
    height: 60px !important;
    padding: 0 1rem !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: rgba(10, 10, 18, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(93, 63, 211, 0.2) !important;
  }
  
  .logo {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
  }
  
  /* Show Hamburger Menu */
  .hamburger {
    display: flex !important;
  }
  
  /* Hide/Show Navigation */
  .nav-links {
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100vh - 60px) !important;
    background: rgba(10, 10, 18, 0.98) !important;
    backdrop-filter: blur(15px) !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding-top: 3rem !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s ease !important;
    z-index: 999 !important;
    margin: 0 !important;
    list-style: none !important;
  }
  
  .nav-links.active {
    transform: translateX(0) !important;
  }
  
  .nav-links li {
    margin: 1.5rem 0 !important;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
  }
  
  .nav-links.active li:nth-child(1) { animation-delay: 0.1s; }
  .nav-links.active li:nth-child(2) { animation-delay: 0.2s; }
  .nav-links.active li:nth-child(3) { animation-delay: 0.3s; }
  .nav-links.active li:nth-child(4) { animation-delay: 0.4s; }
  
  .nav-links li a {
    font-size: 1.4rem !important;
    font-weight: 500 !important;
    color: #fff !important;
    text-decoration: none !important;
    padding: 1rem 2rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    display: block !important;
    text-align: center !important;
  }
  
  .nav-links li a:hover,
  .nav-links li a.active {
    background: linear-gradient(135deg, #5D3FD3 0%, #8A63D2 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(93, 63, 211, 0.4) !important;
  }
  
  /* Adjust body padding for fixed navbar */
  body {
    padding-top: 60px !important;
  }
  
  /* Adjust header sections */
  .projects-header,
  .hero {
    padding-top: 2rem !important;
    min-height: 40vh !important;
  }
}

/* Fade in animation for menu items */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MOBILE-FIRST DRASTIC OPTIMIZATION */
/* Extra Small Devices (phones, 480px and down) */
@media (max-width: 480px) {
  /* GLOBAL MOBILE OPTIMIZATIONS */
  * {
    -webkit-tap-highlight-color: rgba(93, 63, 211, 0.3) !important;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
  /* Allow text selection for content */
  p, h1, h2, h3, h4, h5, h6, span, li {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
  }
  
  /* Optimized Typography Hierarchy */
  h1 { 
    font-size: 2rem !important; 
    line-height: 1.1 !important;
    margin-bottom: 0.8rem !important;
  }
  h2 { 
    font-size: 1.6rem !important; 
    line-height: 1.2 !important;
    margin-bottom: 0.7rem !important;
  }
  h3 { 
    font-size: 1.4rem !important; 
    line-height: 1.3 !important;
    margin-bottom: 0.6rem !important;
  }
  h4 { 
    font-size: 1.2rem !important; 
    line-height: 1.4 !important;
    margin-bottom: 0.5rem !important;
  }
  
  /* Enhanced Readability */
  p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1rem !important;
    color: #b0b0b0 !important;
  }
  
  /* Container & Spacing Optimization */
  .container {
    padding: 0 1rem !important;
    max-width: 100% !important;
  }
  
  /* HEADER SECTION OPTIMIZATION */
  .projects-header,
  .hero {
    min-height: 35vh !important;
    padding: 80px 1rem 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  
  .projects-header-content,
  .hero-content {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .projects-header-content h1,
  .hero-content h1 {
    font-size: 2.2rem !important;
    line-height: 1.1 !important;
    margin-bottom: 1rem !important;
  }
  
  .projects-header-content p,
  .hero-content p {
    font-size: 1rem !important;
    padding: 0 !important;
    margin: 0 auto !important;
    max-width: 90% !important;
  }
  
  /* FEATURED PROJECT MOBILE OPTIMIZATION */
  .featured-project {
    padding: 2rem 1rem !important;
  }
  
  .featured-content {
    flex-direction: column !important;
    gap: 2rem !important;
  }
  
  .featured-info {
    text-align: center !important;
  }
  
  .featured-info h3 {
    font-size: 1.8rem !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
    order: 1 !important;
  }
  
  .featured-info .tags {
    margin-bottom: 1.5rem !important;
    order: 2 !important;
  }
  
  .featured-media {
    margin: 1rem 0 !important;
    order: 3 !important;
  }
  
  .featured-info .featured-description {
    order: 4 !important;
  }
  
  .featured-info .project-links {
    order: 5 !important;
  }
  
  .featured-info h3 {
    font-size: 1.8rem !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
  }
  
  .featured-description {
    font-size: 1rem !important;
    text-align: center !important;
    margin-bottom: 1.5rem !important;
  }
  
  /* MOBILE-OPTIMIZED FEATURE GRID */
  .project-features {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin-bottom: 2rem !important;
  }
  
  .feature {
    padding: 1.5rem 1rem !important;
    text-align: center !important;
    border-radius: 12px !important;
    background: rgba(26, 26, 36, 0.8) !important;
    border: 1px solid rgba(93, 63, 211, 0.2) !important;
    transition: all 0.3s ease !important;
  }
  
  .feature:active {
    transform: scale(0.98) !important;
    background: rgba(93, 63, 211, 0.1) !important;
  }
  
  .feature i {
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
    color: #5D3FD3 !important;
  }
  
  .feature h4 {
    font-size: 1.1rem !important;
    margin-bottom: 0.8rem !important;
    color: #fff !important;
  }
  
  .feature p {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    color: #a0a0a0 !important;
  }
  
  /* MOBILE TAG OPTIMIZATION */
  .tags {
    justify-content: center !important;
    gap: 0.5rem !important;
    margin-bottom: 1.5rem !important;
    flex-wrap: wrap !important;
  }
  
  .tags span,
  .tag-modern {
    font-size: 0.8rem !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 20px !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
  }
  
  /* MODERN PROJECT SECTIONS MOBILE */
  .epic-games-modern,
  .simplitech-modern {
    padding: 3rem 0 !important;
    margin: 0 !important;
  }
  
  .epic-header-modern,
  .simplitech-header-modern {
    margin-bottom: 2.5rem !important;
    padding: 0 1rem !important;
  }
  
  .epic-header-modern h2,
  .simplitech-header-modern h2 {
    font-size: 1.9rem !important;
    line-height: 1.1 !important;
    margin-bottom: 0.8rem !important;
  }
  
  .epic-subtitle-modern,
  .simplitech-subtitle-modern {
    font-size: 0.9rem !important;
    opacity: 0.8 !important;
  }
  
  /* MOBILE VIDEO OPTIMIZATION */
  .video-wrapper-modern {
    margin: 0 1rem !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
  }
  
  .video-frame-modern {
    border-radius: 16px !important;
  }
  
  /* EPIC GAMES MOBILE CONTENT */
  .epic-content-modern {
    padding: 0 1rem !important;
  }
  
  .epic-features-modern {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    margin-bottom: 2rem !important;
  }
  
  .feature-card-modern {
    padding: 2rem 1.5rem !important;
    border-radius: 16px !important;
    text-align: center !important;
  }
  
  .feature-icon-modern {
    width: 60px !important;
    height: 60px !important;
    margin: 0 auto 1.5rem !important;
  }
  
  .feature-card-modern h4 {
    font-size: 1.2rem !important;
    margin-bottom: 1rem !important;
  }
  
  .feature-card-modern p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }
  
  /* SIMPLITECH MOBILE OPTIMIZATION */
  .simplitech-content-fresh {
    padding: 0 1rem !important;
  }
  
  .simplitech-description-section {
    padding: 2rem 1.5rem !important;
    margin-bottom: 2rem !important;
    border-radius: 16px !important;
  }
  
  .description-header {
    flex-direction: column !important;
    gap: 1rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .description-header h3 {
    font-size: 1.5rem !important;
  }
  
  .project-type {
    font-size: 0.8rem !important;
    padding: 0.4rem 1rem !important;
  }
  
  .description-text {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    text-align: center !important;
  }
  
  .simplitech-two-column {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  
  .column-title {
    font-size: 1.4rem !important;
    text-align: center !important;
    margin-bottom: 1.5rem !important;
  }
  
  .column-title::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  
  /* FEATURE ROWS MOBILE */
  .feature-row {
    padding: 1.2rem !important;
    flex-direction: column !important;
    text-align: center !important;
    gap: 1rem !important;
  }
  
  .feature-icon-circle {
    margin: 0 auto !important;
  }
  
  .feature-text h4 {
    font-size: 1.1rem !important;
    text-align: center !important;
  }
  
  .feature-text p {
    font-size: 0.9rem !important;
    text-align: center !important;
  }
  
  /* TECH STACK MOBILE */
  .tech-stack-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  .tech-item {
    padding: 1rem !important;
    justify-content: center !important;
    text-align: center !important;
  }
  
  .tech-details {
    text-align: center !important;
  }
  
  /* PROJECT HIGHLIGHTS MOBILE */
  .project-highlights {
    padding: 1.5rem !important;
    text-align: center !important;
  }
  
  .highlights-list {
    text-align: left !important;
    max-width: 280px !important;
    margin: 0 auto !important;
  }
  
  .highlights-list li {
    padding: 0.8rem 0 0.8rem 2rem !important;
    font-size: 0.9rem !important;
  }
  
  /* MOBILE NAVIGATION OPTIMIZATION */
  .nav-links {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  
  /* PROJECT QUICK LINKS MOBILE */
  .project-navigation {
    padding: 2rem 1rem !important;
    text-align: center !important;
  }
  
  .project-navigation h2 {
    font-size: 1.8rem !important;
    margin-bottom: 1.5rem !important;
    color: #fff !important;
  }
  
  .project-navigation .nav-links {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.8rem !important;
    margin: 0 auto !important;
    max-width: 100% !important;
  }
  
  .project-navigation .btn-tertiary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.8rem 1.2rem !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    background: rgba(26, 26, 36, 0.8) !important;
    border: 1px solid rgba(93, 63, 211, 0.3) !important;
    color: #fff !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    min-width: 120px !important;
    text-align: center !important;
  }
  
  .project-navigation .btn-tertiary:hover,
  .project-navigation .btn-tertiary:focus {
    background: #5D3FD3 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(93, 63, 211, 0.3) !important;
  }
  
  .project-navigation .btn-tertiary:active {
    transform: translateY(0) !important;
  }
  
  /* FOOTER MOBILE */
  .footer-social {
    gap: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .footer-social a {
    font-size: 1.5rem !important;
    padding: 0.8rem !important;
    border-radius: 50% !important;
    background: rgba(93, 63, 211, 0.1) !important;
    transition: all 0.3s ease !important;
  }
  
  .footer-social a:active {
    transform: scale(0.9) !important;
    background: rgba(93, 63, 211, 0.2) !important;
  }
  
  /* ACCESSIBILITY IMPROVEMENTS */
  .btn-primary,
  .nav-links a,
  .footer-social a,
  .hamburger {
    min-height: 48px !important;
    min-width: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    touch-action: manipulation !important;
  }
  
  /* FOCUS STATES FOR ACCESSIBILITY */
  .btn-primary:focus,
  .nav-links a:focus,
  .footer-social a:focus,
  .hamburger:focus {
    outline: 2px solid #5D3FD3 !important;
    outline-offset: 2px !important;
  }
  
  /* SMOOTH SCROLLING */
  html {
    scroll-behavior: smooth !important;
  }
  
  /* PREVENT HORIZONTAL SCROLL */
  body {
    overflow-x: hidden !important;
  }
  
  /* OPTIMIZED LOADING STATES */
  img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
  }
  
  /* MOBILE PERFORMANCE OPTIMIZATION */
  * {
    will-change: auto !important;
  }
  
  .feature:hover,
  .tech-card:hover,
  .project-card:hover {
    transform: none !important;
  }
}

/* TABLET & SMALL DEVICE OPTIMIZATION */
@media (max-width: 768px) {
  /* ENHANCED TOUCH INTERACTIONS */
  * {
    -webkit-tap-highlight-color: rgba(93, 63, 211, 0.2) !important;
    touch-action: manipulation;
  }
  
  /* HERO SECTION MOBILE */
  .hero {
    padding: 2rem 1rem 3rem !important;
    min-height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
  }
  
  .hero::before {
    content: '';
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.95) 0%, rgba(20, 20, 40, 0.9) 100%) !important;
    z-index: -1 !important;
  }
  
  .hero-content {
    flex-direction: column !important;
    text-align: center !important;
    padding: 0 !important;
    max-width: 100% !important;
    position: relative !important;
    z-index: 1 !important;
  }
  
  .hero-text {
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
    order: 1 !important;
  }
  
  .hero-text h1 {
    font-size: 2.2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 2rem !important;
    color: #fff !important;
    font-weight: 700 !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: #fff !important;
  }
  
  .hero-photo {
    max-width: 280px !important;
    height: auto !important;
    margin: 0 auto 2rem !important;
    border-radius: 16px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
    border: 3px solid rgba(93, 63, 211, 0.3) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    order: 2 !important;
  }
  
  .hero-text p {
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
    margin: 0 auto 2rem !important;
    color: #d0d0d0 !important;
    max-width: 600px !important;
    order: 3 !important;
  }
  
  .hero-cta {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    justify-content: center !important;
    margin-top: 0 !important;
    order: 4 !important;
  }
  
  .hero-text h1 .highlight {
    color: #5D3FD3 !important;
    -webkit-text-fill-color: #5D3FD3 !important;
  }
  
  .hero-text p {
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
    margin-bottom: 2rem !important;
    color: #d0d0d0 !important;
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .hero-cta {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    justify-content: center !important;
    margin-top: 2rem !important;
  }
  
  .btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.9rem 2rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #5D3FD3 0%, #8A63D2 100%) !important;
    color: white !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(93, 63, 211, 0.3) !important;
    border: none !important;
    cursor: pointer !important;
  }
  
  .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(93, 63, 211, 0.4) !important;
  }
  
  .btn-primary:active {
    transform: translateY(0) !important;
  }
  
  /* TIMELINE MOBILE OPTIMIZATION */
  #timeline {
    padding: 2rem 1rem !important;
    max-width: 100% !important;
  }
  
  .timeline {
    padding: 0 !important;
    position: relative !important;
  }
  
  /* Hide the desktop timeline line */
  .timeline::before {
    display: none !important;
  }
  
  .timeline-item {
    position: relative !important;
    width: 100% !important;
    margin-bottom: 2rem !important;
    padding: 1.5rem !important;
    background: rgba(26, 26, 36, 0.5) !important;
    border-radius: 12px !important;
    border-left: 4px solid #5D3FD3 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
  }
  
  .timeline-date {
    position: static !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    background: #5D3FD3 !important;
    color: #fff !important;
    padding: 0.4rem 1rem !important;
    border-radius: 20px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
    line-height: normal !important;
    text-align: center !important;
    left: auto !important;
    top: auto !important;
  }
  
  .timeline-item h3 {
    font-size: 1.3rem !important;
    margin-bottom: 0.8rem !important;
    color: #fff !important;
  }
  
  .timeline-item p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: #b0b0b0 !important;
  }
  
  /* PROJECTS HEADER TABLET */
  .projects-header {
    padding: 100px 2rem 3rem !important;
  }
  
  .projects-header-content h1 {
    font-size: 2.8rem !important;
    line-height: 1.1 !important;
  }
  
  .projects-header-content p {
    font-size: 1.1rem !important;
    max-width: 80% !important;
    margin: 0 auto !important;
  }
  
  /* FEATURED PROJECT TABLET */
  .featured-project {
    padding: 3rem 2rem !important;
  }
  
  .featured-content {
    flex-direction: column-reverse !important;
    gap: 2.5rem !important;
  }
  
  .featured-info {
    text-align: center !important;
  }
  
  .featured-info h3 {
    font-size: 2.2rem !important;
    margin-bottom: 1rem !important;
  }
  
  .featured-description {
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
    margin-bottom: 2rem !important;
  }
  
  .project-features {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
  
  .feature {
    padding: 1.5rem !important;
    border-radius: 12px !important;
    background: rgba(26, 26, 36, 0.6) !important;
    border: 1px solid rgba(93, 63, 211, 0.2) !important;
  }
  
  .feature:active {
    transform: scale(0.98) !important;
    background: rgba(93, 63, 211, 0.1) !important;
  }
  
  /* MODERN SECTIONS TABLET */
  .epic-games-modern,
  .simplitech-modern {
    padding: 4rem 0 !important;
  }
  
  .epic-header-modern,
  .simplitech-header-modern {
    padding: 0 2rem !important;
    margin-bottom: 3rem !important;
  }
  
  .epic-header-modern h2,
  .simplitech-header-modern h2 {
    font-size: 2.2rem !important;
    line-height: 1.2 !important;
  }
  
  /* EPIC GAMES TABLET LAYOUT */
  .epic-content-modern {
    padding: 0 2rem !important;
  }
  
  .epic-features-modern {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  .epic-details-modern {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  .feature-card-modern {
    padding: 2rem !important;
    text-align: center !important;
  }
  
  /* SIMPLITECH TABLET LAYOUT */
  .simplitech-content-fresh {
    padding: 0 2rem !important;
  }
  
  .simplitech-two-column {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }
  
  .tech-stack-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  .feature-row {
    padding: 1.5rem !important;
    border-radius: 12px !important;
  }
  
  .tech-item {
    padding: 1.2rem !important;
    border-radius: 10px !important;
  }
  
  /* GENERAL GRID ADJUSTMENTS */
  .projects-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    padding: 0 2rem !important;
  }
  
  .tech-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  .project-card {
    border-radius: 16px !important;
    overflow: hidden !important;
    background: rgba(26, 26, 36, 0.8) !important;
    border: 1px solid rgba(93, 63, 211, 0.2) !important;
  }
  
  /* PHONE MOCKUPS TABLET */
  .phone-mockup {
    max-width: 240px !important;
    margin: 0 auto !important;
  }
  
  /* ABOUT PAGE TABLET */
  .about-container {
    flex-direction: column !important;
    text-align: center !important;
    gap: 2rem !important;
  }
  
  .about-image {
    order: 1 !important;
    margin-bottom: 2rem !important;
  }
  
  .about-text {
    order: 2 !important;
  }
  
  .skills-container {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  .skill-category {
    text-align: center !important;
    padding: 2rem !important;
    background: rgba(26, 26, 36, 0.6) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(93, 63, 211, 0.2) !important;
  }
  
  /* CONTACT PAGE TABLET */
  .contact-container {
    flex-direction: column !important;
    gap: 3rem !important;
  }
  
  .contact-info,
  .contact-message {
    text-align: center !important;
  }
  
  .contact-item {
    justify-content: center !important;
    text-align: center !important;
    padding: 1.5rem !important;
    background: rgba(26, 26, 36, 0.6) !important;
    border-radius: 12px !important;
    margin-bottom: 1.5rem !important;
  }
  
  /* FOOTER TABLET */
  .footer-content {
    padding: 0 2rem !important;
  }
  
  .footer-social {
    gap: 2rem !important;
  }
  
  .footer-social a {
    font-size: 1.4rem !important;
    padding: 1rem !important;
    border-radius: 50% !important;
    background: rgba(93, 63, 211, 0.1) !important;
  }
  
  .footer-social a:active {
    transform: scale(0.95) !important;
    background: rgba(93, 63, 211, 0.2) !important;
  }
}

/* Medium Devices (tablets, 992px and down) */
@media (max-width: 992px) {
  /* Projects Header */
  .projects-header-content h1 {
    font-size: 3rem;
  }
  
  /* Featured Project */
  .project-features {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Modern Sections */
  .epic-header-modern h2,
  .simplitech-header-modern h2 {
    font-size: 2.4rem;
  }
  
  /* Epic Games */
  .epic-features-modern {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Simplitech */
  .simplitech-two-column {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .tech-stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* General Adjustments */
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .phone-mockup {
    max-width: 250px;
  }
}

/* Large Devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Enhanced spacing for large screens */
  .container {
    max-width: 1400px;
  }
  
  .projects-header-content h1 {
    font-size: 4rem;
  }
  
  .featured-info h3 {
    font-size: 3rem;
  }
  
  .epic-header-modern h2,
  .simplitech-header-modern h2 {
    font-size: 3.2rem;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .btn-primary,
  .nav-links a,
  .footer-social a {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Remove hover effects on touch devices */
  .feature:hover,
  .tech-card:hover,
  .project-card:hover,
  .feature-card-modern:hover,
  .feature-row:hover,
  .tech-item:hover {
    transform: none;
    box-shadow: inherit;
  }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp text rendering */
  * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Landscape Phone Orientation */
@media (max-height: 500px) and (orientation: landscape) {
  .projects-header {
    min-height: 60vh;
  }
  
  .epic-games-modern,
  .simplitech-modern {
    padding: 2rem 0;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark Mode Support (if needed) */
@media (prefers-color-scheme: dark) {
  /* Your site is already dark, but this ensures consistency */
  body {
    background-color: #0a0a12;
    color: #ffffff;
  }
}