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

:root {
   --bg-primary: #0a0a0a;
   --bg-secondary: #1a1a1a;
   --bg-tertiary: #2a2a2a;
   --text-primary: #00ff00;
   --text-secondary: #ffffff;
   --text-muted: #888888;
   --accent-color: #00ffff;
   --glass-bg: rgba(26, 26, 26, 0.7);
   --glass-border: rgba(255, 255, 255, 0.1);
   --shadow-color: rgba(0, 255, 0, 0.2);
   --navbar-width: 80px;
   --navbar-expanded-width: 250px;
   --terminal-green: #00ff00;
   --terminal-red: #ff5555;
   --terminal-yellow: #ffff55;
}

html {
   scroll-behavior: smooth;
}

body {
   font-family: 'JetBrains Mono', monospace;
   background-color: var(--bg-primary);
   background-image:
      radial-gradient(circle at 20% 20%, rgba(0, 255, 0, 0.08) 0%, transparent 40%),
      radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.08) 0%, transparent 40%),
      radial-gradient(circle at 40% 60%, rgba(0, 255, 0, 0.05) 0%, transparent 30%);
   background-attachment: fixed;
   color: var(--text-secondary);
   overflow-x: hidden;
   line-height: 1.6;
   animation: ambientGlow 8s ease-in-out infinite alternate;
}

@keyframes ambientGlow {
   0% {
      background-image:
         radial-gradient(circle at 20% 20%, rgba(0, 255, 0, 0.08) 0%, transparent 40%),
         radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.08) 0%, transparent 40%),
         radial-gradient(circle at 40% 60%, rgba(0, 255, 0, 0.05) 0%, transparent 30%);
   }

   50% {
      background-image:
         radial-gradient(circle at 25% 25%, rgba(0, 255, 0, 0.12) 0%, transparent 45%),
         radial-gradient(circle at 75% 75%, rgba(0, 255, 255, 0.12) 0%, transparent 45%),
         radial-gradient(circle at 45% 65%, rgba(0, 255, 0, 0.08) 0%, transparent 35%);
   }

   100% {
      background-image:
         radial-gradient(circle at 30% 30%, rgba(0, 255, 0, 0.06) 0%, transparent 35%),
         radial-gradient(circle at 70% 70%, rgba(0, 255, 255, 0.06) 0%, transparent 35%),
         radial-gradient(circle at 50% 70%, rgba(0, 255, 0, 0.03) 0%, transparent 25%);
   }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
   width: 8px;
}

::-webkit-scrollbar-track {
   background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
   background: var(--text-primary);
   border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
   background: var(--accent-color);
}

/* Navigation Sidebar */
.navbar {
   position: fixed;
   top: 0;
   left: 0;
   height: 100vh;
   width: var(--navbar-width);
   background: var(--glass-bg);
   backdrop-filter: blur(10px);
   border-right: 1px solid var(--glass-border);
   transition: all 0.3s ease;
   z-index: 1000;
   display: flex;
   flex-direction: column;
   padding: 1rem 0;
}

.navbar:hover {
   width: var(--navbar-expanded-width);
   box-shadow: 0 0 30px var(--shadow-color);
}

.nav-header {
   display: flex;
   align-items: center;
   padding: 0 1rem;
   margin-bottom: 2rem;
}

.terminal-icon {
   font-size: 1.5rem;
   color: var(--text-primary);
   min-width: 48px;
   display: flex;
   justify-content: center;
}

.nav-title {
   margin-left: 1rem;
   font-weight: 600;
   color: var(--text-primary);
   opacity: 0;
   transition: opacity 0.3s ease;
}

.navbar:hover .nav-title {
   opacity: 1;
}

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

.nav-menu li {
   margin-bottom: 0.5rem;
}

.nav-link {
   display: flex;
   align-items: center;
   padding: 1rem;
   color: var(--text-secondary);
   text-decoration: none;
   transition: all 0.3s ease;
   border-left: 3px solid transparent;
   position: relative;
}

