/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/

:root {
  /* Colors */
  --rich-black: #0a0a0a;
  --jet-black: #1a1a1a;
  --dark-gray: #2a2a2a;
  --medium-gray: #404040;
  --light-gray: #606060;
  --silver: #909090;
  --white-smoke: #f5f5f5;
  --pure-white: #ffffff;
  
  /* Accent Colors - Changed to green theme */
  --electric-blue: #00ff88;
  --cyber-green: #00ff88;
  --neon-purple: #22c55e;
  --gradient-primary: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  --gradient-secondary: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
  --gradient-accent: linear-gradient(135deg, #059669 0%, #10b981 100%);
  
  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --fs-1: 2.5rem;
  --fs-2: 2rem;
  --fs-3: 1.5rem;
  --fs-4: 1.25rem;
  --fs-5: 1rem;
  --fs-6: 0.875rem;
  --fs-7: 0.75rem;
  
  --fw-300: 300;
  --fw-400: 400;
  --fw-500: 500;
  --fw-600: 600;
  --fw-700: 700;

  /* Spacing */
  --section-padding: 60px;
  
  /* Shadow */
  --shadow-1: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-2: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-3: 0 16px 64px rgba(0, 0, 0, 0.5);
  
  /* Border Radius */
  --radius-6: 6px;
  --radius-8: 8px;
  --radius-12: 12px;
  --radius-16: 16px;
  --radius-20: 20px;
  
  /* Transition */
  --transition-1: 0.25s ease;
  --transition-2: 0.5s ease-in-out;
  --cubic-bezier: cubic-bezier(0.4, 0, 0.2, 1);
}

/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li { list-style: none; }

a,
img,
time,
span,
input,
button,
textarea,
ion-icon { display: block; }

a {
  color: inherit;
  text-decoration: none;
}

img { height: auto; }

input,
button,
textarea {
  background: none;
  border: none;
  font: inherit;
}

input,
textarea { width: 100%; }

button { cursor: pointer; }

ion-icon { pointer-events: none; }

html {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  background: var(--rich-black);
  color: var(--white-smoke);
  overflow-x: hidden;
}

/*-----------------------------------*\
  #BACKGROUND ELEMENTS
\*-----------------------------------*/

.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -2;
}

.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
  z-index: -1;
}

/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

.content-card {
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-16);
  padding: 30px;
  box-shadow: var(--shadow-2);
}

.h2 { font-size: var(--fs-1); }
.h3 { font-size: var(--fs-2); }
.h4 { font-size: var(--fs-3); }
.h5 { font-size: var(--fs-4); }

