/* DevSecOps Portfolio - Main Stylesheet */

:root {
  --primary-color: #00f0ff;
  --secondary-color: #ff00aa;
  --bg-dark: #0a0e17;
  --bg-medium: #141c2b;
  --text-light: #ffffff;
  --text-medium: #b3c3d9;
  --accent-purple: #9900ff;
  --accent-green: #00ff9d;
}

/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-medium);
}

section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== Navigation ===== */
.nav-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  z-index: 1000;
  transition: all 0.3s ease;
  background-color: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(10px);
}

.nav-container.scrolled {
  padding: 1rem 2rem;
  background-color: rgba(10, 14, 23, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.logo-hologram {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  position: relative;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-hologram::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 240, 255, 0.3) 0%,
    rgba(0, 240, 255, 0.1) 70%,
    transparent 100%
  );
}

.logo-hologram .glow {
  position: absolute;
  width: 150%;
  height: 20px;
  background: rgba(0, 240, 255, 0.5);
  top: 50%;
  left: -150%;
  transform: translateY(-50%) rotate(45deg);
  animation: shine 3s infinite;
}

.logo-hologram.small {
  width: 30px;
  height: 30px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-medium);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 3px 0;
  transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.hero-content {
  max-width: 600px;
  z-index: 2;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-medium);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.3);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
}

.cta-button {
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button.primary {
  background-color: var(--primary-color);
  color: var(--bg-dark);
  border: none;
}

.cta-button.secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.devops-image-container {
  width: 500px;
  height: 500px;
  position: relative;
  z-index: 1;
}

/* DevOps Cycle Animation */
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotate-reverse {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

/* DevOps Hologram Cycle */
.devops-hologram {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.devops-cycle {
  width: 300px;
  height: 300px;
  position: relative;
  border-radius: 50%;
  border: 2px solid rgba(0, 240, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotate 20s linear infinite;
}

.cycle-node {
  width: 50px;
  height: 50px;
  background: rgba(0, 240, 255, 0.2);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.cycle-node::before {
  content: attr(data-label);
  color: var(--primary-color);
  font-size: 0.7rem;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(0, 240, 255, 0.8);
}

.cycle-node:nth-child(1) {
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}

.cycle-node:nth-child(2) {
  top: 14.6%;
  right: 14.6%;
  transform: translateX(50%) translateY(-50%);
}

.cycle-node:nth-child(3) {
  top: 50%;
  right: 0;
  transform: translateX(50%) translateY(-50%);
}

.cycle-node:nth-child(4) {
  bottom: 14.6%;
  right: 14.6%;
  transform: translateX(50%) translateY(50%);
}

.cycle-node:nth-child(5) {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(50%);
}

.cycle-node:nth-child(6) {
  bottom: 14.6%;
  left: 14.6%;
  transform: translateX(-50%) translateY(50%);
}

.cycle-node:nth-child(7) {
  top: 50%;
  left: 0;
  transform: translateX(-50%) translateY(-50%);
}

.cycle-node:nth-child(8) {
  top: 14.6%;
  left: 14.6%;
  transform: translateX(-50%) translateY(-50%);
}

.cycle-lines {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.cycle-lines::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px dashed rgba(0, 240, 255, 0.3);
  animation: rotate-reverse 15s linear infinite;
}

.glow-effect {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 240, 255, 0.3) 0%,
    rgba(0, 240, 255, 0.1) 40%,
    transparent 70%
  );
  filter: blur(20px);
  animation: pulse 3s infinite;
}

/* ===== About Section ===== */
.about-section {
  background-color: var(--bg-medium);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  margin: 0 auto;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.about-image {
  flex: 1;
  max-width: 400px;
}

.image-container {
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-text {
  flex: 1;
  max-width: 600px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.tech-item i {
  font-size: 2rem;
  color: var(--primary-color);
}

/* DevOps Infinity Symbol */
.devops-infinity {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.infinity-symbol {
  font-size: 120px;
  color: var(--primary-color);
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.8);
  animation: pulse 3s infinite;
}

.infinity-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 240, 255, 0.4) 0%,
    rgba(0, 240, 255, 0.1) 40%,
    transparent 70%
  );
  filter: blur(20px);
  animation: pulse 3s infinite;
}

.infinity-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.infinity-particles::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 30% 50%, var(--primary-color) 1px, transparent 1px),
    radial-gradient(circle at 70% 50%, var(--secondary-color) 1px, transparent 1px),
    radial-gradient(circle at 40% 40%, var(--accent-purple) 1px, transparent 1px),
    radial-gradient(circle at 60% 60%, var(--accent-green) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: rotate 10s linear infinite;
}

/* ===== Skills Section ===== */
.skills-section {
  background-color: var(--bg-dark);
  position: relative;
}

.skills-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.skill-category {
  margin-bottom: 3rem;
}

.skill-category h3 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 240, 255, 0.3);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: rgba(20, 28, 43, 0.5);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background-color: rgba(20, 28, 43, 0.8);
}

