/* --------------------------------------------------
   1) RESET + BASE SETUP
-------------------------------------------------- */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--main-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.line {
  width: 100%;
  height: 1px;
  background: linear-gradient(to left, #38b6ff, #00c9a7, #e57f60);
}

/* --------------------------------------------------
   2) VARIABLES
-------------------------------------------------- */

:root {
  --main-color: #38b6ff;
  --accent-color: #00c9a7;
  --secondary-color: #3c78f7;
  --warm-color: #e57f60;

  --bg-dark: #0f0f0f;
  --bg-section: linear-gradient(to left, #1a1a1a, #191919, #151515);
  --three-color: linear-gradient(to left, #38b6ff, #00c9a7, #e57f60);
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-strong: 0 8px 30px rgba(0, 0, 0, 0.45);

  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s ease;
  --transition-slow: 0.6s ease;

  --padding-section: 80px 0;
  --container-padding: 15px;
  --container-max: 1170px;
}

/* --------------------------------------------------
   3) GLOBAL CONTAINER
-------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

@media (max-width: 1199px) {
  :root {
    --container-max: 970px;
  }
}
@media (max-width: 991px) {
  :root {
    --container-max: 750px;
  }
}
@media (max-width: 767px) {
  :root {
    --container-max: 100%;
  }
}

/* --------------------------------------------------
   4) GLOBAL ANIMATIONS UTILITIES
-------------------------------------------------- */

.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.8s ease forwards;
}
.fade-up {
  opacity: 0;
  transform: translateY(25px);
  animation: fadeUp 1s ease forwards;
}
.slide-down {
  opacity: 0;
  transform: translateY(-20px);
  animation: slideDown 0.9s ease forwards;
}
.slide-left {
  opacity: 0;
  transform: translateX(-25px);
  animation: slideLeft 0.9s ease forwards;
}
.slide-right {
  opacity: 0;
  transform: translateX(25px);
  animation: slideRight 0.9s ease forwards;
}
.scale-in {
  opacity: 0;
  transform: scale(0.85);
  animation: scaleIn 0.8s ease forwards;
}
.float-up {
  opacity: 0;
  transform: translateY(40px);
  animation: floatUp 1.2s ease forwards;
}
.stagger-card {
  opacity: 0;
  transform: translateY(30px);
  animation: staggerCard 1s ease forwards;
}
.parallax {
  transform: translateY(0);
  animation: parallaxMove 6s ease-in-out infinite alternate;
}

/* --------------------------------------------------
   5) HOLOGRAPHIC CARD EFFECT
-------------------------------------------------- */

.holographic-card {
  background: #111;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}
.holographic-card h3 {
  color: #0ff;
  position: relative;
  z-index: 2;
}
.holographic-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(0deg, #00c9a7, #e57f60, #3c78f7);
  transform: rotate(-45deg);
  transition: all 0.5s ease;
  opacity: 0;
}
.holographic-card:hover {
  box-shadow: 0 0 3px var(--main-color);
}
.holographic-card:hover::before {
  opacity: 1;
  transform: rotate(-45deg) translateY(100%);
}

/* --------------------------------------------------
   6) HEADER
-------------------------------------------------- */

.header {
  padding: 18px 0;
  background: var(--bg-section);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header .logo {
  position: relative;
  font-weight: 800;
  font-size: 25px;
  background: linear-gradient(
    150deg,
    var(--accent-color),
    var(--secondary-color),
    var(--warm-color)
  );
  background-size: 300% 100%;
  animation: headWave 2.3s linear infinite alternate;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.header .logo::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 75%;
  background: linear-gradient(45deg, var(--warm-color), var(--secondary-color));
}

.header .toggle-menu {
  display: none;
}

.header .links {
  position: relative;
}

.header ul {
  display: flex;
  gap: 30px;
}

.header ul {
  color: var(--main-color);
}

.header .toggle-menu span {
  width: 100%;
  height: 2px;
  background-color: var(--main-color);
}

.header .toggle-menu span:nth-child(2) {
  width: 60%;
  transition: var(--transition-normal);
}

.header .links:hover .toggle-menu span:nth-child(2) {
  width: 100%;
}

.header a {
  border-radius: 10px;
  font-weight: 600;
  color: var(--main-color);
  transition: var(--transition-normal);
}

/* Mobile Nav */
@media (max-width: 767px) {
  .header .toggle-menu {
    width: 30px;
    height: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
  }
  .header .links:hover nav ul {
    display: flex;
  }
  .header ul {
    flex-direction: column;
    gap: 18px;
    position: absolute;
    right: 0;
    top: calc(100% + 15px);
    min-width: 200px;
    background-color: var(--bg-dark);
    gap: 0;
    z-index: 1;
  }
  .header ul {
    display: none;
  }
  .header ul::before {
    content: "";
    position: absolute;
    top: -29px;
    right: 0px;
    border-width: 15px;
    border-style: solid;
    border-color: transparent transparent var(--bg-dark) transparent;
  }
  .header li:not(:last-child) {
    border: none;
    padding-bottom: 1px;
    background-image: linear-gradient(to left, #38b6ff, #e57f60);
    background-repeat: no-repeat;
    background-size: 100% 1px;
    background-position: 0 100%;
  }
  .header a {
    display: block;
    padding: 15px;
  }
  .header a:hover {
    padding-left: 30px;
  }
}

/* DeskTob Animation */
@media (min-width: 768px) {
  .header .links ul li {
    transition: var(--transition-slow);
  }

  .header .links ul li:hover {
    transform: scale(1.3);
  }
  .header ul a:hover {
    background: linear-gradient(
      150deg,
      var(--accent-color),
      var(--secondary-color),
      var(--warm-color)
    );
    background-size: 300% 100%;
    animation: headWave 2.3s linear infinite alternate;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

/* --------------------------------------------------
   7) LANDING SECTION
-------------------------------------------------- */

.landing {
  background: var(--bg-section);
  padding: var(--padding-section);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.landing .container {
  display: grid;
  gap: 40px;
  justify-items: center;
}

@media (min-width: 768px) {
  .landing .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.landing .text-info {
  max-width: 450px;
}

.landing .text-info h2 {
  font-size: 42px;
  margin-bottom: 15px;
}

.landing .text-info p {
  color: #cfcfcf;
  margin: 12px 0;
  font-size: 15px;
}

.landing .links ul {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 15px;
  margin-top: 25px;
}

.landing .links ul li {
  transition: var(--transition-slow);
}

.landing .links ul li:hover {
  transform: scale(1.1);
}

.landing .links ul li a {
  position: relative;
}

.landing .links ul li a:hover {
  background: linear-gradient(
    150deg,
    var(--accent-color),
    var(--secondary-color),
    var(--warm-color)
  );
  background-size: 300% 100%;
  animation: headWave 2.3s linear infinite alternate;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.landing .links ul li a::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 1px;
  background: linear-gradient(to left, var(--main-color), var(--warm-color));
}

.landing .image {
  position: relative;
  max-width: 420px;
  margin: auto;
}

.landing .image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-strong);
  animation: floatImage 15s ease-in-out infinite;
}

.landing .image::before,
.landing .image::after {
  content: "";
  position: absolute;
  width: calc(100% - 30px);
  height: 55px;
  background: linear-gradient(
    150deg,
    var(--accent-color),
    var(--main-color),
    var(--warm-color)
  );
  background-size: 300% 100%;
  animation: borderWave 4s linear infinite alternate;
  z-index: -1;
  border-radius: 8px;
}

.landing .image::before {
  bottom: -15px;
  left: 15px;
  transform: rotate(-4deg);
}

.landing .image::after {
  top: -18px;
  left: 15px;
  transform: rotate(-3deg);
}

.wave-text {
  font-weight: 900;
  text-transform: uppercase;
  background: linear-gradient(
    150deg,
    var(--accent-color),
    var(--secondary-color),
    var(--warm-color)
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleWave 3s linear infinite alternate;
}

/* --------------------------------------------------
   8) PROJECTS SECTION
-------------------------------------------------- */

.project {
  background: var(--bg-section);
  padding: var(--padding-section);
}

.project .description {
  max-width: 500px;
  margin: 0 auto 50px;
  text-align: center;
}

.project .container {
  display: grid;
  gap: 35px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-template-columns: repeat(2, 1fr);
}

.project p {
  color: #cfcfcf;
}

.project .col {
  background: #111;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-normal);
}

.project .col:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.project .col img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.project .col:hover img {
  transform: scale(1.08) rotate(1deg);
}

.project .text-info {
  padding: 20px;
  text-align: center;
}

.project .text-info h4 {
  color: #eaeaea;
  font-size: 20px;
  margin-bottom: 10px;
}

.project .text-info p {
  background: linear-gradient(
    45deg,
    var(--accent-color),
    var(--secondary-color)
  );
  padding: 6px 10px;
  border-radius: 6px;
  color: #111;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 15px;
}

.project .text-info a {
  color: var(--main-color);
  font-weight: 800;
  position: relative;
  transition: var(--transition-fast);
  background: linear-gradient(
    150deg,
    var(--accent-color),
    var(--secondary-color),
    var(--warm-color)
  );
  background-size: 300% 100%;
  animation: headWave 2.3s linear infinite alternate;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.project a:hover {
  color: var(--secondary-color);
}

/* --------------------------------------------------
   9) SKILLS SECTION
-------------------------------------------------- */

.skill {
  background: var(--bg-section);
  padding: var(--padding-section);
}

.skill .description {
  text-align: center;
  max-width: 500px;
  margin: 0 auto 50px;
  padding: 0 10px;
}

.skill p {
  color: #cfcfcf;
}

.skill .parent {
  margin-bottom: 40px;
}

.skill .skill-label {
  font-weight: bold;
  margin-bottom: 6px;
  color: #cfcfcf;
}

.progress-bar {
  width: 100%;
  height: 5px;
  background: #eee;
  border-radius: 6px;
  position: relative;
  overflow: visible;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #33ecfd, #38b6ff, #e57f60);
  transition: width 2s ease;
}

.percent-number {
  position: absolute;
  right: 0;
  top: -30px;
  font-weight: bold;
  color: #cfcfcf;
  font-size: 14px;
  pointer-events: none;
  z-index: 10;
}

/* --------------------------------------------------
   10) CONTACT SECTION
-------------------------------------------------- */

.contact {
  padding: var(--padding-section);
  background: var(--bg-section);
}

.contact .description {
  text-align: center;
  max-width: 500px;
  margin: 0 auto 50px;
  padding: 0 10px;
}

.contact p {
  color: #cfcfcf;
  font-size: 15px;
}

.contact {
  background: var(--bg-section);
  padding: 90px 0;
  display: grid;
  place-items: center;
}

.contact .container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.contact i {
  margin-bottom: 15px;
}

.contact .container a:hover {
  color: var(--main-color);
  position: relative;
  transition: var(--transition-fast);
  background: linear-gradient(150deg, var(--accent-color), var(--warm-color));
  background-size: 300% 100%;
  animation: headWave 2.3s linear infinite alternate;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 0;
}

.contact .cta {
  padding: 10px 20px;
  border-radius: 25px;
  border: 1px solid var(--main-color);
  color: #cfcfcf;
  background-color: #191919;
}

/* --------------------------------------------------
   11) FOOTER SECTION
-------------------------------------------------- */

.footer {
  background: #111;
  padding: 30px 0;
  box-shadow: 0 -5px 15px var(--main-color);
}

.footer-container {
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  padding: 0;
  margin-bottom: 15px;
}

.footer-links a {
  color: #cfcfcf;
  font-size: 14px;
  transition: 0.3s;
}

.footer-links a:hover {
  color: var(--main-color);
}

.footer p {
  color: #777;
  font-size: 13px;
}

/* --------------------------------------------------
   12) KEYFRAMES
-------------------------------------------------- */

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes staggerCard {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes parallaxMove {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-12px);
  }
}

@keyframes floatImage {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes borderWave {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes titleWave {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes headWave {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* --------------------------------------------------
   13) RESPONSIVE
-------------------------------------------------- */

@media (max-width: 767px) {
  section {
    padding: 60px 0;
  }

  .landing {
    text-align: center;
  }

  .landing .container {
    grid-template-columns: 1fr;
    gap: 50px;
    place-items: center;
  }

  .landing .text-info h2 {
    font-size: 30px;
  }

  .landing .links ul {
    flex-direction: row;
    justify-content: center;
  }

  .landing .image {
    max-width: 300px;
  }

  .project .container {
    grid-template-columns: 1fr;
  }

  .project .col img {
    height: 180px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .landing .container {
    grid-template-columns: repeat(2, 1fr);
  }
  .project .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .project .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .project .container {
    grid-template-columns: repeat(3, 1fr);
  }
}
