/* Terminal-inspired DevOps Portfolio - Neumorphism & Tech Design */
:root {
  --terminal-bg: #0d1117; /* GitHub Dark background */
  --terminal-text: #ffffff;
  --terminal-gray: #8b949e;
  --terminal-green: #00ff9d;
  --terminal-green-light: #7ee787;
  --terminal-blue: #2a9dff;
  --terminal-orange: #fca311;
  --terminal-purple: #bd93f9;
  --terminal-pink: #ff6b8b;
  --terminal-border-radius: 12px;
  --terminal-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --terminal-transition: all 0.3s ease;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--terminal-text);
  background-color: var(--terminal-bg);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-mono);
  font-weight: 600;
  line-height: 1.2;
  color: var(--terminal-text);
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
}

h4 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--terminal-gray);
}

a {
  text-decoration: none;
  color: var(--terminal-blue);
  transition: var(--terminal-transition);
}

a:hover {
  color: var(--terminal-green);
}

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

/* Terminal Window Style - Neumorphism */
.terminal-window {
  background: rgba(30, 30, 40, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--terminal-border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--terminal-shadow);
  overflow: hidden;
  margin-bottom: 2rem;
  position: relative;
}

.terminal-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-controls {
  display: flex;
  gap: 8px;
  margin-right: 12px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--terminal-gray);
  flex-grow: 1;
  text-align: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.terminal-content {
  padding: 2rem;
}

/* Logo & Branding */
.logo {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--terminal-text);
  margin-bottom: 1rem;
  text-align: center;
}

.logo span {
  color: var(--terminal-green);
}

.logo-terminal {
  display: inline-block;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin: 0 1rem;
}

.nav-link {
  color: var(--terminal-gray);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--terminal-green);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--terminal-green);
  transition: var(--terminal-transition);
}

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

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  background: var(--terminal-bg);
  background-image: radial-gradient(circle at 10% 20%, rgba(42, 157, 255, 0.05) 0%, transparent 20%),
                  radial-gradient(circle at 90% 80%, rgba(0, 255, 157, 0.05) 0%, transparent 20%);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  z-index: 2;
}

.hero-content {
  margin-bottom: 1rem;
  max-width: 800px;
}

.hero-tagline {
  margin-bottom: 1.5rem;
}

.hero-command {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(0, 255, 157, 0.1);
  color: var(--terminal-green);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 255, 157, 0.2);
}

.hero-description {
  font-size: 1.2rem;
  margin: 1.5rem 0;
  color: var(--terminal-gray);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Terminal Button Style */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  transition: var(--terminal-transition);
  text-decoration: none;
  font-family: var(--font-mono);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--terminal-green);
  z-index: -1;
  transition: var(--terminal-transition);
}

.btn:hover::before {
  width: 100%;
}

.btn-primary {
  background: var(--terminal-green);
  color: var(--terminal-bg);
}

.btn-primary:hover {
  color: var(--terminal-text);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 255, 157, 0.3);
}

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

.btn-secondary:hover {
  color: var(--terminal-bg);
  background: var(--terminal-green);
}

/* Section Styling */
section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-underline {
  width: 80px;
  height: 4px;
  background: var(--terminal-green);
  margin: 1rem auto;
  border-radius: 2px;
}

/* About Section */
.about {
  background: var(--terminal-bg);
  position: relative;
  overflow: hidden;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(0, 255, 157, 0.05);
  border-radius: var(--terminal-border-radius);
  transition: var(--terminal-transition);
  border: 1px solid rgba(0, 255, 157, 0.1);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 255, 157, 0.1);
}

.stat-item i {
  font-size: 2rem;
  color: var(--terminal-green);
  margin-bottom: 1rem;
}

.stat-item h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--terminal-green);
}

.stat-item p {
  margin: 0;
  color: var(--terminal-gray);
}

.about-visual {
  display: flex;
  justify-content: center;
}

.code-block {
  background: var(--terminal-bg);
  border-radius: var(--terminal-border-radius);
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--terminal-shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-header {
  display: flex;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  gap: 8px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: #a9b7c6;
  padding: 1.5rem;
  display: block;
  overflow-x: auto;
}

/* Skills Section */
.skills {
  background: rgba(13, 17, 23, 0.8);
  position: relative;
  overflow: hidden;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.skill-category h3 {
  margin-bottom: 1.5rem;
  color: var(--terminal-text);
  font-size: 1.4rem;
}

.skill-bar {
  margin-bottom: 1.5rem;
}

.skill-name {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--terminal-text);
  font-family: var(--font-mono);
}

.skill-level {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--terminal-green);
  border-radius: 4px;
  width: 0;
  transition: width 1.5s ease-in-out;
}

.tech-stack {
  text-align: center;
}

