@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* CSS Variables */
:root {
  --primary: #00d9ff;
  --primary-dark: #00b8e6;
  --secondary: #6366f1;
  --accent: #f59e0b;
  --success: #10b981;
  --text: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #888888;
  --background: #0a0a0a;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.1);
  --sidebar-width: 280px;
  --shadow: rgba(0, 0, 0, 0.3);
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  /* Prevent zoom on iOS */
  -webkit-text-size-adjust: 100%;
  /* Smooth scrolling */
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow: hidden;
  height: 100vh;
  /* Prevent pull-to-refresh on mobile */
  overscroll-behavior: none;
  /* Improve touch scrolling on iOS */
  -webkit-overflow-scrolling: touch;
  /* Prevent text selection on touch */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Allow text selection for content areas */
.hero-description,
.about-text p,
.timeline-content .description,
.contact-info p {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Background Video */
#myVideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
  filter: blur(20px) brightness(0.15);
}

/* Background Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(0, 217, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
  z-index: -1;
}

/* Dashboard Container */
.dashboard-container {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(30px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 30px 0;
  position: relative;
  z-index: 100;
}

.sidebar-header {
  padding: 0 30px 30px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
}

.logo {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 15px;
  color: white;
}

.sidebar-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.sidebar-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Navigation Menu */
.nav-menu {
  flex: 1;
  padding: 0 20px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  margin-bottom: 5px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
}

.nav-item:hover,
.nav-item.active {
  background: var(--surface);
  color: var(--primary);
  transform: translateX(5px);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--gradient-primary);
  border-radius: 0 2px 2px 0;
}

.nav-item i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 20px 30px;
  border-top: 1px solid var(--border);
}

.status-indicator {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  border-radius: 20px;
  padding: 8px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.status-text {
  color: var(--success);
}

/* Main Dashboard */
.main-dashboard {
  flex: 1;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Dashboard Sections */
.dashboard-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  padding: 40px;
  overflow-y: auto;
}

.dashboard-section.active {
  opacity: 1;
  visibility: visible;
}

.section-content {
  max-width: 1000px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 30px;
}

/* Home Section */
.hero-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.profile-image-wrapper {
  position: relative;
}

.profile-picture {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  box-shadow: 0 0 40px rgba(0, 217, 255, 0.3);
  transition: all 0.4s ease;
  position: relative;
}

.profile-picture:hover {
  box-shadow: 0 0 60px rgba(0, 217, 255, 0.5);
  border-color: var(--secondary);
}

/* Profile picture floating animation */
.profile-picture {
  animation: profileFloat 4s ease-in-out infinite;
}

@keyframes profileFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  25% {
    transform: translateY(-8px);
  }
  50% {
    transform: translateY(0px);
  }
  75% {
    transform: translateY(-4px);
  }
}

.profile-picture:hover {
  animation: none;
  box-shadow: 0 0 60px rgba(0, 217, 255, 0.5);
  border-color: var(--secondary);
}

.hero-info h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 8px 25px rgba(0, 217, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 217, 255, 0.4);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Quick Stats */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: auto;
}

.stat-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: var(--surface-hover);
  transform: translateY(-3px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.1rem;
}

.skills-showcase h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--text);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: rgba(0, 217, 255, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

/* Experience Section */
.timeline-compact {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 25px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.timeline-item:hover {
  background: var(--surface-hover);
  transform: translateX(10px);
}

.timeline-date {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'JetBrains Mono', monospace;
}

.timeline-content h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--text);
}

.timeline-content .company {
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 10px;
}

.timeline-content .description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 25px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.skill-category:hover {
  background: var(--surface-hover);
  transform: translateY(-5px);
}

.skill-category h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  text-align: center;
  color: var(--text);
}

.tech-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.tech-item:hover {
  background: rgba(0, 217, 255, 0.1);
  color: var(--primary);
}

.tech-item i {
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}

/* Achievements Compact */
.achievements-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px;
  transition: all 0.3s ease;
}

.achievement-item:hover {
  background: var(--surface-hover);
  transform: translateY(-3px);
}

.achievement-item i {
  color: var(--primary);
  font-size: 1.3rem;
}

.achievement-item span {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Contact Section */
.contact-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  height: 100%;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--text);
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.7;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.contact-method:hover {
  background: var(--surface-hover);
  transform: translateX(5px);
}

.contact-method i {
  color: var(--primary);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

/* Social Grid */
.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
  justify-content: center;
}

.social-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px var(--shadow);
}

.social-card.linkedin:hover {
  background: rgba(0, 119, 181, 0.2);
  border-color: #0077b5;
  color: #0077b5;
}

.social-card.twitter:hover {
  background: rgba(29, 161, 242, 0.2);
  border-color: #1da1f2;
  color: #1da1f2;
}

.social-card.instagram:hover {
  background: rgba(225, 48, 108, 0.2);
  border-color: #e1306c;
  color: #e1306c;
}