.nav-link:hover {
   background: rgba(0, 255, 0, 0.1);
   border-left-color: var(--text-primary);
   color: var(--text-primary);
}

.nav-link i {
   font-size: 1.2rem;
   min-width: 48px;
   display: flex;
   justify-content: center;
}

.nav-link span {
   margin-left: 1rem;
   opacity: 0;
   transition: opacity 0.3s ease;
}

.navbar:hover .nav-link span {
   opacity: 1;
}

/* Main Content */
.main-content {
   margin-left: var(--navbar-width);
   transition: margin-left 0.3s ease;
}

.section {
   min-height: 100vh;
   padding: 2rem;
   display: flex;
   align-items: center;
   justify-content: center;
}

.container {
   width: 100%;
   max-width: 1200px;
   margin: 0 auto;
}

.section-title {
   font-size: 2rem;
   margin-bottom: 2rem;
   color: var(--text-primary);
   text-align: center;
}

.prompt {
   color: var(--text-primary);
   margin-right: 0.5rem;
}

/* Terminal Window */
.terminal-window {
   background: var(--bg-secondary);
   border: 1px solid var(--glass-border);
   border-radius: 8px;
   overflow: hidden;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.terminal-header {
   background: var(--bg-tertiary);
   padding: 0.5rem 1rem;
   display: flex;
   align-items: center;
   justify-content: space-between;
   border-bottom: 1px solid var(--glass-border);
}

.terminal-buttons {
   display: flex;
   gap: 0.5rem;
}

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

.btn.close {
   background: var(--terminal-red);
}

.btn.minimize {
   background: var(--terminal-yellow);
}

.btn.maximize {
   background: var(--terminal-green);
}

.terminal-title {
   color: var(--text-muted);
   font-size: 0.9rem;
}

.terminal-body {
   padding: 1.5rem;
}

.terminal-line {
   display: flex;
   align-items: center;
   margin-bottom: 0.5rem;
}

.command {
   color: var(--accent-color);
}

.cursor {
   animation: blink 1s infinite;
}

@keyframes blink {

   0%,
   50% {
      opacity: 1;
   }

   51%,
   100% {
      opacity: 0;
   }
}

/* Home Section */
.home-section {
   background: linear-gradient(135deg, rgba(0, 255, 0, 0.05) 0%, rgba(0, 0, 0, 0.9) 100%);
}

.typewriter {
   font-size: 3rem;
   color: var(--text-primary);
   margin-bottom: 1rem;
   animation: typing 3s steps(20) infinite;
}

@keyframes typing {

   0%,
   90%,
   100% {
      width: 0;
   }

   30%,
   60% {
      width: 100%;
   }
}

.terminal-description {
   color: var(--text-muted);
   font-size: 1.2rem;
   margin-bottom: 2rem;
}

.terminal-output {
   margin: 1rem 0;
}

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

.profile-container {
   display: flex;
   justify-content: center;
   align-items: center;
}

.profile-shield {
   width: 250px;
   height: 250px;
   background: linear-gradient(45deg, var(--text-primary), var(--accent-color));
   border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
   padding: 4px;
   position: relative;
   box-shadow: 0 0 30px var(--shadow-color);
   animation: float 6s ease-in-out infinite;
}

@keyframes float {

   0%,
   100% {
      transform: translateY(0px);
   }

   50% {
      transform: translateY(-10px);
   }
}

.profile-img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
   background: var(--bg-secondary);
}

.stats {
   display: flex;
   gap: 2rem;
   margin-top: 2rem;
   justify-content: space-around;
}

.stat-item {
   text-align: center;
}

.stat-number {
   display: block;
   font-size: 2rem;
   font-weight: bold;
   color: var(--text-primary);
}

.stat-label {
   color: var(--text-muted);
   font-size: 0.9rem;
}

/* Skills Section */
.skills-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
   gap: 1.5rem;
   max-width: 1400px;
   margin: 0 auto;
}

