:root {
  --primary-color: #6c63ff;
  --secondary-color: #4d44db;
  --dark-color: #2f2e41;
  --light-color: #f8f9fa;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #fd7e14;
  --info-color: #17a2b8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  caret-color: var(--primary-color);
  font-family: "Poppins", sans-serif;
}

body {
  background-color: var(--light-color);
  color: var(--dark-color);
  overflow-x: hidden;
}

/*LINKS*/
a {
  text-decoration: none;
  cursor: pointer;
}

/*SCROLLBAR*/
::-webkit-scrollbar {
  width: 5px;
  height: 5px; /* FOR HORIZONTAL SCROLLBARS */
}

/* TRACK */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px var(--black);
  background-color: var(--black);
}

/* HANDLE */
::-webkit-scrollbar-thumb {
  background: var(--primary-color);
}

/* HANDLE ON HOVER */
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* CUSTOM FONTS */
@font-face {
  font-family: "RalewayLocal";
  src: url("fonts/Raleway-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Regular.ttf") format("truetype");
  font-style: normal;
}

@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Regular.otf") format("opentype");
  font-style: normal;
}

@font-face {
  font-family: "Catchland PERSONAL USE ONLY";
  src: url("fonts/Catchland_PERSONAL_USE_ONLY.otf") format("opentype");
  font-style: normal;
}

/* ANIMATED BACKGROUND */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, #ffa600, #ff0867, #00af66, #5d0092);
  background-size: 400% 400%;
  animation: gradient 7s ease infinite;
  z-index: -1;
  opacity: 0.2;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* NAVIGATION */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.637);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 20px;  
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;  
  gap: 2rem;
  max-width: 1200px;  
  margin: 0 auto;  
  flex-wrap: wrap;  
  text-align: center; 
}

.hero-content {
  flex: 1 1 400px; 
}

.hero-image {
  flex: 1 1 400px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* Responsive tweaks */
@media (max-width: 992px) {
  .hero {
    padding-top: 60px;
  }
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    order: 2; 
  }
  .hero-image {
    order: 1;
  }
}

