:root {
  --blue-light:#e6e7e7; 
  --blue-light-hover:#e6e7e7;
  --blue-light-active:#e6e7e7;

  --blue-normal:#60a5fa;
  --blue-normal-hover:#4d84c8;

  --blue-dark:#487cbc;
  --blue-dark-hover:#3a6396;
  --blue-dark-active:#2b4a70;
  --blue-darker:#223a58;

  --blue-50:#e6e7e7;
  --blue-100:#b2b3b5;
  --blue-200:#8d8f92;
  --blue-300:#5a5c60;
  --blue-400:#393c41;
  --blue-500:#080b11;
  --blue-600:#070a0f;
  --blue-700:#06080c;
  --blue-800:#040609;
  --blue-900:#030507;

  --bg-dark: #000000;
  --bg-lines: rgba(255, 255, 255, 0.05);
  --text-main: #ffffff;
  --text-muted: #f5f2f248;
  --accent-green: #ffffff;
  --overlay-text: rgba(255, 255, 255, 0.2);
  --icon-hover: #b2b3b5;
}
html{
  overflow-x: hidden;
}


body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background: url('imgs/back (1).png') no-repeat center center/cover;
  color: var(--text-main);
  height: 110vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}
/* Logo */
.logo {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 18px;
}

.logo img {
  width: 25px;
  margin-right: 15px;
}

/* Sidebar */
.sidebar {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin: 20px 30px;
}

.sidebar a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s;
}

.sidebar a {
  position: relative;
  color: var(--text-main);
  text-decoration: none;
  font-size: 18px;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}

.sidebar a::before {
  content: '';
  position: absolute;
  left: -50px;
  top: 50%;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left;
  width: 40px;
  height: 2px; 
  background-color: var(--blue-dark-active);
  transition: transform 0.3s ease;
}

.sidebar a:hover::before,
.sidebar a.active::before {
  transform: translateY(-50%) scaleX(1);
}

.sidebar a:hover,
.sidebar a.active {
  transform: translateX(12px); 
  color: var(--blue-dark-active);
}
/* Center Content */
.center-content {
  text-align: center;
  z-index: 2;
  margin-top: 100px;
}

.profile-pic {
  width: 570px;
  max-width: 100%;
}