.skill-category {
   background: var(--glass-bg);
   backdrop-filter: blur(10px);
   border: 1px solid var(--glass-border);
   border-radius: 8px;
   padding: 2rem;
   transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
   transform: translateY(-5px);
   box-shadow: 0 10px 30px var(--shadow-color);
}

.skill-category h3 {
   color: var(--text-primary);
   margin-bottom: 1.5rem;
   text-align: center;
   font-size: 1.3rem;
}

.skills-list {
   space-y: 1rem;
}

.skill-item {
   display: flex;
   align-items: center;
   gap: 1rem;
   margin-bottom: 1rem;
}

.skill-item i {
   font-size: 1.5rem;
   color: var(--accent-color);
   min-width: 24px;
}

.skill-item span {
   flex-grow: 1;
   color: var(--text-secondary);
}

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

.skill-progress {
   height: 100%;
   background: linear-gradient(90deg, var(--text-primary), var(--accent-color));
   border-radius: 4px;
   animation: fillBar 2s ease-in-out;
}

@keyframes fillBar {
   0% {
      width: 0;
   }

   100% {
      width: var(--width);
   }
}

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

.project-card {
   background: var(--glass-bg);
   backdrop-filter: blur(10px);
   border: 1px solid var(--glass-border);
   border-radius: 8px;
   overflow: hidden;
   transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-header {
   padding: 1.5rem;
   border-bottom: 1px solid var(--glass-border);
   display: flex;
   align-items: center;
   gap: 1rem;
}

.project-icon {
   width: 50px;
   height: 50px;
   background: linear-gradient(45deg, var(--text-primary), var(--accent-color));
   border-radius: 8px;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 1.5rem;
   color: var(--bg-primary);
}

.project-header h3 {
   color: var(--text-primary);
   font-size: 1.2rem;
}

.project-body {
   padding: 1.5rem;
}

.project-body p {
   color: var(--text-secondary);
   margin-bottom: 1rem;
   line-height: 1.6;
}

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

.tech-tag {
   background: var(--bg-tertiary);
   color: var(--accent-color);
   padding: 0.3rem 0.8rem;
   border-radius: 20px;
   font-size: 0.8rem;
   border: 1px solid var(--glass-border);
}

.project-footer {
   padding: 1.5rem;
   border-top: 1px solid var(--glass-border);
   display: flex;
   gap: 1rem;
}

.project-link {
   display: flex;
   align-items: center;
   gap: 0.5rem;
   padding: 0.5rem 1rem;
   background: transparent;
   border: 1px solid var(--text-primary);
   color: var(--text-primary);
   text-decoration: none;
   border-radius: 4px;
   transition: all 0.3s ease;
   font-size: 0.9rem;
}

.project-link:hover {
   background: var(--text-primary);
   color: var(--bg-primary);
   transform: translateY(-2px);
}

.project-status {
   display: flex;
   align-items: center;
   gap: 0.3rem;
   padding: 0.3rem 0.8rem;
   background: rgba(0, 255, 255, 0.1);
   border: 1px solid var(--accent-color);
   border-radius: 20px;
   font-size: 0.8rem;
   font-weight: 500;
}

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

.contact-item {
   display: flex;
   align-items: center;
   gap: 1rem;
   margin-bottom: 1.5rem;
}

.contact-item i {
   font-size: 1.5rem;
   color: var(--accent-color);
   min-width: 40px;
}

.contact-item h4 {
   color: var(--text-primary);
   margin-bottom: 0.3rem;
}

.contact-item p {
   color: var(--text-secondary);
}

/* Contact Form */
.terminal-form {
   background: var(--glass-bg);
   backdrop-filter: blur(10px);
   border: 1px solid var(--glass-border);
   border-radius: 8px;
   padding: 2rem;
}

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

.form-group label {
   display: block;
   color: var(--text-primary);
   margin-bottom: 0.5rem;
   font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
   width: 100%;
   padding: 0.8rem;
   background: var(--bg-secondary);
   border: 1px solid var(--glass-border);
   border-radius: 4px;
   color: var(--text-secondary);
   font-family: 'JetBrains Mono', monospace;
   font-size: 0.9rem;
   transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
   outline: none;
   border-color: var(--text-primary);
   box-shadow: 0 0 10px var(--shadow-color);
}

.submit-btn {
   background: transparent;
   border: 1px solid var(--text-primary);
   color: var(--text-primary);
   padding: 0.8rem 2rem;
   border-radius: 4px;
   cursor: pointer;
   font-family: 'JetBrains Mono', monospace;
   font-size: 0.9rem;
   transition: all 0.3s ease;
   display: flex;
   align-items: center;
   gap: 0.5rem;
}

.submit-btn:hover {
   background: var(--text-primary);
   color: var(--bg-primary);
   transform: translateY(-2px);
   box-shadow: 0 5px 15px var(--shadow-color);
}

/* Footer */
.footer {
   background: var(--bg-secondary);
   border-top: 1px solid var(--glass-border);
   padding: 2rem 0;
   margin-left: var(--navbar-width);
   transition: margin-left 0.3s ease;
}

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

.footer-text p {
   color: var(--text-muted);
}

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

.social-link {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 40px;
   height: 40px;
   background: transparent;
   border: 1px solid var(--glass-border);
   color: var(--text-secondary);
   text-decoration: none;
   border-radius: 50%;
   transition: all 0.3s ease;
}

.social-link:hover {
   background: var(--text-primary);
   color: var(--bg-primary);
   transform: translateY(-2px);
   box-shadow: 0 5px 15px var(--shadow-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
   .about-content {
      grid-template-columns: 1fr;
      text-align: center;
      gap: 2rem;
   }

   .contact-content {
      grid-template-columns: 1fr;
      gap: 2rem;
   }

   .projects-grid {
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   }
}

@media (max-width: 768px) {
   .navbar {
      transform: translateX(-100%);
      transition: transform 0.3s ease;
   }

   .navbar:hover {
      transform: translateX(0);
   }

   .main-content {
      margin-left: 0;
   }

   .footer {
      margin-left: 0;
   }

   .section {
      padding: 1rem;
   }

   .typewriter {
      font-size: 2rem;
   }

   .skills-grid {
      grid-template-columns: 1fr;
   }

   .stats {
      flex-direction: column;
      gap: 1rem;
   }

   .footer-content {
      flex-direction: column;
      gap: 1rem;
   }

   .project-footer {
      flex-direction: column;
   }
}

@media (max-width: 480px) {
   .profile-shield {
      width: 200px;
      height: 200px;
   }

   .typewriter {
      font-size: 1.5rem;
   }

   .section-title {
      font-size: 1.5rem;
   }

   .projects-grid {
      grid-template-columns: 1fr;
   }
}

/* Animation Classes */
.fade-in {
   animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
   0% {
      opacity: 0;
      transform: translateY(20px);
   }

   100% {
      opacity: 1;
      transform: translateY(0);
   }
}

.slide-in-left {
   animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
   0% {
      opacity: 0;
      transform: translateX(-50px);
   }

   100% {
      opacity: 1;
      transform: translateX(0);
   }
}

.slide-in-right {
   animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
   0% {
      opacity: 0;
      transform: translateX(50px);
   }

   100% {
      opacity: 1;
      transform: translateX(0);
   }
}

/* Custom Scroll Animations */
.section-hidden {
   opacity: 0;
   transform: translateY(30px);
   transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.scroll-reveal {
   opacity: 0;
   transform: translateY(60px);
   transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.active {
   opacity: 1;
   transform: translateY(0);
}

/* Staggered animations for multiple elements */
.scroll-reveal:nth-child(1) {
   transition-delay: 0.1s;
}

.scroll-reveal:nth-child(2) {
   transition-delay: 0.2s;
}

.scroll-reveal:nth-child(3) {
   transition-delay: 0.3s;
}

.scroll-reveal:nth-child(4) {
   transition-delay: 0.4s;
}

.scroll-reveal:nth-child(5) {
   transition-delay: 0.5s;
}