/* ===== MOBILE RESPONSIVE ENHANCEMENTS ===== */

/* Large Tablets and Small Laptops */
@media (max-width: 1024px) {
  .nav-container {
    padding: 0 var(--spacing-md);
  }
  
  .container {
    padding: 0 var(--spacing-md);
  }
  
  .quantum-nav-menu {
    gap: var(--spacing-md);
  }
  
  .neural-menu-toggle {
    display: flex;
  }
  
  .ai-status {
    display: none;
  }
  
  .nav-quantum-list {
    display: none;
  }
  
  .link-text {
    display: none;
  }
  
  /* Hero section adjustments */
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    text-align: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  /* Grid adjustments */
  .projects-grid,
  .blog-grid,
  .skills-grid,
  .tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
  }
  
  /* Footer adjustments */
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    text-align: center;
  }
  
  .footer-links {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Tablets */
@media (max-width: 768px) {
  /* Navigation */
  .nav-container {
    height: 70px;
    padding: 0 var(--spacing-sm);
  }
  
  .logo-core {
    width: 40px;
    height: 40px;
  }
  
  .central-brain {
    width: 16px;
    height: 16px;
    font-size: 0.7rem;
  }
  
  .name-glitch {
    font-size: 1.2rem;
  }
  
  .title-matrix {
    font-size: 0.8rem;
  }
  
  .neural-menu-toggle {
    padding: var(--spacing-xs);
  }
  
  .neural-lines {
    width: 20px;
    height: 16px;
  }
  
  /* Mobile Navigation Menu */
  .quantum-nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
    padding: var(--spacing-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    flex-direction: column;
    gap: var(--spacing-sm);
    z-index: var(--z-dropdown);
  }
  
  .quantum-nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-quantum-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
  }
  
  .nav-quantum-item {
    width: 100%;
  }
  
  .nav-quantum-link {
    width: 100%;
    justify-content: flex-start;
    padding: var(--spacing-sm);
  }
  
  .link-container {
    width: 100%;
    justify-content: flex-start;
  }
  
  .link-text {
    display: block;
    font-size: 1rem;
  }
  
  .quantum-controls {
    width: 100%;
    justify-content: center;
    margin-top: var(--spacing-sm);
  }
  
  .ai-status {
    display: flex;
  }
  
  /* Main Content */
  .main-content {
    margin-top: 70px;
  }
  
  .section {
    padding: var(--spacing-xl) 0;
  }
  
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  /* Typography */
  h1 { font-size: clamp(2rem, 6vw, 3rem); }
  h2 { font-size: clamp(1.5rem, 5vw, 2.5rem); }
  h3 { font-size: clamp(1.25rem, 4vw, 1.75rem); }
  
  p {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  /* Hero Section */
  .hero {
    min-height: 80vh;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    min-height: 60vh;
  }
  
  .hero-text {
    text-align: center;
  }
  
  .hero-greeting {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
  }
  
  .stat {
    flex: 1;
    min-width: 120px;
    text-align: center;
  }
  
  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .zigzag-frame {
    width: 300px;
    height: 400px;
  }
  
  /* Buttons */
  .btn {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.95rem;
  }
  
  /* Cards */
  .card {
    padding: var(--spacing-md);
  }
  
  /* Grids */
  .projects-grid,
  .blog-grid,
  .skills-grid,
  .tools-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .projects-filter,
  .research-filter {
    flex-wrap: wrap;
    gap: var(--spacing-xs);
  }
  
  .filter-btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.9rem;
  }
  
  /* About Section */
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    text-align: center;
  }
  
  .about-highlights {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
  }
  
  /* Skills Section */
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .skill-category {
    margin-bottom: var(--spacing-md);
  }
  
  /* Contact Section */
  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .contact-methods {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    text-align: center;
  }
  
  .footer-links {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
  }
  
  .footer-bottom-content {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }
  
  /* Scroll to top */
  .scroll-to-top {
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    width: 45px;
    height: 45px;
  }
  
  /* Chatbot adjustments */
  .chatbot-container {
    bottom: var(--spacing-md);
    right: var(--spacing-md);
  }
  
  .chatbot-toggle {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .chatbot-window {
    width: 350px;
    height: 450px;
    bottom: 70px;
  }
}