.article-title {
  font-weight: var(--fw-600);
  margin-bottom: 30px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/*-----------------------------------*\
  #MAIN
\*-----------------------------------*/

main {
  margin: 15px 12px;
  min-height: calc(100vh - 30px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/*-----------------------------------*\
  #SIDEBAR
\*-----------------------------------*/

.sidebar {
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-20);
  padding: 30px;
  box-shadow: var(--shadow-2);
  z-index: 1;
  transition: var(--transition-2);
}

.sidebar.active { max-height: 700px; }

.sidebar-info {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.avatar-box {
  position: relative;
  background: var(--gradient-primary);
  border-radius: 50%;
  padding: 4px;
}

.avatar-border {
  position: absolute;
  inset: -4px;
  background: var(--gradient-accent);
  border-radius: 50%;
  z-index: -1;
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.avatar-box img {
  background: var(--rich-black);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.status-indicator {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 16px;
  height: 16px;
  background: var(--cyber-green);
  border-radius: 50%;
  border: 2px solid var(--rich-black);
  animation: pulse 2s infinite;
}

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

.name {
  color: var(--pure-white);
  font-size: var(--fs-3);
  font-weight: var(--fw-600);
  text-align: center;
}

.title {
  color: var(--silver);
  font-size: var(--fs-6);
  font-weight: var(--fw-400);
  text-align: center;
  position: relative;
}

.typing-text {
  font-family: var(--font-mono);
}

.cursor {
  animation: blink 1s infinite;
  color: var(--electric-blue);
}

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

.info_more-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--pure-white);
  font-size: var(--fs-6);
  padding: 10px;
  box-shadow: var(--shadow-2);
  transition: var(--transition-1);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 5px;
}

.info_more-btn span { display: none; }

.chevron-icon {
  width: 16px;
  height: 16px;
  transition: var(--transition-1);
}

.info_more-btn:hover {
  background: var(--gradient-secondary);
  transform: scale(1.1);
}

.sidebar.active .chevron-icon { transform: rotate(180deg); }

.sidebar-info_more {
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-2);
  margin-top: 20px;
}

.sidebar.active .sidebar-info_more {
  opacity: 1;
  visibility: visible;
}

.separator {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  margin: 20px 0;
}

.contacts-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.contact-item {
  min-width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-12);
  transition: var(--transition-1);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.icon-box {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-8);
}

.icon-box svg {
  width: 20px;
  height: 20px;
  color: var(--pure-white);
}

.contact-info {
  flex-grow: 1;
  min-width: 0;
}

.contact-title {
  color: var(--silver);
  font-size: var(--fs-7);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contact-link {
  color: var(--white-smoke);
  font-size: var(--fs-6);
  transition: var(--transition-1);
}

.contact-link:hover { color: var(--electric-blue); }

.social-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.social-link {
  color: var(--silver);
  font-size: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-8);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-1);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.social-link:hover {
  background: var(--gradient-primary);
  color: var(--pure-white);
  transform: translateY(-3px);
}

/*-----------------------------------*\
  #NAVBAR
\*-----------------------------------*/

.navbar {
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-16);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.navbar-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.navbar-link {
  color: var(--silver);
  font-size: var(--fs-6);
  font-weight: var(--fw-500);
  padding: 20px 15px;
  transition: var(--transition-1);
  position: relative;
}

.navbar-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px;
  transition: var(--transition-1);
}

.navbar-link:hover,
.navbar-link.active {
  color: var(--pure-white);
}

.navbar-link.active::before {
  width: 80%;
}

/*-----------------------------------*\
  #MAIN CONTENT
\*-----------------------------------*/

.main-content {
  position: relative;
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-20);
  box-shadow: var(--shadow-2);
  z-index: 1;
  min-height: calc(100vh - 150px);
}

article {
  display: none;
  padding: 40px;
}

article.active { display: block; }

/*-----------------------------------*\
  #ABOUT
\*-----------------------------------*/

.about-text {
  color: var(--silver);
  font-size: var(--fs-5);
  font-weight: var(--fw-300);
  line-height: 1.8;
  margin-bottom: 40px;
}

.about-text p:not(:last-child) { margin-bottom: 20px; }

.service {
  margin-bottom: 40px;
}

.service-title {
  margin-bottom: 30px;
  font-weight: var(--fw-600);
  color: var(--pure-white);
}

.service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-item {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-16);
  padding: 30px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: var(--transition-1);
  overflow: hidden;
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.1;
  transition: var(--transition-2);
}

.service-item:hover::before {
  left: 0;
}

.service-item:hover {
  border-color: rgba(34, 197, 94, 0.3);
  transform: translateY(-5px);
}

.service-icon-box {
  background: var(--gradient-primary);
  width: 60px;
  height: 60px;
  border-radius: var(--radius-12);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.service-icon-box svg {
  width: 24px;
  height: 24px;
  color: var(--pure-white);
}

.service-content-box {
  flex-grow: 1;
}

.service-item-title {
  margin-bottom: 10px;
  color: var(--pure-white);
  font-weight: var(--fw-600);
}

.service-item-text {
  color: var(--silver);
  font-size: var(--fs-6);
  line-height: 1.6;
}

/*-----------------------------------*\
  #RESUME
\*-----------------------------------*/

.timeline {
  margin-bottom: 40px;
}

.title-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.timeline .icon-box {
  background: var(--gradient-primary);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-12);
  display: flex;
  justify-content: center;
  align-items: center;
}

