/* ============================================
   CSS Variables & Reset
   ============================================ */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --green: #00ff88;
  --green-dim: rgba(0, 255, 136, 0.1);
  --green-hover: rgba(0, 255, 136, 0.07);
  --text-primary: #e0e0e0;
  --text-secondary: #8b8b8b;
  --text-heading: #ffffff;
  --white: #ffffff;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --nav-height: 70px;
  --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
  --transition-slow: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--green) var(--bg-secondary);
}

html::-webkit-scrollbar {
  width: 8px;
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--green-dim);
  color: var(--green);
}

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

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

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

strong {
  color: var(--text-heading);
  font-weight: 600;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 25px;
}

/* ============================================
   Loader
   ============================================ */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-bar {
  width: 60px;
  height: 3px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loader-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60px;
  width: 60px;
  height: 100%;
  background: var(--green);
  border-radius: 2px;
  animation: loaderSlide 0.8s ease-in-out infinite;
}

@keyframes loaderSlide {
  0% { left: -60px; }
  100% { left: 60px; }
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  height: 60px;
}

.navbar.hidden {
  transform: translateY(-100%);
}

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

.logo {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--green);
  letter-spacing: -1px;
}

.logo:hover {
  opacity: 0.8;
}
.logo-image{
  height: 22px; 
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links li a {
  padding: 8px 14px;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-primary);
  transition: var(--transition);
  border-radius: 4px;
}

.nav-links li a:hover {
  color: var(--green);
  background: var(--green-hover);
}

.nav-number {
  color: var(--green);
  font-size: 0.75rem;
  margin-right: 4px;
}

.nav-cta {
  border: 1px solid var(--green) !important;
  color: var(--green) !important;
  border-radius: 4px !important;
  padding: 8px 16px !important;
  margin-left: 8px;
}

.nav-cta:hover {
  background: var(--green-dim) !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--green);
  transition: var(--transition);
  transform-origin: center;
}

.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(5px, -5px);
}

/* ============================================
   Side Elements
   ============================================ */
.side-element {
  position: fixed;
  bottom: 0;
  z-index: 10;
}

.side-left {
  left: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.side-right {
  right: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.side-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.side-social li a {
  color: var(--text-secondary);
  transition: var(--transition);
  display: flex;
  align-items: center;
  padding: 5px;
}

.side-social li a:hover {
  color: var(--green);
  transform: translateY(-3px);
}

.side-line {
  width: 1px;
  height: 90px;
  background: var(--text-secondary);
  margin-top: 20px;
}

.side-email {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
  transition: var(--transition);
}

.side-email:hover {
  color: var(--green);
  transform: translateY(-3px);
}

/* ============================================
   Sections - General
   ============================================ */
.section {
  padding: 100px 0;
}

.section-heading {
  display: flex;
  align-items: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 40px;
  white-space: nowrap;
}

.section-heading::after {
  content: '';
  display: block;
  flex: 1;
  min-width: 0;
  height: 1px;
  background: var(--bg-tertiary);
  margin-left: 20px;
}

.section-number {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--green);
  margin-right: 10px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

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

.btn-outline:hover {
  background: var(--green-dim);
}

.btn-whatsapp {
  color: #25d366;
  border: 1px solid #25d366;
  background: transparent;
}

.btn-whatsapp:hover {
  background: rgba(37, 211, 102, 0.1);
  color: #25d366;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 0.9rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
}

.hero .container {
  max-width: 1000px;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--green);
  margin-bottom: 20px;
}

.hero-name {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero-tagline {
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-description {
  max-width: 540px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
}

/* ============================================
   About Section
   ============================================ */
.about-content {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 50px;
  align-items: start;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  margin-top: 20px;
}

.skills-list li {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 20px;
}

.skills-list li::before {
  content: '>';
  color: var(--green);
  position: absolute;
  left: 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

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

.image-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-tertiary);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: var(--transition);
  overflow: hidden;
}

.image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green-dim);
  mix-blend-mode: screen;
  transition: var(--transition);
}

.image-placeholder:hover::before {
  opacity: 0;
}

.image-placeholder span {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--green);
  opacity: 0.5;
}

.image-border {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--green);
  border-radius: 4px;
  z-index: 0;
  transition: var(--transition);
}

.image-wrapper:hover .image-border {
  top: 10px;
  left: 10px;
}

/* ============================================
   Services Section
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-secondary);
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--bg-tertiary);
  background: var(--bg-tertiary);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  color: var(--green);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.2rem;
  color: var(--text-heading);
  margin-bottom: 12px;
  font-weight: 600;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   Projects Section - Featured
   ============================================ */
.projects-featured {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-bottom: 80px;
}

.project-featured {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 10px;
  align-items: center;
  position: relative;
}

.project-featured:nth-child(even) {
  direction: rtl;
}

.project-featured:nth-child(even) > * {
  direction: ltr;
}

.project-featured:nth-child(even) .project-content {
  text-align: right;
}

