/* Developer Portfolio - Dark Theme */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

body {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  background-color: #0a0a0c;
  color: #cbd5e1;
  overflow-x: hidden;
}

::selection {
  background-color: #14532d;
  color: #bbf7d0;
}

/* Top Bar (IDE Style) */
.top-bar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #16161a;
  border-bottom: 1px solid #2d2d35;
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  z-index: 50;
  font-size: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.window-controls {
  display: flex;
  gap: 0.5rem;
  margin-right: 1rem;
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: all 0.3s;
  cursor: pointer;
}

.control.red {
  background-color: #ef4444;
}

.control.red:hover {
  background-color: #dc2626;
}

.control.yellow {
  background-color: #eab308;
}

.control.yellow:hover {
  background-color: #ca8a04;
}

.control.green {
  background-color: #22c55e;
}

.control.green:hover {
  background-color: #16a34a;
}

.file-name {
  color: #64748b;
  flex: 1;
  text-align: center;
  font-family: "Fira Code", monospace;
  opacity: 0.7;
}

.exit-link {
  color: #64748b;
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.exit-link:hover {
  color: white;
}

.exit-text-mobile {
  display: inline;
}

.exit-text {
  display: none;
}

@media (min-width: 640px) {
  .exit-text {
    display: inline;
  }
  .exit-text-mobile {
    display: none;
  }
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 48px;
  left: 0;
  right: 0;
  background-color: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #2d2d35;
  z-index: 40;
  transition: all 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: #22c55e;
  font-family: "Fira Code", monospace;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  transition: all 0.3s;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background-color: #22c55e;
  transition: width 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: #22c55e;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 0.25rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background-color: #94a3b8;
  transition: all 0.3s;
  border-radius: 2px;
}

.nav-toggle:hover span {
  background-color: #22c55e;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 108px;
    right: -100%;
    flex-direction: column;
    background-color: rgba(10, 10, 12, 0.98);
    backdrop-filter: blur(10px);
    width: 100%;
    height: calc(100vh - 108px);
    padding: 2rem 1.5rem;
    border-top: 1px solid #2d2d35;
    transition: right 0.3s;
    gap: 0;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    border-bottom: 1px solid #2d2d35;
  }

  .nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1rem;
  }

  .nav-link::after {
    display: none;
  }
}

/* Disclaimer Banner */
.disclaimer-banner {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.15) 0%,
    rgba(234, 179, 8, 0.15) 100%
  );
  border-top: 1px solid rgba(239, 68, 68, 0.3);
  border-bottom: 1px solid rgba(239, 68, 68, 0.3);
  padding: 1rem 1.5rem;
  position: relative;
  z-index: 30;
}

.disclaimer-top {
  position: fixed;
  top: 108px;
  left: 0;
  right: 0;
  width: 100%;
}

.disclaimer-bottom {
  margin-top: 4rem;
  margin-bottom: 0;
}