/* Intro Statement */
.intro-statement {
  text-align: center;
  margin-top: 40px;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Stats Section */
.stats {
   background: url('imgs/image.png') no-repeat center center/cover;
  color: var(--text-main);
  width: 100%;
  display: flex;
  justify-content: center; 
  align-items: center;    
}

.stats .content {
  width: 70%;
  display: flex;
  flex-direction: column;
  align-items: center; 
  text-align: center;
}

.stats .intro-statement {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.stats .box {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-box {
  padding: 20px 30px;
  border-radius: 10px;
  font-size: 18px;
  color: var(--accent-green);
  font-weight: 200;
  text-align: center;
}
.stat-box span{
  font-weight: bold;
  font-size: 30px;
}

/* Responsive Layout Fixes */
@media (max-width: 1024px) {
  .profile-pic {
    width: 400px;
  }

  .stats .content {
    width: 90%;
  }
}

@media (max-width: 768px) {
  /* Sidebar becomes top nav */
  .sidebar {
    position: static;
    transform: none;
    margin: 20px 0;
    text-align: center;
  }

  .sidebar ul {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
  }

  .sidebar li {
    margin: 0;
  }

  .sidebar a {
    font-size: 16px;
  }

  .logo {
    position: static;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    margin-top: 50px;
    
  }

  .center-content {
    margin-top: 40px;
  }

  .profile-pic {
    width: 280px;
  }

  .stats .box {
    flex-direction: column;
    gap: 20px;
  }

  .stat-box {
    width: 100%;
    padding: 15px;
  }

  .stat-box span {
    font-size: 26px;
  }

  .intro-statement {
    font-size: 16px;
    padding: 0 10px;
  }
  .social{
    display: none;
  }
}

@media (max-width: 480px) {
  .logo span {
    font-size: 14px;
       
  }

  .sidebar a {
    font-size: 14px;
  }

  .profile-pic {
    width: 200px;
  }

  .stat-box {
    font-size: 15px;
  }

  .stat-box span {
    font-size: 22px;
  }

  .intro-statement {
    font-size: 15px;
  }
   .social{
    display: none;
  }
}


/* About Me */
.about-me {
     background: url('imgs/Frame\ 1984078079.png') no-repeat center center/cover;
  color: var(--text-main);
  height: 100vh;
  /* max-width: 100%; */
  width: 100%;
  text-align: center;
  padding: 20px;
  /* margin: 0 auto; */
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-me h2 {
  font-size: 28px;
  color: var(--accent-green);
  margin-bottom: 10px;
}

.about-me p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Technologies */
.technologies {
  text-align: center;
  margin: 30px 0;
}

.technologies h3 {
  font-size: 22px;
  color: var(--accent-green);
  margin-bottom: 10px;
}

.technologies ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.technologies li {
  background-color: var(--bg-lines);
  padding: 10px 20px;
  border-radius: 8px;
  color: var(--text-main);
  font-weight: 500;
}

/* CV Button */
.cv-button {
  text-align: center;
  margin: 30px 0;
}

.cv-button a {
  background-color: var(--accent-green);
  color: #000;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.cv-button a:hover {
  background-color: #e6e7e7;
}

/* Social */
.social {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  text-align: right;
}

.social p {
  margin-bottom: 10px;
}

.icons a {
  display: inline-block;
  margin-left: 10px;
  transition: transform 0.3s;
}

.icons a:hover svg path {
  fill: var(--icon-hover);
}
.icons a {
  display: inline-block;
  margin-left: 10px;
  animation: snake 1s ease-in-out infinite alternate;
}

.icons a:nth-child(1) { animation-delay: 0s; }
.icons a:nth-child(2) { animation-delay: 0.2s; }
.icons a:nth-child(3) { animation-delay: 0.4s; }

@keyframes snake {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-8px); }
  100% { transform: translateY(0); }    
}
/* Scroll Indicator */
.scroll-indicator {
  display: flex;
  
  justify-content: center;
  align-items: center;
  /* margin-top: 30px; */
  background-color: #000000;
  width: 100%;
}

.scroll-indicator .circle {
  width: 30px;
  height: 30px;
  border: 2px solid var(--blue-light);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  transition: transform 0.3s ease;
}

.scroll-indicator .circle:hover {
  transform: scale(1.1);
}


.arrow-down {
  width: 24px;
  height: 24px;
}
/* Continuous scroll animation */
.scroll-indicator .circle {
  animation: scrollFloat 1.8s ease-in-out infinite;
}

.arrow-down {
  animation: arrowFade 1.8s ease-in-out infinite;
}

@keyframes scrollFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes arrowFade {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

/* @media (max-width: 768px) {
  .cert-flex img {
    flex: 1 1 100%;  
  }
} */
.certifications {
  text-align: center;
  padding: 80px 20px;
  background: url('imgs/Frame 1984078079.png') no-repeat center center/cover;
  color: var(--text-main);
}

.cert-title {
  font-size: 28px;
  color: var(--accent-green);
  margin-bottom: 50px;
  font-weight: bold;
  letter-spacing: 1px;
}

/* Grid: 2 columns on desktop, 1 on mobile */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.cert-card {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.cert-card img {
  width: 100%;
  border-radius: 12px;
  border: 2px solid var(--bg-lines);
}

.cert-card:hover {
  transform: scale(1.03);
}

.zoom-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0,0,0,0.6);
  color: white;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.zoom-icon:hover {
  transform: scale(1.1);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #0e1925;
  padding: 30px;
  border-radius: 12px;
  max-width: 600px;
  color: white;
  position: relative;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .cert-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .cert-title {
    font-size: 24px;
  }

  .cert-card img {
    border-radius: 10px;
  }

  .zoom-icon {
    font-size: 20px;
    padding: 6px;
  }
}

/* Services Section */
.services {
  background: url('imgs/Frame\ 1984078079.png') no-repeat center center/cover;
  padding: 80px 40px;
  text-align: center;
  color: var(--text-main);
}

.services-title {
  font-size: 26px;
  color: var(--accent-green);
  margin-bottom: 50px;
  letter-spacing: 1px;
  font-weight: bold;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.service-card {
  background: url('imgs/serback.png') no-repeat center center/cover;
  border-radius: 12px;
  padding: 30px 20px;
  width: 300px;
  /* box-shadow: 0 0 15px rgba(0, 255, 136, 0.1); */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  /* box-shadow: 0 0 25px rgba(0, 255, 136, 0.3); */
}

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

.service-card h3 {
  font-size: 20px;
  color: var(--accent-green);
  margin-bottom: 15px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .service-card {
    width: 100%;
  }
}
/* Projects Section */
.projects {
  background: url('imgs/Frame 1984078079.png') no-repeat center center/cover;
  padding: 80px 40px;
  text-align: center;
  color: var(--text-main);
}

.projects-title {
  font-size: 26px;
  color: var(--accent-green);
  margin-bottom: 50px;
  letter-spacing: 1px;
  font-weight: bold;
}

/* Grid layout using Flexbox */
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

/* Each project card */
.project-card {
  position: relative;
  flex: 1 1 calc(50% - 40px); 
  max-width: 500px;
  background-color: var(--bg-lines);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(114, 124, 119, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  /* box-shadow: 0 0 30px rgba(0, 255, 136, 0.3); */
}

.project-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.project-card:hover img {
  transform: scale(1.02);
}

/* Info box */
.project-info {
  background-color: #000;
  padding: 20px;
  text-align: left;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-info h3 {
  font-size: 18px;
  color: var(--accent-green);
  margin-bottom: 5px;
}

.project-info .category {
  font-size: 14px;
  color: var(--blue-normal);
  margin-bottom: 5px;
}

.project-info .date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.project-info .desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Overlay */
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s;
}

.btn-icon {
  flex-shrink: 0;
}

.demo {
  background-color: #ffffff;
  color: #000;
}

.code {
  background-color: transparent;
  border: 1px solid var(--blue-dark-active);
  color: #fff;
}

.btn:hover {
  background-color: var(--accent-green);
  color: #000;
}


/* Responsive for mobile */
@media (max-width: 768px) {
  .project-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* Contact Section */
.contact {
  background: url('imgs/image.png') no-repeat center center/cover;
  width: 100%;
  padding: 80px 40px;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Wrapper: text + form */
.contact-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  max-width: 1000px;
  width: 100%;
  margin-bottom: 60px;
}

/* Left side: Text */
.contact-text {
  flex: 1;
}

.contact-title {
  font-size: 28px;
  color: var(--accent-green);
  margin-bottom: 20px;
  font-weight: bold;
  letter-spacing: 1px;
}

.contact-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Right side: Form */
.contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: none;
  background-color: var(--bg-lines);
  color: var(--text-main);
  font-size: 14px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form button {
  background-color: var(--accent-green);
  color: #000;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #e6e7e7;
}

/* Footer */
.footer {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .contact-wrapper {
    gap: 40px;
  }

  .contact-title {
    font-size: 24px;
  }

  .contact-subtitle {
    font-size: 15px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 13px;
  }

  .contact-form button {
    padding: 10px 20px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .contact-text,
  .contact-form {
    width: 100%;
    max-width: 500px;
  }

  .contact-title {
    font-size: 22px;
  }

  .contact-subtitle {
    font-size: 14px;
    padding: 0 10px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 13px;
    padding: 10px 12px;
  }

  .contact-form button {
    width: 100%;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .contact {
    padding: 60px 20px;
  }

  .contact-title {
    font-size: 20px;
  }

  .contact-subtitle {
    font-size: 13px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 12px;
    padding: 8px 10px;
  }

  .contact-form button {
    font-size: 14px;
    padding: 10px;
  }

  .footer {
    font-size: 12px;
    padding: 0 10px;
  }
}

