/* Mobile Improvements - Hacker Theme */

/* Mobile Navigation */
.nav-hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.nav-hamburger span {
  width: 25px;
  height: 3px;
  background: #00ff41;
  transition: 0.3s;
  border-radius: 2px;
  box-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

.nav-hamburger:hover span {
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    flex-direction: column;
    padding: 20px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    border: 1px solid #00ff41;
    border-top: none;
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.3);
  }
  
  .nav-links.mobile-open {
    transform: translateY(0);
  }
  
  .nav-link {
    padding: 15px 0;
    border-bottom: 1px solid #333;
    text-align: center;
    font-size: 1.1rem;
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
  
  .nav-link:hover {
    background: rgba(0, 255, 65, 0.1);
  }
}

/* Mobile Hero Adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }
  
  .hero-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
}

/* Mobile Skills Grid */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .skill-card {
    padding: 25px 20px;
  }
  
  .skill-icon {
    width: 70px !important;
    height: 70px !important;
  }
  
  .code-snippet pre {
    font-size: 7px !important;
    line-height: 1.1 !important;
  }
  
  .cloud-logos .logo-img {
    width: 16px !important;
    height: 16px !important;
  }
  
  .devops-icons i, .saas-icons i {
    font-size: 16px !important;
  }
}

/* Mobile Learning Timeline */
@media (max-width: 768px) {
  .learning-timeline {
    padding-left: 30px;
  }
  
  .learning-item {
    margin-bottom: 30px;
  }
  
  .learning-card {
    padding: 20px 15px;
  }
  
  .learning-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }
  
  .learning-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 10px;
  }
  
  .learning-toggle-container button {
    font-size: 13px !important;
    padding: 10px 20px !important;
  }
}

/* Mobile GitHub Stats */
@media (max-width: 768px) {
  .github-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .github-stats img,
  .github-languages img,
  .github-streak img,
  .github-activity-graph img {
    width: 100%;
    height: auto;
    max-width: 350px;
    margin: 0 auto;
    display: block;
  }
}

/* Mobile Contact Section */
@media (max-width: 768px) {
  .contact-content {
    text-align: center;
    padding: 0 20px;
  }
  
  .contact-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
  }
}

/* Mobile Typography */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  
  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  
  .timeline-item h3 {
    font-size: 1.2rem;
  }
  
  .timeline-date {
    font-size: 0.85rem;
  }
  
  .stat-card h3 {
    font-size: 1.5rem;
  }
  
  .stat-card p {
    font-size: 0.9rem;
  }
}

/* Mobile Spacing */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .container {
    padding: 0 20px;
  }
  
  .hero {
    min-height: 80vh;
    padding: 80px 0 40px;
  }
}

/* Touch-friendly enhancements */
@media (max-width: 768px) {
  .learning-card {
    min-height: 60px;
    cursor: pointer;
  }
  
  .btn {
    min-height: 48px;
    font-size: 1rem;
  }
  
  .nav-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Larger tap targets */
  .learning-header {
    padding: 15px;
  }
  
  .profile-img {
    width: 120px;
    height: 120px;
  }
}

/* Mobile-specific hacker effects */
@media (max-width: 768px) {
  .hero-title {
    animation: glow 4s ease-in-out infinite;
  }
  
  .nav-links.mobile-open {
    backdrop-filter: blur(10px);
  }
  
  .skill-card:active {
    transform: scale(0.98);
    border-color: #39ff14;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
  }
  
  .learning-card:active {
    border-color: #39ff14;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
  }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    padding: 60px 0 20px;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-buttons {
    flex-direction: row;
    gap: 20px;
  }
  
  .section {
    padding: 40px 0;
  }
}