/* =========================================================
   RESET
========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0d1117;
  color: #e6edf3;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font-family: inherit;
}

button,
a,
input[type="submit"] {
  -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   GLOBAL ELEMENTS
========================================================= */

section {
  width: min(100% - 30px, 1000px);
  margin: 0 auto;
  padding: 50px 20px;
}

h2 {
  color: #58a6ff;
  text-align: center;
  margin-bottom: 25px;
  font-size: 2rem;
}

h3 {
  color: #58a6ff;
  text-align: center;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

p {
  margin-bottom: 15px;
}


/* =========================================================
   ANIMATIONS
========================================================= */

.fade-in {
  opacity: 0;
  animation: fadeIn 1.2s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  opacity: 0;
  animation: slideUp 1s ease forwards;
}

@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}


/* =========================================================
   HERO
========================================================= */

.hero {
  background: linear-gradient(
    135deg,
    #0f0f0f,
    #1f1f1f,
    #111111,
    #0a0a0a
  );

  background-size: 400% 400%;
  animation: heroGradient 12s ease infinite;

  color: white;
  padding: 60px 20px;
  text-align: center;
}

@keyframes heroGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.hero-content {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.hero-image {
  width: 160px;
  height: 160px;

  border-radius: 50%;
  object-fit: cover;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);

  opacity: 0;

  animation:
    fadeIn 1.5s forwards,
    floatImage 4s ease-in-out infinite;

  flex-shrink: 0;
}

@keyframes floatImage {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

.hero-image:hover {
  transform: scale(1.05);
}

.hero-text {
  opacity: 0;
  animation: fadeIn 1.5s forwards;
}

.hero-text h1 {
  font-size: 2.7rem;
  margin-bottom: 15px;

  border-bottom: 3px solid #58a6ff;

  display: inline-block;
  padding-bottom: 8px;
}

.subtitle {
  max-width: 650px;
  margin: 0 auto 10px;

  font-size: 1.1rem;
  color: #c9d1d9;
}


/* =========================================================
   NAVIGATION
========================================================= */

header {
  background-color: #161b22;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;

  width: 100%;

  background: #161b22;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.navbar ul {
  list-style: none;

  display: flex;
  justify-content: center;
  align-items: center;

  gap: 25px;

  padding: 15px 20px;

  flex-wrap: wrap;
}

.navbar ul li a {
  color: #e6edf3;

  text-decoration: none;

  font-weight: 500;

  transition: color 0.3s ease;
}

.navbar ul li a:hover {
  color: #58a6ff;
}


/* =========================================================
   ABOUT / HOME SECTIONS
========================================================= */

.about-1 {
  background: #0d2227;

  border: 1px solid #0d3337;
  border-radius: 25px;

  margin-top: 30px;

  padding: 30px 20px;

  font-size: 1.25rem;

  text-align: center;

  transition: 0.3s ease;

  overflow-wrap: anywhere;
}

.about-1:hover {
  transform: translateY(-4px);

  box-shadow:
    0 10px 25px rgba(13, 153, 151, 0.35);
}


.work {
  background: #0d3337;

  border: 1px solid #0d4447;
  border-radius: 35px;

  margin-top: 30px;

  padding: 30px 20px;

  font-size: 1.15rem;

  transition: 0.3s ease;

  overflow-wrap: anywhere;
}

.work > div {
  background: rgba(0, 0, 0, 0.15);

  padding: 20px;

  margin-top: 20px;

  border-radius: 15px;
}

.work:hover {
  transform: translateY(-4px);

  box-shadow:
    0 10px 25px rgba(13, 153, 151, 0.35);
}


/* =========================================================
   FEATURED PROJECTS
========================================================= */

.featured-projects {
  background: #0d5557;

  border: 1px solid #0d6667;

  border-radius: 0 70px 0 70px;

  color: #fff;

  margin-top: 30px;

  padding: 30px 20px;

  text-align: center;

  transition: 0.3s ease;
}

.featured-projects h3 {
  color: #00aaff;
}

.featured-projects > div {
  padding: 20px;
  margin-bottom: 15px;
}

.featured-projects:hover {
  transform: translateY(-4px);

  box-shadow:
    0 10px 25px rgba(13, 153, 151, 0.35);
}


/* =========================================================
   SKILLS
========================================================= */

.skills {
  background: #0d4447;

  border: 1px solid #0d5557;

  border-radius: 60px;

  margin-top: 30px;

  padding: 30px 20px;

  font-size: 1.15rem;

  text-align: center;

  transition: 0.3s ease;
}

.skills ul {
  list-style: none;
}

.skills li {
  padding: 8px 0;
}

.skills:hover {
  transform: translateY(-4px);

  box-shadow:
    0 10px 25px rgba(13, 153, 151, 0.35);
}


/* =========================================================
   CTA / END SECTION
========================================================= */

.end {
  background: #0d6667;

  border: 1px solid #0d7777;

  border-radius: 100px 0 100px 100px;

  margin-top: 30px;

  padding: 30px 20px;

  font-size: 1.15rem;

  text-align: center;

  transition: 0.3s ease;
}

.end:hover {
  transform: translateY(-4px);

  box-shadow:
    0 10px 25px rgba(13, 153, 151, 0.35);
}


/* =========================================================
   ABOUT PAGE
========================================================= */

#ab {
  text-align: center;

  font-size: 1.1rem;

  color: #c9d1d9;

  background: #111111;

  padding: 40px 20px;

  border-radius: 15px;

  overflow-wrap: anywhere;

  animation: aboutGlow 5s ease-in-out infinite;
}