.project-featured:nth-child(even) .project-tech {
  justify-content: flex-end;
}

.project-featured:nth-child(even) .project-links {
  justify-content: flex-end;
}

.project-overline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green);
  margin-bottom: 8px;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.project-title a {
  color: var(--text-heading);
  transition: var(--transition);
}

.project-title a:hover {
  color: var(--green);
}

.project-description {
  background: var(--bg-secondary);
  padding: 24px;
  border-radius: 4px;
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.5);
}

.project-description p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.project-tech li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.project-links {
  display: flex;
  gap: 12px;
}

.project-links a {
  color: var(--text-primary);
  transition: var(--transition);
  padding: 4px;
}

.project-links a:hover {
  color: var(--green);
}

.project-image {
  position: relative;
  z-index: 1;
}

.project-image-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--bg-tertiary);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.project-image-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green-dim), transparent);
  transition: var(--transition);
}

.project-image-placeholder:hover::before {
  opacity: 0;
}

.project-image-placeholder span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.5;
  position: relative;
  z-index: 1;
}

/* ============================================
   Projects Section - Card Grid
   ============================================ */
.projects-other-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-heading);
  text-align: center;
  margin-bottom: 40px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project-card {
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-7px);
}

.project-card-inner {
  background: var(--bg-secondary);
  border-radius: 4px;
  padding: 32px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.project-card:hover .project-card-inner {
  background: var(--bg-tertiary);
}

.project-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.project-card-icon {
  color: var(--green);
}

.project-card-links a {
  color: var(--text-secondary);
  transition: var(--transition);
  padding: 4px;
}

.project-card-links a:hover {
  color: var(--green);
}

.project-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.project-card-title a {
  color: var(--text-heading);
  transition: var(--transition);
}

.project-card-title a:hover {
  color: var(--green);
}

.project-card-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 20px;
}

.project-card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.project-card-tech li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 100px 25px 150px;
}

.contact .section-number {
  display: block;
  margin-bottom: 16px;
  font-size: 1rem;
}

.contact-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 20px;
}

.contact-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 24px 0;
  text-align: center;
}

.footer p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.footer a {
  color: var(--green);
}

.footer a:hover {
  text-decoration: underline;
}

/* ============================================
   Animations
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger animation delays for hero */
.hero .fade-up:nth-child(1) { transition-delay: 0.1s; }
.hero .fade-up:nth-child(2) { transition-delay: 0.2s; }
.hero .fade-up:nth-child(3) { transition-delay: 0.3s; }
.hero .fade-up:nth-child(4) { transition-delay: 0.4s; }
.hero .fade-up:nth-child(5) { transition-delay: 0.5s; }

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 1095px) {
  .nav-container {
    padding: 0 25px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(75vw, 400px);
    height: 100vh;
    height: 100dvh;
    background: var(--bg-secondary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 40px;
    transition: right 0.3s ease;
    box-shadow: -10px 0 30px -15px rgba(0, 0, 0, 0.7);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links.active::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }

  .nav-links li a {
    font-size: 1rem;
    padding: 12px 20px;
    display: block;
    text-align: center;
  }

  .nav-cta {
    margin-left: 0 !important;
    margin-top: 16px;
  }
  .side-element {
    display: none;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    order: -1;
  }

  .image-wrapper {
    width: 220px;
    height: 220px;
  }

  .project-featured {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-featured:nth-child(even) {
    direction: ltr;
  }

  .project-featured:nth-child(even) .project-content {
    text-align: left;
  }

  .project-featured:nth-child(even) .project-tech {
    justify-content: flex-start;
  }

  .project-featured:nth-child(even) .project-links {
    justify-content: flex-start;
  }

  .project-image {
    margin-top: 10px;
  }

  .project-image-placeholder {
    aspect-ratio: 16/9;
  }

  .project-description {
    background: transparent;
    padding: 0;
    box-shadow: none;
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* .nav-container {
    padding: 0 25px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(75vw, 400px);
    height: 100vh;
    height: 100dvh;
    background: var(--bg-secondary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 40px;
    transition: right 0.3s ease;
    box-shadow: -10px 0 30px -15px rgba(0, 0, 0, 0.7);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links.active::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }

  .nav-links li a {
    font-size: 1rem;
    padding: 12px 20px;
    display: block;
    text-align: center;
  }

  .nav-cta {
    margin-left: 0 !important;
    margin-top: 16px;
  } */

  .section {
    padding: 60px 0;
  }

  .section-heading {
    font-size: 1.4rem;
    white-space: normal;
  }

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

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

  .hero {
    padding-top: calc(var(--nav-height) + 20px);
  }

  .hero-description {
    font-size: 0.95rem;
  }

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

  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-lg {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .projects-featured {
    gap: 50px;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 2rem;
  }

  .hero-tagline {
    font-size: 1.5rem;
  }

  .section-heading {
    font-size: 1.2rem;
  }

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