.social-card.github:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}

.social-card i {
  font-size: 1.5rem;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.5rem;
  padding: 12px;
  cursor: pointer;
  z-index: 200;
  position: fixed;
  border-radius: 10px;
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  /* Ensure minimum touch target size */
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle:hover {
  background: var(--surface-hover);
  transform: scale(1.05);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 150;
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
}

/* Touch-friendly improvements */
.nav-item,
.btn,
.social-card,
.achievement-item,
.contact-method {
  /* Minimum touch target size */
  min-height: 44px;
  /* Better tap response */
  -webkit-tap-highlight-color: rgba(0, 217, 255, 0.2);
}

/* Improve button touch targets on mobile */
@media (max-width: 768px) {
  .btn {
    min-height: 48px;
    font-size: 1rem;
  }
  
  .nav-item {
    min-height: 48px;
    font-size: 1rem;
  }
  
  .social-card {
    min-height: 56px;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-profile {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 25px;
  }
  
  .about-grid,
  .contact-dashboard {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .quick-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  
  .section-title {
    font-size: 2.2rem;
    margin-bottom: 25px;
  }
  
  .dashboard-section {
    padding: 30px 25px;
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-width: 260px;
  }
  
  .dashboard-section {
    padding: 25px 20px;
  }
  
  .profile-picture {
    width: 140px;
    height: 140px;
  }
  
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
  
  .hero-info h1 {
    font-size: 1.8rem;
    margin-bottom: 12px;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 15px;
  }
  
  .hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px;
  }
  
  .timeline-date {
    font-size: 0.85rem;
    margin-bottom: 8px;
  }
  
  .achievements-compact {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .social-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .contact-methods {
    gap: 12px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .hero-actions {
    gap: 12px;
    justify-content: center;
  }
  
  .stat-item {
    padding: 20px 15px;
  }
  
  .stat-number {
    font-size: 1.6rem;
  }
  
  .skill-category {
    padding: 20px;
  }
}

@media (max-width: 640px) {
  .mobile-menu-toggle {
    display: flex;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 200;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    backdrop-filter: blur(20px);
  }
  
  .dashboard-container {
    position: relative;
  }
  
  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    z-index: 160;
    transition: left 0.3s ease;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(30px);
    flex-direction: column;
    padding: 80px 0 30px;
    border-right: 1px solid var(--border);
  }
  
  .sidebar.mobile-open {
    left: 0;
  }
  
  .mobile-nav-overlay.active {
    display: block;
  }
  
  .sidebar-header {
    padding: 0 30px 30px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
    text-align: center;
  }
  
  .nav-menu {
    padding: 0 20px;
    flex-direction: column;
  }
  
  .nav-item {
    flex-direction: row;
    padding: 15px 20px;
    margin-bottom: 5px;
    gap: 15px;
    text-align: left;
  }
  
  .sidebar-footer {
    display: block;
    padding: 20px 30px;
    border-top: 1px solid var(--border);
  }
  
  .main-dashboard {
    width: 100%;
    margin-left: 0;
  }
  
  .dashboard-section {
    padding: 80px 20px 20px;
  }
  
  .section-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }
  
  .hero-info h1 {
    font-size: 1.6rem;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
  }
  
  .quick-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .achievements-compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .dashboard-section {
    padding: 80px 15px 15px;
  }
  
  .section-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
  }
  
  .hero-profile {
    gap: 20px;
  }
  
  .profile-picture {
    width: 120px;
    height: 120px;
  }
  
  .hero-info h1 {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }
  
  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .btn {
    width: 100%;
    max-width: 250px;
    justify-content: center;
    padding: 12px 20px;
  }
  
  .timeline-item {
    padding: 15px;
  }
  
  .timeline-content h4 {
    font-size: 1rem;
  }
  
  .skill-category {
    padding: 15px;
  }
  
  .skill-category h3 {
    font-size: 1rem;
    margin-bottom: 15px;
  }
  
  .tech-item {
    padding: 8px;
    font-size: 0.9rem;
  }
  
  .achievement-item {
    padding: 12px;
    font-size: 0.85rem;
  }
  
  .contact-method {
    padding: 10px;
    font-size: 0.9rem;
  }
  
  .social-card {
    padding: 15px;
    font-size: 0.9rem;
  }
  
  .stat-item {
    padding: 15px;
  }
  
  .stat-number {
    font-size: 1.4rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
}

@media (max-width: 360px) {
  .dashboard-section {
    padding: 80px 12px 12px;
  }
  
  .section-title {
    font-size: 1.2rem;
  }
  
  .hero-info h1 {
    font-size: 1.2rem;
  }
  
  .profile-picture {
    width: 100px;
    height: 100px;
  }
  
  .sidebar {
    width: 250px;
  }
  
  .mobile-menu-toggle {
    top: 15px;
    left: 15px;
    font-size: 1.3rem;
    padding: 8px;
  }
}