.tech-stack h3 {
  margin-bottom: 2rem;
  color: var(--terminal-text);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.tech-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: var(--terminal-transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-chip:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.tech-chip i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.tech-chip.cloud { color: var(--terminal-green); }
.tech-chip.orchestration { color: var(--terminal-blue); }
.tech-chip.cicd { color: var(--terminal-orange); }
.tech-chip.iac { color: var(--terminal-pink); }
.tech-chip.monitoring { color: var(--terminal-purple); }

/* Experience Section */
.experience {
  background: var(--terminal-bg);
  position: relative;
  overflow: hidden;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--terminal-green);
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: calc(50% - 40px);
}

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

.timeline-item:nth-child(even) {
  left: calc(50% + 40px);
}

.timeline-marker {
  position: absolute;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--terminal-green);
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-marker {
  right: -50px;
}

.timeline-item:nth-child(even) .timeline-marker {
  left: -50px;
}

.timeline-content {
  background: rgba(30, 30, 40, 0.5);
  padding: 2rem;
  border-radius: var(--terminal-border-radius);
  box-shadow: var(--terminal-shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-date {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 255, 157, 0.1);
  color: var(--terminal-green);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}

.timeline-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.timeline-content h4 {
  color: var(--terminal-blue);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.timeline-details {
  padding-left: 1.2rem;
}

.timeline-details li {
  position: relative;
  margin-bottom: 0.8rem;
  color: var(--terminal-gray);
}

.timeline-details li::before {
  content: '│';
  color: var(--terminal-green);
  position: absolute;
  left: -1.2rem;
  top: 0;
}

/* Projects Section */
.projects {
  background: rgba(13, 17, 23, 0.8);
  position: relative;
  overflow: hidden;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: rgba(30, 30, 40, 0.5);
  border-radius: var(--terminal-border-radius);
  overflow: hidden;
  box-shadow: var(--terminal-shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--terminal-transition);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-header {
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-title {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  margin: 0;
  color: var(--terminal-green);
}

.project-content {
  padding: 1.5rem;
}

.project-description {
  margin-bottom: 1rem;
  color: var(--terminal-gray);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-tag {
  padding: 4px 10px;
  background: rgba(42, 157, 255, 0.1);
  color: var(--terminal-blue);
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  color: var(--terminal-green);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.project-link:hover {
  text-decoration: underline;
}

/* Contact Section */
.contact {
  background: var(--terminal-bg);
  position: relative;
  overflow: hidden;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 2rem;
  color: var(--terminal-gray);
}

.contact-commands {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-command {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 255, 157, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 157, 0.1);
  cursor: pointer;
  transition: var(--terminal-transition);
  font-family: var(--font-mono);
}

.contact-command:hover {
  background: rgba(0, 255, 157, 0.1);
  transform: translateX(5px);
}

.contact-command i {
  width: 30px;
  height: 30px;
  background: rgba(0, 255, 157, 0.1);
  color: var(--terminal-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.contact-command span {
  color: var(--terminal-gray);
}

.contact-command .command {
  color: var(--terminal-blue);
  font-weight: 600;
}

.contact-form {
  background: rgba(30, 30, 40, 0.5);
  padding: 2rem;
  border-radius: var(--terminal-border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--terminal-text);
  transition: var(--terminal-transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--terminal-green);
  box-shadow: 0 0 0 3px rgba(0, 255, 157, 0.2);
}

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

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

/* Footer */
.footer {
  background: rgba(10, 10, 15, 0.9);
  color: var(--terminal-gray);
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  color: var(--terminal-text);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.footer-section p {
  color: var(--terminal-gray);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  color: var(--terminal-gray);
  transition: var(--terminal-transition);
  font-family: var(--font-mono);
}

.footer-section ul li a:hover {
  color: var(--terminal-green);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--terminal-gray);
  border-radius: 50%;
  transition: var(--terminal-transition);
}

.social-links a:hover {
  background: var(--terminal-green);
  color: var(--terminal-bg);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--terminal-gray);
}

/* Terminal Console */
.terminal-console {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.console-btn {
  width: 50px;
  height: 50px;
  background: var(--terminal-green);
  color: var(--terminal-bg);
  border: none;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 255, 157, 0.3);
  transition: var(--terminal-transition);
}

.console-btn:hover {
  transform: scale(1.1);
}

.console-window {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 400px;
  height: 300px;
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-green);
  border-radius: var(--terminal-border-radius);
  box-shadow: var(--terminal-shadow);
  z-index: 1000;
  display: none;
  flex-direction: column;
}

.console-header {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--terminal-green);
}

.console-content {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--terminal-green);
}

.console-input {
  display: flex;
  padding: 0.5rem;
  border-top: 1px solid var(--terminal-green);
}

.console-input input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--terminal-text);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.5rem;
  outline: none;
}

.console-input input::placeholder {
  color: var(--terminal-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  
  .hero {
    height: auto;
    padding: 100px 0;
  }
  
  .about-content,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    width: calc(100% - 80px);
    left: 80px !important;
  }
  
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    left: 80px !important;
  }
  
  .timeline-marker {
    left: 20px !important;
    right: auto !important;
  }
  
  .nav-menu {
    display: none;
  }
  
  .terminal-content {
    padding: 1.5rem;
  }
  
  .console-window {
    width: 300px;
    right: 10px;
    bottom: 70px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .hero-command {
    font-size: 0.8rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .project-grid {
    grid-template-columns: 1fr;
  }
}