/* ===================================
   Portfolio Site Styles - Minimalistic
   portfolio.buildwithmisbah.cc
   =================================== */

/* CSS Variables - Minimalistic Theme */
:root {
  --primary-color: #4f46e5;
  --android-primary-color: #00ff00;
  --secondary-color: #6b7280;
  --accent-color: #9ca3af;
  --bd-tes: #0a0a0a;
  --bg-primary: #000000;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-tertiary: #6b7280;
  --border-color: #374151;
  --shadow-color: rgba(79, 70, 229, 0.1);
  --error-color: #ef4444;
  --success-color: #10b981;
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Monaco', 'Consolas', 'Courier New', monospace;
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background: var(--bd-tes);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Canvas Background */
canvas#canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

/* Loading Screen */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity var(--transition-medium);
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-text {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: var(--border-color);
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  background: var(--primary-color);
  width: 0;
  animation: loadProgress 2s ease-out forwards;
}

@keyframes loadProgress {
  to { width: 100%; }
}

/* Navigation - Minimalistic */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all var(--transition-fast);
}

nav.scrolled {
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 5px 0;
  position: relative;
  transition: color var(--transition-fast);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-color);
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  gap: 15px;
}

.nav-btn {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  transition: all var(--transition-fast);
  letter-spacing: 0.05em;
}

.nav-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--primary-color);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-secondary);
  transition: all var(--transition-fast);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Section Styles */
section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  font-size: 36px;
  text-align: center;
  margin-bottom: 60px;
  color: var(--text-primary);
  font-weight: 300;
  letter-spacing: -0.02em;
}

/* Hero Section - Minimalistic */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.hero-title {
  font-size: 48px;
  font-weight: 300;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.text-gradient {
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 24px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-weight: 300;
}

.hero-description {
  font-size: 16px;
  color: var(--text-tertiary);
  margin-bottom: 40px;
  max-width: 500px;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.stat {
  text-align: left;
}

.stat-number {
  display: block;
  font-size: 32px;
  font-weight: 300;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-color);
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--primary-color);
}

/* Android Robot - Minimalistic */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.android-robot {
  width: 200px;
  height: 250px;
  position: relative;
  opacity: 0.9;
}

.robot-head {
  width: 120px;
  height: 60px;
  background: var(--android-primary-color);
  border-radius: 60px 60px 0 0;
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
}

.robot-eye {
  width: 10px;
  height: 10px;
  background: var(--bg-primary);
  border-radius: 50%;
  position: absolute;
  top: 30px;
}

.robot-eye.left { left: 30px; }
.robot-eye.right { right: 30px; }

.robot-body {
  width: 120px;
  height: 100px;
  background: var(--android-primary-color);
  border-radius: 0 0 10px 10px;
  position: absolute;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
}

.robot-arm {
  width: 20px;
  height: 70px;
  background: var(--android-primary-color);
  border-radius: 10px;
  position: absolute;
  top: 10px;
}

.robot-arm.left { left: -25px; }
.robot-arm.right { right: -25px; }

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0.5;
}

.scroll-indicator span {
  display: block;
  color: var(--text-tertiary);
  font-size: 12px;
  margin-bottom: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-bottom: 1px solid var(--text-tertiary);
  border-right: 1px solid var(--text-tertiary);
  transform: rotate(45deg);
  margin: 0 auto;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(45deg); }
  50% { transform: translateX(-50%) translateY(10px) rotate(45deg); }
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: var(--bg-secondary);
  border-radius: 4px;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.highlight:hover {
  border-color: var(--primary-color);
  transform: translateX(5px);
}

.highlight-icon {
  font-size: 20px;
  opacity: 0.7;
}

.image-frame {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 30px;
  overflow: hidden;
}

.code-animation {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.skill-category {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 30px;
  transition: all var(--transition-fast);
}

.skill-category:hover {
  border-color: var(--primary-color);
}

.skill-category h3 {
  color: var(--text-primary);
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 400;
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.skill-item {
  position: relative;
}

.skill-name {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.skill-bar {
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--primary-color);
  border-radius: 2px;
  width: 0;
  transition: width 1.5s ease-out;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  padding: 6px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.skill-tag:hover {
  border-color: var(--primary-color);
  color: var(--text-primary);
}

/* Experience Section */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-item::after {
  content: '';
  position: absolute;
  top: 30px;
  width: 10px;
  height: 10px;
  background: var(--primary-color);
  border-radius: 50%;
}

.timeline-item:nth-child(odd)::after {
  right: -5px;
}

.timeline-item:nth-child(even)::after {
  left: -5px;
}

.timeline-date {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.timeline-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 30px;
  transition: all var(--transition-fast);
}

.timeline-content:hover {
  border-color: var(--primary-color);
}

.timeline-content h3 {
  color: var(--text-primary);
  margin-bottom: 5px;
  font-weight: 400;
}

.timeline-content h4 {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-weight: normal;
  font-size: 14px;
}

.timeline-content ul {
  list-style: none;
  text-align: left;
}

.timeline-content li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
  color: var(--text-tertiary);
  font-size: 14px;
}

.timeline-content li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-tertiary);
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  justify-content: flex-start;
}

.timeline-item:nth-child(odd) .tech-stack {
  justify-content: flex-end;
}

.tech {
  padding: 4px 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  font-size: 11px;
  color: var(--text-secondary);
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
}

.project-image {
  height: 200px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-icon {
  font-size: 48px;
  opacity: 0.3;
}

.project-content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  color: var(--text-primary);
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 400;
}

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tech span {
  padding: 4px 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  font-size: 11px;
  color: var(--text-secondary);
}

.project-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
}

.project-stats .stat {
  text-align: left;
}

.project-stats .stat-value {
  font-size: 16px;
  font-weight: 400;
  color: var(--primary-color);
}

.project-stats .stat-label {
  font-size: 11px;
  color: var(--text-tertiary);
}

.project-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
}

.project-link:hover {
  gap: 10px;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-weight: 400;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 1.8;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.contact-item:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.contact-icon {
  font-size: 20px;
  opacity: 0.7;
}

/* Contact Form */
.contact-form {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 40px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-tertiary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text {
  color: var(--text-tertiary);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-link {
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color var(--transition-fast);
  font-size: 14px;
}

.footer-link:hover {
  color: var(--text-primary);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
}

.back-to-top svg {
  stroke: var(--text-secondary);
  stroke-width: 2;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-medium);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 60px;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item::after {
    left: 15px !important;
  }
  
  .tech-stack {
    justify-content: flex-start !important;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .nav-actions {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 20px;
  }
  
  .hero-stats {
    gap: 20px;
  }
  
  .stat-number {
    font-size: 28px;
  }
  
  .android-robot {
    width: 150px;
    height: 200px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Mobile Navigation Menu */
@media (max-width: 768px) {
  .nav-links.active {
    display: flex;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
  }
}