.profile-img {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.tech-icons {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  background-color: white;
  padding: 1rem;
  border-radius: 50px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tech-icons i {
  font-size: 1.5rem;
  color: var(--dark-color);
  transition: all 0.3s ease;
}

.tech-icons i:hover {
  color: var(--primary-color);
  transform: translateY(-5px);
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-right: 1rem;
}

.btn.primary:hover,
.btn.primary-hero:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

.btn.secondary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn.secondary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(108, 99, 255, 0.3);
}

/* ANIMATIONS */
.animated-text {
  animation: fadeInUp 1s ease;
}

.animated-subtext {
  animation: fadeInUp 1s ease 0.3s forwards;
  opacity: 0;
}

.animated-description {
  animation: fadeInUp 1s ease 0.6s forwards;
  opacity: 0;
  margin-top: 15px;
}

.cta-buttons {
  animation: fadeInUp 1s ease 0.9s forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn.primary-hero {
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background-color: var(--primary-color);
  border: 8px solid #c0dfff;
  color: white;
  gap: 8px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 20px;
  margin-bottom: 20px;
}

.btn.primary {
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background-color: var(--primary-color);
  border: 8px solid #c0dfff;
  color: white;
  gap: 8px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
}

.text {
  font-size: 1.7em;
  font-weight: 700;
  letter-spacing: 1px;
}

.button:hover {
  border: 8px solid #b1d8ff;
  background-color: var(--primary-color);
}
.button:active {
  border: 5px solid #c0dfff;
}

/* SECTION STYLES */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 3rem;
  color: #6c757d;
}

.section-footer {
  text-align: center;
  margin-top: 3rem;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.highlight {
  color: var(--primary-color);
}
.highlight-hero {
  color: var(--primary-color);
  font-size: 40px;
  animation: blurReveal 5s ease-in-out infinite;
  display: inline-block;
}

@keyframes blurReveal {
  0%,
  100% {
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
  }
  45% {
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
  }
  50% {
    filter: blur(6px);
    opacity: 0.7;
    transform: scale(1.1);
  }
  55% {
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
  }
}

/* ABOUT SECTION */
.about-content {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  margin: 0 100px;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.personal-info {
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.info-item span {
  font-weight: 600;
  color: var(--primary-color);
}

.about-stats {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 2rem;
  align-content: start;
}

.stat-item {
  text-align: center;
  padding: 0;
  width: 60;
  height: 60;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 50px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-text {
  font-size: 1rem;
  color: #6c757d;
}

/* Mobile optimization: 2 columns */
@media (max-width: 768px) {
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem; /* reduce spacing for smaller screens */
  }

  .stat-number {
    font-size: 32px; /* scale down numbers for mobile */
  }

  .stat-text {
    font-size: 0.9rem;
  }
}

.stat-item {
  text-align: center;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.stat-item:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 50px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-text {
  font-size: 1rem;
  color: #6c757d;
}

/* SKILLS SECTION */
.skills-container {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  margin: 0 100px;
}

.skills-content {
  flex: 1;
}

.skill-bars {
  margin-top: 2rem;
}

.skill-bar {
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.skill-bar.animated {
  opacity: 1;
  transform: translateX(0);
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 10px;
  background-color: #e9ecef;
  border-radius: 5px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 5px;
  width: 0;
  transition: width 1s ease 0.3s;
}

.skills-icons {
  flex: 1;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1.5rem;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.icon-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.icon-item i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

/* PROJECTS SECTION */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem auto;    
  max-width: 1200px;       
  padding: 0 1rem;         
}

.project-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-image {
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  margin-bottom: 0.5rem;
}

.project-info p {
  margin-bottom: 1rem;
  color: #6c757d;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-tech span {
  background-color: rgba(108, 99, 255, 0.1);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.btn.small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Responsive tweak for very small screens */
@media (max-width: 400px) {
  .projects-grid {
    grid-template-columns: 1fr; 
    padding: 0 0.5rem;        
  }
}

/* CONTACT SECTION */
.contact-container {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  margin: 0 100px;
}

.contact-info {
  flex: 1;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(108, 99, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.contact-details h3 {
  margin-bottom: 0.3rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(108, 99, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.contact-form {
  flex: 1;
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.25);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

/* FOOTER */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo .logo {
  color: white;
  font-size: 1.8rem;
}

.footer-logo p {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links h3,
.footer-contact h3 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-contact i {
  margin-right: 0.5rem;
  width: 20px;
  text-align: center;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ANIMATIONS */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeout-message {
  color: #ff6b6b;
  background-color: #fff5f5;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
  border-left: 4px solid #ff6b6b;
}

/* BACK TO TOP BUTTON */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 5px 20px rgba(108, 99, 255, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top i {
  transition: transform 0.3s ease;
}

.back-to-top:hover i {
  transform: translateY(-3px);
}

@media screen and (max-width: 768px) {
  .contact-container,
  .hero,
  .hero .container,
  .about-content,
  .skills-container,
  .projects-grid {
    margin: 0 1rem;
  }
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .about-content,
  .skills-container,
  .contact-container {
    flex-direction: column;
  }

  .about-text {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .personal-info {
    grid-template-columns: 1fr;
  }

  .tech-icons {
    bottom: -10px;
    padding: 0.8rem;
    gap: 0.8rem;
  }
  .tech-icons i {
    font-size: 1.3rem;
  }

  .nav-links.active {
    left: 0;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    margin-bottom: 3rem;
  }

  .cta-buttons {
    justify-content: center;
  }
  .tech-icons {
    bottom: -10px;
    padding: 0.8rem;
    gap: 0.8rem;
  }
  .tech-icons i {
    font-size: 1.3rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.753);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: all 0.5s ease;
  }

  .nav-links.active {
    left: 0;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    margin-bottom: 3rem;
  }

  .cta-buttons {
    justify-content: center;
  }

  .btn.primary-hero {
    margin-bottom: 20px;
  }
}

@media (max-width: 576px) {
  .project-links {
    flex-direction: column;
  }

  .btn.small {
    width: 45%;
    text-align: center;
  }
}