@keyframes aboutGlow {
  0% {
    box-shadow: 0 0 10px rgba(88, 166, 255, 0.15);
  }

  50% {
    box-shadow: 0 0 30px rgba(88, 166, 255, 0.5);
  }

  100% {
    box-shadow: 0 0 10px rgba(88, 166, 255, 0.15);
  }
}


/* =========================================================
   PROJECTS
========================================================= */

.project {
  margin-bottom: 2rem;

  border: 2px solid #222;

  padding: 20px;

  background: #0f0f0f;

  border-radius: 12px;

  animation: cardGlow 4s ease-in-out infinite;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;

  overflow: hidden;
}

.project:hover {
  transform: translateY(-8px) scale(1.01);

  box-shadow:
    0 10px 25px rgba(0, 128, 255, 0.4);
}

.project h3 {
  color: #e6edf3;
  margin-bottom: 10px;
}

.project a {
  display: inline-block;

  margin: 10px 0;

  color: #58a6ff;

  text-decoration: none;

  font-weight: bold;

  overflow-wrap: anywhere;
}

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

.project img {
  display: block;

  width: 100%;
  max-width: 400px;

  height: auto;

  margin: 15px auto;

  border-radius: 8px;

  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.3);

  transition: transform 0.3s ease;
}

.project img:hover {
  transform: scale(1.03);
}

@keyframes cardGlow {
  0% {
    box-shadow: 0 0 10px rgba(0, 128, 255, 0.2);
  }

  50% {
    box-shadow: 0 0 25px rgba(0, 128, 255, 0.6);
  }

  100% {
    box-shadow: 0 0 10px rgba(0, 128, 255, 0.2);
  }
}


/* =========================================================
   EDUCATION
========================================================= */

#education {
  background: #111111;

  border-left: 5px solid #58a6ff;

  padding: 25px;

  border-radius: 8px;

  color: #c9d1d9;

  overflow-wrap: anywhere;

  animation: eduGlow 4s ease-in-out infinite;
}

#education ul {
  margin-top: 10px;

  padding-left: 20px;
}

#education li {
  margin-bottom: 12px;
}

@keyframes eduGlow {
  0% {
    box-shadow: 0 0 10px rgba(88, 166, 255, 0.2);
    border-left-color: #58a6ff;
  }

  50% {
    box-shadow: 0 0 25px rgba(88, 166, 255, 0.6);
    border-left-color: #8e44ad;
  }

  100% {
    box-shadow: 0 0 10px rgba(88, 166, 255, 0.2);
    border-left-color: #58a6ff;
  }
}


/* =========================================================
   CONTACT
========================================================= */

#contact {
  text-align: center;

  background: #0b0b0b;

  padding: 40px 20px;

  border-radius: 10px;

  color: #ddd;

  overflow-wrap: anywhere;

  animation: contactPulse 4s infinite;
}

#contact a {
  color: #58a6ff;

  text-decoration: none;

  overflow-wrap: anywhere;

  word-break: break-word;
}

#contact a:hover {
  text-decoration: underline;
}

#contact p {
  margin: 12px 0;

  font-size: 1.05rem;
}

#contact img {
  width: 25px;
  height: 25px;

  vertical-align: middle;

  object-fit: cover;

  margin-right: 5px;
}

@keyframes contactPulse {
  0% {
    box-shadow: 0 0 10px rgba(0, 255, 180, 0.2);
  }

  50% {
    box-shadow: 0 0 25px rgba(0, 255, 180, 0.6);
  }

  100% {
    box-shadow: 0 0 10px rgba(0, 255, 180, 0.2);
  }
}


/* =========================================================
   BUSINESS FORM
========================================================= */

form {
  width: min(100% - 30px, 650px);

  margin: 30px auto;

  padding: 25px;

  background: #0d1529;

  border: 1px solid #30363d;

  border-radius: 15px;

  box-shadow:
    0 5px 20px rgba(0, 114, 255, 0.35);

  text-align: left;

  font-size: 1rem;
}