.skill-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.skill-info {
  flex: 1;
}

.skill-info h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.skill-bar {
  width: 100%;
  height: 6px;
  background-color: rgba(0, 240, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.skill-level {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
  transition: width 1s ease;
}

/* ===== Portfolio Section ===== */
.portfolio-section {
  background-color: var(--bg-medium);
  position: relative;
}

.portfolio-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--text-medium);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--primary-color);
  color: var(--bg-dark);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.portfolio-item {
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 1;
  transform: scale(1);
}

.portfolio-content {
  background-color: rgba(10, 14, 23, 0.7);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-image {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-image:hover .project-img {
  transform: scale(1.1);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 240, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.overlay-icons {
  display: flex;
  gap: 1rem;
}

.overlay-icons i {
  width: 40px;
  height: 40px;
  background-color: var(--bg-dark);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: translateY(20px);
  opacity: 0;
}

.overlay-icons i:hover {
  background-color: var(--primary-color);
  color: var(--bg-dark);
}

.portfolio-info {
  padding: 1.5rem;
}

.portfolio-info h3 {
  margin-bottom: 0.5rem;
}

.portfolio-info p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.portfolio-tags span {
  padding: 0.3rem 0.8rem;
  background-color: rgba(0, 240, 255, 0.1);
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--primary-color);
}

/* Pipeline Diagram */
.pipeline-diagram {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 20px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(0, 240, 255, 0.05));
  border-radius: 8px;
  overflow: hidden;
}

/* 3D Hologram Container */
.hologram-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.pipeline-stage {
  width: 50px;
  height: 50px;
  background: rgba(0, 240, 255, 0.2);
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.pipeline-stage::before {
  content: attr(data-stage);
  color: var(--primary-color);
  font-size: 0.7rem;
  font-weight: bold;
  text-align: center;
  position: absolute;
  bottom: -20px;
  width: 100%;
}

.pipeline-arrows {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.pipeline-arrows::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: translateY(-50%);
}

.pipeline-arrows::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10%;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--secondary-color);
  border-right: 2px solid var(--secondary-color);
  transform: translateY(-50%) rotate(45deg);
}

/* ===== Contact Section ===== */
.contact-section {
  background-color: var(--bg-dark);
  position: relative;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.contact-info {
  flex: 1;
  max-width: 400px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(0, 240, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.contact-text h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: rgba(0, 240, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary-color);
  color: var(--bg-dark);
  transform: translateY(-5px);
}

.contact-form {
  flex: 1;
  max-width: 600px;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background-color: rgba(20, 28, 43, 0.5);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 4px;
  color: var(--text-light);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: rgba(20, 28, 43, 0.8);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-highlight {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease;
}

.form-group input:focus ~ .form-highlight,
.form-group textarea:focus ~ .form-highlight {
  width: 100%;
}

.submit-btn {
  padding: 1rem 2rem;
  background-color: var(--primary-color);
  color: var(--bg-dark);
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.form-message {
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: 4px;
  text-align: center;
}

.form-message.success {
  background-color: rgba(0, 255, 157, 0.1);
  color: var(--accent-green);
}

.form-message.error {
  background-color: rgba(255, 0, 170, 0.1);
  color: var(--secondary-color);
}

.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ===== Footer ===== */
.footer {
  background-color: var(--bg-medium);
  padding: 2rem 0;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-text {
  color: var(--text-medium);
  font-size: 0.9rem;
}

/* ===== Responsive Styles ===== */
@media (max-width: 1200px) {
  .about-content,
  .contact-container {
    flex-direction: column;
    align-items: center;
  }
  
  .about-image,
  .about-text,
  .contact-info,
  .contact-form {
    max-width: 100%;
  }
}

@media (max-width: 992px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .hero-section {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
  }
  
  .hero-content {
    margin-bottom: 3rem;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .devops-image-container {
    width: 400px;
    height: 400px;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    background-color: rgba(10, 14, 23, 0.95);
    padding: 2rem 0;
    gap: 1.5rem;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  
  .nav-links.active {
    transform: translateY(0);
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  .skill-grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .devops-image-container {
    width: 300px;
    height: 300px;
  }
}