.timeline .icon-box svg {
  width: 24px;
  height: 24px;
  color: var(--pure-white);
}

.title-wrapper .h3 {
  color: var(--pure-white);
  font-weight: var(--fw-600);
}

.timeline-list {
  font-size: var(--fs-6);
  margin-left: 65px;
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 30px;
}

.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 0;
  left: -7px;
  width: 1px;
  height: calc(100% + 30px);
  background: rgba(255, 255, 255, 0.2);
}

.timeline-item::after {
  content: '';
  position: absolute;
  top: 5px;
  left: -11px;
  height: 8px;
  width: 8px;
  background: var(--gradient-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.timeline-item-title {
  font-size: var(--fs-5);
  color: var(--pure-white);
  font-weight: var(--fw-600);
  line-height: 1.3;
  margin-bottom: 7px;
}

.timeline-item span {
  color: var(--electric-blue);
  font-weight: var(--fw-500);
  font-family: var(--font-mono);
  font-size: var(--fs-7);
  margin-bottom: 10px;
  display: block;
}

.timeline-text {
  color: var(--silver);
  font-weight: var(--fw-300);
  line-height: 1.6;
}

.skill {
  margin-bottom: 40px;
}

.skills-title {
  color: var(--pure-white);
  font-weight: var(--fw-600);
  margin-bottom: 30px;
}

.skills-list {
  padding: 30px;
  border-radius: var(--radius-16);
}

.skills-item:not(:last-child) { margin-bottom: 25px; }

.title-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.title-wrapper data {
  color: var(--electric-blue);
  font-size: var(--fs-7);
  font-weight: var(--fw-600);
  font-family: var(--font-mono);
}

.skill-progress-bg {
  background: rgba(255, 255, 255, 0.1);
  width: 100%;
  height: 8px;
  border-radius: 10px;
}

.skill-progress-fill {
  background: var(--gradient-primary);
  height: 100%;
  border-radius: inherit;
  transition: var(--transition-2);
}

/*-----------------------------------*\
  #PORTFOLIO
\*-----------------------------------*/

.filter-list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 15px;
  margin-bottom: 40px;
}

.filter-item button {
  color: var(--silver);
  font-size: var(--fs-6);
  font-weight: var(--fw-500);
  padding: 12px 24px;
  border-radius: var(--radius-12);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-1);
  white-space: nowrap;
}

.filter-item button:hover,
.filter-item button.active {
  background: var(--gradient-primary);
  color: var(--pure-white);
  border-color: transparent;
}

.project-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.project-item {
  display: none;
}

.project-item.active { display: block; }

.project-item > a {
  display: block;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-16);
  overflow: hidden;
  transition: var(--transition-1);
}

.project-item > a:hover {
  border-color: rgba(34, 197, 94, 0.3);
  transform: translateY(-5px);
}

.project-img {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-2);
}

.project-item > a:hover .project-img img {
  transform: scale(1.1);
}

.project-item-icon-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition-1);
}

.project-item > a:hover .project-item-icon-box {
  opacity: 1;
}

.project-item-icon-box svg {
  width: 24px;
  height: 24px;
  color: var(--pure-white);
}

.project-overlay {
  position: absolute;
  top: 15px;
  right: 15px;
}

.project-category-tag {
  background: var(--gradient-primary);
  color: var(--pure-white);
  font-size: var(--fs-7);
  font-weight: var(--fw-600);
  padding: 6px 12px;
  border-radius: var(--radius-8);
  font-family: var(--font-mono);
}

.project-title {
  color: var(--pure-white);
  font-size: var(--fs-4);
  font-weight: var(--fw-600);
  line-height: 1.3;
  margin: 20px 20px 10px;
}

.project-category {
  color: var(--silver);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  margin: 0 20px 20px;
}

/*-----------------------------------*\
  #CONTACT
\*-----------------------------------*/

.contact-form { margin-bottom: 10px; }