form label {
  display: block;

  margin: 15px 0 6px;

  color: #e6edf3;

  font-size: 1rem;

  font-weight: 600;
}

form input,
form textarea,
form select {
  width: 100%;

  display: block;

  padding: 13px 15px;

  border: 1px solid #30363d;

  border-radius: 8px;

  background: #161b22;

  color: #e6edf3;

  font-size: 1rem;

  font-family: inherit;

  outline: none;

  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

form input::placeholder,
form textarea::placeholder {
  color: #8b949e;
}

form input:focus,
form textarea:focus,
form select:focus {
  border-color: #58a6ff;

  box-shadow:
    0 0 0 3px rgba(88, 166, 255, 0.15);
}

form textarea {
  min-height: 150px;

  resize: vertical;
}

form button,
form input[type="submit"] {
  width: 100%;

  margin-top: 20px;

  padding: 13px 20px;

  background: linear-gradient(
    135deg,
    #00c6ff,
    #0072ff
  );

  color: #fff;

  border: none;

  border-radius: 50px;

  font-size: 1rem;

  font-weight: 600;

  cursor: pointer;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

form button:hover,
form input[type="submit"]:hover {
  transform: translateY(-3px);

  box-shadow:
    0 8px 20px rgba(0, 114, 255, 0.4);
}

form button:active,
form input[type="submit"]:active {
  transform: translateY(0);
}


/* =========================================================
   BUTTONS
========================================================= */

.hero-buttons {
  display: flex;

  justify-content: center;
  align-items: center;

  gap: 15px;

  flex-wrap: wrap;

  margin-top: 20px;
}

.btn {
  display: inline-block;

  padding: 13px 26px;

  border-radius: 50px;

  text-decoration: none;

  font-size: 1rem;

  font-weight: 600;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    #00c6ff,
    #0072ff
  );

  color: #fff;

  box-shadow:
    0 4px 15px rgba(0, 114, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);

  box-shadow:
    0 8px 20px rgba(0, 114, 255, 0.5);
}

.btn-secondary {
  background: transparent;

  color: #fff;

  border: 2px solid #00c6ff;
}

.btn-secondary:hover {
  background: #00c6ff;

  color: #0f172a;

  transform: translateY(-3px);

  box-shadow:
    0 8px 20px rgba(0, 198, 255, 0.3);
}


/* =========================================================
   CTA
========================================================= */

.cta {
  display: inline-block;

  margin-top: 20px;

  padding: 12px 25px;

  background-color: #238636;

  color: white;

  border: none;

  border-radius: 25px;

  font-size: 1.1rem;

  font-weight: bold;

  cursor: pointer;

  transition: 0.3s;
}

.cta:hover {
  background-color: #2ea043;
}


/* =========================================================
   REVEAL ANIMATION
========================================================= */

.reveal {
  opacity: 0;

  transform: translateY(30px);

  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.show {
  opacity: 1;

  transform: translateY(0);
}


/* =========================================================
   FOOTER
========================================================= */

footer {
  background-color: #0d1227;

  color: #ffa;

  text-align: center;

  padding: 25px 15px;

  margin-top: 40px;

  box-shadow:
    0 5px 20px rgba(0, 114, 255, 0.35);
}

footer p {
  margin-bottom: 10px;
}

footer a {
  color: #58a6ff;

  font-size: 1rem;

  font-weight: 600;

  text-decoration: underline;

  overflow-wrap: anywhere;
}

footer a:hover {
  color: #00c6ff;
}

footer .logo {
  width: 20px;
  height: 20px;

  object-fit: cover;

  vertical-align: middle;

  margin-right: 4px;
}


/* =========================================================
   TABLET — 768px
========================================================= */

@media (max-width: 768px) {

  section {
    width: min(100% - 20px, 700px);

    padding: 40px 15px;
  }

  .hero {
    padding: 50px 15px;
  }

  .hero-content {
    flex-direction: column;

    text-align: center;

    gap: 20px;
  }

  .hero-image {
    width: 140px;
    height: 140px;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .navbar ul {
    gap: 12px 18px;

    padding: 12px 10px;
  }

  .navbar ul li a {
    font-size: 0.95rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .about-1,
  .work,
  .skills,
  .end {
    font-size: 1.05rem;
  }

  .featured-projects {
    border-radius: 0 50px 0 50px;
  }

  .skills {
    border-radius: 40px;
  }

  .end {
    border-radius: 70px 0 70px 70px;
  }

  .project {
    padding: 18px;
  }

  form {
    width: min(100% - 20px, 650px);
  }
}


/* =========================================================
   MOBILE — 480px
========================================================= */

@media (max-width: 480px) {

  body {
    font-size: 15px;
  }

  section {
    width: calc(100% - 20px);

    padding: 30px 10px;
  }


  /* HERO */

  .hero {
    padding: 40px 15px;
  }

  .hero-image {
    width: 120px;
    height: 120px;
  }

  .hero-text h1 {
    font-size: 1.8rem;

    line-height: 1.2;

    padding-bottom: 6px;

    border-bottom-width: 2px;
  }

  .subtitle {
    font-size: 0.95rem;

    line-height: 1.6;
  }


  /* NAVIGATION */

  .navbar ul {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 6px;

    padding: 8px;
  }

  .navbar ul li {
    min-width: 0;

    text-align: center;
  }

  .navbar ul li a {
    display: block;

    padding: 8px 4px;

    font-size: 0.85rem;

    border-radius: 6px;
  }

  .navbar ul li a:active {
    background: rgba(88, 166, 255, 0.15);
  }


  /* HEADINGS */

  h2 {
    font-size: 1.55rem;

    margin-bottom: 18px;
  }

  h3 {
    font-size: 1.2rem;
  }


  /* HOME SECTIONS */

  .about-1,
  .work,
  .skills,
  .end {
    margin-top: 20px;

    font-size: 1rem;

    border-radius: 20px;

    padding: 25px 15px;
  }

  .featured-projects {
    margin-top: 20px;

    padding: 25px 15px;

    border-radius: 20px;
  }

  .work > div,
  .featured-projects > div {
    padding: 15px;

    margin-top: 15px;
  }


  /* PROJECTS */

  .project {
    padding: 15px;

    margin-bottom: 20px;

    border-radius: 10px;
  }

  .project h3 {
    font-size: 1.15rem;
  }

  .project p {
    font-size: 0.95rem;
  }

  .project img {
    width: 100%;

    margin: 12px auto;
  }


  /* ABOUT */

  #ab {
    padding: 30px 15px;

    font-size: 1rem;

    border-radius: 12px;
  }


  /* EDUCATION */

  #education {
    padding: 20px;

    border-left-width: 4px;

    font-size: 0.95rem;
  }

  #education ul {
    padding-left: 18px;
  }


  /* CONTACT */

  #contact {
    padding: 30px 15px;
  }

  #contact p {
    font-size: 0.95rem;

    overflow-wrap: anywhere;
  }

  #contact img {
    width: 22px;
    height: 22px;
  }


  /* FORM */

  form {
    width: calc(100% - 10px);

    margin: 20px auto;

    padding: 18px 15px;

    border-radius: 12px;
  }

  form label {
    font-size: 0.95rem;

    margin-top: 13px;
  }

  form input,
  form textarea,
  form select {
    width: 100%;

    font-size: 16px;

    padding: 12px;
  }

  form textarea {
    min-height: 130px;
  }

  form button,
  form input[type="submit"] {
    width: 100%;

    padding: 13px 15px;

    font-size: 1rem;
  }


  /* BUTTONS */

  .hero-buttons {
    flex-direction: column;

    width: 100%;

    gap: 10px;
  }

  .hero-buttons .btn {
    width: 100%;

    max-width: 280px;

    text-align: center;
  }

  .btn {
    padding: 12px 20px;

    font-size: 0.95rem;
  }


  /* CTA */

  .cta {
    width: 100%;

    max-width: 280px;

    padding: 12px 20px;
  }


  /* FOOTER */

  footer {
    padding: 25px 12px;

    font-size: 0.9rem;
  }

  footer p {
    overflow-wrap: anywhere;
  }

  footer a {
    word-break: break-word;
  }
}


/* =========================================================
   VERY SMALL PHONES — 360px
========================================================= */

@media (max-width: 360px) {

  .hero-text h1 {
    font-size: 1.55rem;
  }

  .hero-image {
    width: 105px;
    height: 105px;
  }

  .navbar ul {
    grid-template-columns: 1fr;
  }

  h2 {
    font-size: 1.4rem;
  }

  .about-1,
  .work,
  .skills,
  .featured-projects,
  .end {
    padding: 22px 12px;

    font-size: 0.95rem;
  }

  form {
    width: 100%;

    padding: 15px 12px;
  }

  .hero-buttons .btn {
    max-width: 100%;
  }
}


/* =========================================================
   TOUCH DEVICES
========================================================= */

@media (hover: none) {

  .about-1:hover,
  .work:hover,
  .skills:hover,
  .featured-projects:hover,
  .end:hover,
  .project:hover {
    transform: none;
  }

  .hero-image:hover,
  .project img:hover {
    transform: none;
  }
}


/* =========================================================
   REDUCE ANIMATIONS
========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;

    scroll-behavior: auto !important;
  }
}