.disclaimer-content {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.disclaimer-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.disclaimer-text {
  color: #fbbf24;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.disclaimer-link {
  color: #22c55e;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s;
}

.disclaimer-link:hover {
  color: #16a34a;
}

@media (max-width: 768px) {
  .disclaimer-banner {
    padding: 0.75rem 1rem;
  }

  .disclaimer-text {
    font-size: 0.75rem;
  }

  .disclaimer-icon {
    font-size: 1rem;
  }

  .disclaimer-content {
    gap: 0.5rem;
  }
}

/* Container */
.container {
  padding-top: 13.5rem;
  max-width: 1152px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (max-width: 768px) {
  .container {
    padding-top: 15rem;
  }
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 8rem;
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-content {
  order: 2;
}

@media (min-width: 768px) {
  .hero-content {
    order: 1;
  }
}

.greeting {
  color: #22c55e;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-family: "Fira Code", monospace;
  animation: fadeIn 0.8s ease-out 0.1s backwards;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  letter-spacing: -0.05em;
  animation: fadeIn 0.8s ease-out 0.2s backwards;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.accent {
  color: #22c55e;
}

.hero-subtitle {
  font-size: 1.875rem;
  color: #94a3b8;
  margin-bottom: 2rem;
  animation: fadeIn 0.8s ease-out 0.3s backwards;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 2.25rem;
  }
}

.code-block {
  background-color: #111;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid #333;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  font-family: "Fira Code", monospace;
  font-size: 0.875rem;
  margin-bottom: 2rem;
  position: relative;
  animation: fadeIn 0.8s ease-out 0.4s backwards;
}

.code-lang {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.75rem;
  color: #64748b;
}

.code-line {
  color: #22c55e;
  margin-bottom: 0.5rem;
}

.typed-text {
  color: white;
}

.cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.code-comment {
  color: #64748b;
  margin-top: 0.5rem;
}

.code-return {
  color: #60a5fa;
  margin-top: 0.5rem;
}

.keyword {
  color: #a78bfa;
}

.string {
  color: #fbbf24;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  animation: fadeIn 0.8s ease-out 0.5s backwards;
}

.btn-outline {
  padding: 0.75rem 2rem;
  border: 1px solid #22c55e;
  color: #22c55e;
  background: transparent;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-family: "Fira Code", monospace;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-outline:hover {
  background-color: rgba(34, 197, 94, 0.1);
}

.hero-image {
  order: 1;
  position: relative;
  animation: fadeIn 0.8s ease-out backwards;
}

@media (min-width: 768px) {
  .hero-image {
    order: 2;
  }
}

.glow-effect {
  position: absolute;
  inset: -4px;
  background: linear-gradient(to right, #059669, #2563eb);
  border-radius: 0.5rem;
  filter: blur(20px);
  opacity: 0.25;
  transition: opacity 1s;
}

.hero-image:hover .glow-effect {
  opacity: 0.5;
}

.image-wrapper {
  position: relative;
  background-color: #16161a;
  border-radius: 0.5rem;
  padding: 0.5rem;
  border: 1px solid #333;
}

.code-image {
  border-radius: 0.25rem;
  filter: grayscale(100%);
  transition: filter 0.5s;
  width: 100%;
  height: auto;
}

.image-wrapper:hover .code-image {
  filter: grayscale(0%);
}

/* Skills Section */
.skills-section {
  margin-bottom: 8rem;
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-left: 1rem;
  white-space: nowrap;
}

.number {
  color: #22c55e;
  font-family: "Fira Code", monospace;
}

.divider {
  height: 1px;
  background-color: #2d2d35;
  flex: 1;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.skill-card {
  background-color: #16161a;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid #2d2d35;
  transition: all 0.3s;
}

.skill-card:hover {
  border-color: rgba(34, 197, 94, 0.5);
  transform: translateY(-0.5rem);
}

.skill-icon {
  color: #22c55e;
  margin-bottom: 1rem;
  transition: all 0.3s;
}

.skill-card:hover .skill-icon {
  color: #16a34a;
  transform: scale(1.1);
  transform-origin: right;
}

.skill-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.skill-desc {
  color: #cbd5e1;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.skill-tech {
  color: #94a3b8;
  font-size: 0.75rem;
  font-family: "Fira Code", monospace;
}

/* About Section */
.about-section {
  margin-bottom: 8rem;
}

.about-content {
  max-width: 800px;
}

.about-text {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-text:last-child {
  margin-bottom: 0;
}

/* Project Section */
.project-section {
  margin-bottom: 8rem;
}

.project-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .project-showcase {
    grid-template-columns: repeat(12, 1fr);
  }
}

.project-content {
  order: 2;
  background-color: #16161a;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid #333;
}

@media (min-width: 768px) {
  .project-content {
    grid-column: span 7;
    order: 1;
    background-color: transparent;
    padding: 0;
    border: none;
    text-align: right;
    z-index: 10;
  }
}

.project-label {
  color: #22c55e;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: "Fira Code", monospace;
}

.project-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: color 0.3s;
}

.project-title:hover {
  color: #16a34a;
}

.project-description {
  color: #cbd5e1;
  font-size: 0.875rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  background-color: transparent;
}

@media (min-width: 768px) {
  .project-description {
    background-color: #1f2937;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid #333;
  }
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  font-family: "Fira Code", monospace;
  color: #94a3b8;
  margin-bottom: 1.5rem;
  list-style: none;
}

@media (min-width: 768px) {
  .tech-stack {
    justify-content: flex-start;
  }
}

.tech-stack li {
  color: rgba(34, 197, 94, 0.8);
}

.project-links {
  display: flex;
  gap: 1.5rem;
  color: #94a3b8;
}

@media (min-width: 768px) {
  .project-links {
    justify-content: flex-start;
  }
}

.project-links svg {
  cursor: pointer;
  transition: all 0.3s;
}

.project-links svg:hover {
  color: #22c55e;
  transform: scale(1.1);
}

.project-image {
  order: 1;
  height: 100%;
  opacity: 0.5;
}

@media (min-width: 768px) {
  .project-image {
    grid-column: 6 / span 7;
    grid-row: 1;
    order: 2;
    opacity: 1;
  }
}

.project-image:hover {
  opacity: 1;
}

.project-image {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #333;
  cursor: pointer;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(34, 197, 94, 0.2);
  z-index: 10;
  transition: all 0.3s;
}

.project-image:hover .image-overlay {
  background-color: transparent;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: all 0.3s;
}

.project-image:hover .project-img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Footer */
.footer {
  padding: 2rem 0;
  text-align: center;
  color: #64748b;
  font-size: 0.875rem;
  background-color: #050507;
  border-top: 1px solid #16161a;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-icons svg {
  cursor: pointer;
  transition: color 0.3s;
}

.footer-icons svg:hover {
  color: #22c55e;
}

.footer-text {
  font-family: "Fira Code", monospace;
  font-size: 0.75rem;
}

.version {
  color: #22c55e;
}

/* Additional Projects Section */
.projects-section {
  margin-bottom: 8rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  background-color: #16161a;
  padding: 2rem;
  border-radius: 0.5rem;
  border: 1px solid #2d2d35;
  transition: all 0.3s;
}

.project-card:hover {
  border-color: rgba(34, 197, 94, 0.5);
  transform: translateY(-0.25rem);
}

.project-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.project-card-desc {
  color: #cbd5e1;
  font-size: 0.875rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.project-card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-family: "Fira Code", monospace;
  color: #94a3b8;
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-card-tech li {
  color: rgba(34, 197, 94, 0.8);
}

/* CTA Section */
.cta-section {
  margin-bottom: 8rem;
}

.cta-content {
  max-width: 700px;
  text-align: center;
}

.cta-text {
  color: #cbd5e1;
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn-primary {
  padding: 0.75rem 2rem;
  background-color: #22c55e;
  color: #0a0a0c;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: "Fira Code", monospace;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}

.btn-primary:hover {
  background-color: #16a34a;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(34, 197, 94, 0.3);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