.form-title {
  color: var(--pure-white);
  font-weight: var(--fw-600);
  margin-bottom: 30px;
}

.input-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-bottom: 25px;
}

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

.textarea-group {
  margin-bottom: 30px;
}

.form-input {
  color: var(--white-smoke);
  font-size: var(--fs-6);
  font-weight: var(--fw-400);
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-12);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  outline: none;
  transition: var(--transition-1);
  width: 100%;
}

.form-input::placeholder {
  color: var(--silver);
  font-weight: var(--fw-500);
}

.form-input:focus {
  border-color: var(--electric-blue);
  background: rgba(255, 255, 255, 0.1);
}

textarea.form-input {
  min-height: 120px;
  height: 120px;
  max-height: 200px;
  resize: vertical;
}

.form-btn {
  background: var(--gradient-primary);
  color: var(--pure-white);
  font-size: var(--fs-6);
  font-weight: var(--fw-600);
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-12);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: var(--transition-1);
  box-shadow: var(--shadow-2);
}

.form-btn:hover {
  background: var(--gradient-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-3);
}

.form-btn svg {
  width: 18px;
  height: 18px;
}

.form-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/*-----------------------------------*\
  #RESPONSIVE
\*-----------------------------------*/

@media (min-width: 450px) {
  .service-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-list {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 580px) {
  .input-wrapper {
    grid-template-columns: 1fr 1fr;
  }
  
  .sidebar {
    max-width: none;
  }
  
  .navbar-list {
    justify-content: center;
    gap: 10px;
  }
  
  .navbar-link {
    padding: 15px 20px;
  }
}

@media (min-width: 768px) {
  :root {
    --fs-1: 3rem;
    --fs-2: 2.25rem;
    --fs-3: 1.75rem;
    --fs-4: 1.375rem;
    --fs-5: 1.125rem;
  }

  .project-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-list {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .filter-list {
    gap: 20px;
  }
  
  .filter-item button {
    padding: 15px 30px;
    font-size: var(--fs-5);
  }
}

@media (min-width: 1024px) {
  main {
    margin: 20px;
    flex-direction: row;
    align-items: flex-start;
    gap: 25px;
  }

  .sidebar {
    position: sticky;
    top: 20px;
    max-width: 350px;
    margin-bottom: 0;
  }

  .sidebar.active { max-height: none; }

  .sidebar-info_more {
    opacity: 1;
    visibility: visible;
  }

  .info_more-btn { display: none; }

  .main-content {
    flex-grow: 1;
    width: calc(100% - 375px);
  }

  .navbar-list { 
    justify-content: flex-start;
    gap: 15px;
  }

  .project-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .service-list {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (min-width: 1200px) {
  .project-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 579px) {
  .sidebar {
    max-height: 120px;
    overflow: hidden;
  }
  
  .navbar {
    margin-bottom: 15px;
  }
  
  .navbar-list {
    flex-wrap: wrap;
    padding: 10px;
    gap: 5px;
  }
  
  .navbar-link {
    padding: 12px 15px;
    font-size: var(--fs-7);
  }
  
  article {
    padding: 25px 20px;
  }
  
  .filter-list {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
  }
  
  .filter-item button {
    padding: 10px 16px;
    font-size: var(--fs-7);
    min-width: auto;
  }
  
  .service-item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}

/*-----------------------------------*\
  #ANIMATIONS
\*-----------------------------------*/

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-item,
.timeline-item,
.skills-item,
.project-item {
  animation: fadeInUp 0.6s ease-out;
}

.service-item:nth-child(2) { animation-delay: 0.1s; }
.service-item:nth-child(3) { animation-delay: 0.2s; }
.service-item:nth-child(4) { animation-delay: 0.3s; }

.timeline-item:nth-child(2) { animation-delay: 0.1s; }
.timeline-item:nth-child(3) { animation-delay: 0.2s; }
.timeline-item:nth-child(4) { animation-delay: 0.3s; }
.timeline-item:nth-child(5) { animation-delay: 0.4s; }