/* Mobile Phones */
@media (max-width: 480px) {
  /* Navigation */
  .nav-container {
    height: 60px;
    padding: 0 var(--spacing-xs);
  }
  
  .logo-core {
    width: 35px;
    height: 35px;
  }
  
  .central-brain {
    width: 14px;
    height: 14px;
    font-size: 0.6rem;
  }
  
  .logo-text .name-glitch {
    font-size: 1rem;
  }
  
  .logo-text .title-matrix {
    font-size: 0.7rem;
  }
  
  .neural-menu-toggle {
    padding: 8px;
  }
  
  .neural-lines {
    width: 18px;
    height: 14px;
  }
  
  .neural-line {
    height: 1.5px;
  }
  
  /* Mobile Navigation Menu */
  .quantum-nav-menu {
    top: 60px;
    padding: var(--spacing-sm);
  }
  
  .nav-quantum-link {
    padding: var(--spacing-sm);
  }
  
  .link-text {
    font-size: 0.95rem;
  }
  
  /* Main Content */
  .main-content {
    margin-top: 60px;
  }
  
  .section {
    padding: var(--spacing-lg) 0;
  }
  
  .container {
    padding: 0 var(--spacing-xs);
  }
  
  /* Typography */
  h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  h2 { font-size: clamp(1.25rem, 6vw, 2rem); }
  h3 { font-size: clamp(1rem, 5vw, 1.5rem); }
  
  p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  /* Hero Section */
  .hero {
    min-height: 70vh;
  }
  
  .hero-content {
    min-height: 50vh;
    gap: var(--spacing-md);
  }
  
  .hero-greeting {
    font-size: 1rem;
  }
  
  .greeting-emoji {
    font-size: 1.5rem;
  }
  
  .title-name {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  .title-role {
    font-size: clamp(1rem, 4vw, 1.5rem);
  }
  
  .hero-description {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .stat {
    width: 100%;
    text-align: center;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .hero-visual {
    order: -1;
  }
  
  .zigzag-frame {
    width: 250px;
    height: 320px;
  }
  
  .profile-container {
    width: 200px;
    height: 250px;
  }
  
  /* Buttons */
  .btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }
  
  /* Cards */
  .card {
    padding: var(--spacing-sm);
  }
  
  /* Project Cards */
  .project-card {
    flex-direction: column;
  }
  
  .project-image {
    height: 200px;
  }
  
  .project-content {
    padding: var(--spacing-sm);
  }
  
  .project-tech {
    flex-wrap: wrap;
    gap: var(--spacing-xs);
  }
  
  .tech-tag {
    font-size: 0.8rem;
    padding: 4px 8px;
  }
  
  /* Blog Cards */
  .blog-card {
    flex-direction: column;
  }
  
  .blog-image {
    height: 180px;
  }
  
  .blog-content {
    padding: var(--spacing-sm);
  }
  
  .blog-meta {
    flex-wrap: wrap;
    gap: var(--spacing-xs);
  }
  
  /* Revolutionary Skills */
  .skill-item {
    min-height: 220px;
    transform-style: flat;
  }
  
  .skill-item:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 
      0 8px 25px rgba(0, 255, 255, 0.2),
      0 0 0 1px rgba(255, 255, 255, 0.1);
  }
  
  .skill-card-inner {
    padding: var(--spacing-sm);
  }
  
  .skill-header {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    text-align: center;
  }
  
  .skill-header h4 {
    font-size: 1.1rem;
  }
  
  .skill-technologies {
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    justify-content: center;
  }
  
  .skill-technologies .tech-tag {
    font-size: 0.65rem;
    padding: 4px 8px;
    border-radius: 10px;
  }
  
  .skill-technologies .tech-tag:hover {
    transform: translateY(-1px) scale(1.02);
  }
  
  .skill-progress {
    display: none;
  }
  
  .progress-bar {
    display: none;
  }
  
  .progress-text {
    display: none;
  }
  
  /* Contact Form */
  .contact-form {
    padding: var(--spacing-sm);
  }
  
  .form-group {
    margin-bottom: var(--spacing-sm);
  }
  
  .form-group input,
  .form-group textarea {
    padding: var(--spacing-sm);
    font-size: 0.95rem;
  }
  
  /* Footer */
  .footer-top {
    gap: var(--spacing-md);
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .newsletter-form {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .newsletter-form input {
    width: 100%;
  }
  
  /* Scroll to top */
  .scroll-to-top {
    bottom: var(--spacing-sm);
    right: var(--spacing-sm);
    width: 40px;
    height: 40px;
  }
  
  /* Chatbot */
  .chatbot-container {
    bottom: var(--spacing-sm);
    right: var(--spacing-sm);
  }
  
  .chatbot-toggle {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .chatbot-window {
    width: 320px;
    height: 400px;
    bottom: 60px;
    right: 0;
  }
  
  .chatbot-header {
    padding: var(--spacing-sm);
  }
  
  .bot-avatar {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .bot-details h4 {
    font-size: 0.9rem;
  }
  
  .bot-status {
    font-size: 0.8rem;
  }
  
  .chatbot-messages {
    padding: var(--spacing-sm);
  }
  
  .message {
    margin-bottom: var(--spacing-sm);
  }
  
  .message-content {
    padding: var(--spacing-sm);
  }
  
  .message-content p {
    font-size: 0.9rem;
  }
  
  .chatbot-input {
    padding: var(--spacing-sm);
  }
  
  .chatbot-input input {
    padding: var(--spacing-sm);
    font-size: 0.9rem;
  }
  
  .send-button {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  .quick-questions {
    padding: var(--spacing-sm);
    gap: var(--spacing-xs);
  }
  
  .quick-question {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.8rem;
  }
  
  /* Hide complex animations on mobile for better performance */
  .neural-orbit,
  .orbit-ring,
  .data-nodes,
  .particle-field,
  .holographic-grid {
    display: none;
  }
  
  /* Simplify logo for mobile */
  .logo-core {
    background: var(--accent-gradient);
    border-radius: 50%;
    color: var(--bg-primary);
    font-size: 1rem;
    font-weight: bold;
  }
}

/* Extra Small Mobile Phones */
@media (max-width: 360px) {
  .nav-container {
    height: 55px;
  }
  
  .quantum-nav-menu {
    top: 55px;
  }
  
  .main-content {
    margin-top: 55px;
  }
  
  .logo-core {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
  
  .logo-text .name-glitch {
    font-size: 0.9rem;
  }
  
  .logo-text .title-matrix {
    font-size: 0.6rem;
  }
  
  .section {
    padding: var(--spacing-md) 0;
  }
  
  h1 { font-size: clamp(1.5rem, 8vw, 2rem); }
  h2 { font-size: clamp(1.1rem, 7vw, 1.75rem); }
  h3 { font-size: clamp(0.9rem, 6vw, 1.25rem); }
  
  .btn {
    padding: 8px var(--spacing-xs);
    font-size: 0.85rem;
  }
  
  .card {
    padding: var(--spacing-xs);
  }
  
  .zigzag-frame {
    width: 200px;
    height: 260px;
  }
  
  .profile-container {
    width: 160px;
    height: 200px;
  }
  
  .chatbot-window {
    width: 280px;
    height: 350px;
  }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .futuristic-header {
    min-height: 100vh;
  }
  
  .nav-container {
    height: 50px;
  }
  
  .quantum-nav-menu {
    top: 50px;
  }
  
  .main-content {
    margin-top: 50px;
  }
  
  .section {
    padding: var(--spacing-sm) 0;
  }
  
  .logo-core {
    width: 30px;
    height: 30px;
  }
  
  .name-glitch {
    font-size: 0.9rem;
  }
  
  .title-matrix {
    font-size: 0.6rem;
  }
  
  .hero {
    min-height: 100vh;
  }
  
  .hero-content {
    min-height: 80vh;
  }
  
  .zigzag-frame {
    width: 180px;
    height: 220px;
  }
  
  .profile-container {
    width: 140px;
    height: 180px;
  }
} 