/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
  color: white;
  scroll-behavior: smooth;
  background: #0f0f0f;
}

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

/* GLOBAL */
a {
  text-decoration: none;
  color: white;
}

#app {
  width: 100%;
  height: 100%;
}

/* CANVAS BACKGROUND */
#canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.content {
  position: relative;
  z-index: 1;
}

/* NAVBAR */
nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 20px 10%;
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  z-index: 1000;
}

.nav-menu {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-btn {
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
}

.nav-btn a {
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 14px;
  letter-spacing: 1px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  transition: 0.3s;
}

.nav-btn a:hover {
  letter-spacing: 2px;
  box-shadow: 0 0 15px #C68642;
}

.hamburger {
  position: relative;
  width: 45px;
  height: 45px;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 10px rgba(255,255,255,0.1);
  transition: 0.3s;
}

.hamburger:hover {
  box-shadow: 0 0 20px rgba(78, 52, 46, 0.6);
}

.bar {
  position: absolute;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 5px;
  transition: all 0.4s ease;
}

/* Positioning */
.top { transform: translateY(-6px); }
.middle { opacity: 1; }
.bottom { transform: translateY(6px); }

/* ACTIVE (Morph into X) */
.hamburger.active .top {
  transform: rotate(45deg);
}

.hamburger.active .middle {
  opacity: 0;
}

.hamburger.active .bottom {
  transform: rotate(-45deg);
}


/* LOGO */
.logo {
  position: relative;
  font-size: 24px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.logo:hover {
  transform: scale(1.08);
  color: #f5deb3;
}

.logo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 5px;
  border-radius: 5px;
  background: #4e342e;
  transition: width 0.3s ease;
}

.logo:hover::after {
  width: 100%;
}

/* SECTIONS */
section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  text-align: center;
  padding: 40px;
}

/* HERO */
.hero h1 {
  font-size: clamp(40px, 6vw, 70px);
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.hero h2 {
  font-size: 28px;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

#typewriter {
  font-family: "Courier New", monospace;
  font-size: 18px;
  letter-spacing: 1px;
  color: #f5deb3;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(198,134,66,0.6);
}

/* HERO-BUTTON */

.hero-buttons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.btn {
  position: relative;
  padding: 14px 34px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;

  color: #fff;
  text-decoration: none;

  border-radius: 999px;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);

  border: 1px solid rgba(255,255,255,0.12);

  transition: all 0.25s ease;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.35),
    transparent
  );

  transform: skewX(-20deg);
}

.btn::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;

  background: radial-gradient(
    circle at center,
    rgba(255,255,255,0.12),
    transparent 70%
  );

  opacity: 0;
  z-index: -1;

  transition: 0.3s;
}

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

  border: 1px solid rgba(255,255,255,0.25);

  box-shadow:
    0 15px 40px rgba(0,0,0,0.7);
}

.btn:hover::before {
  animation: sweep 0.8s ease;
}

.btn:hover::after {
  opacity: 1;
}

.btn:active {
  transform: scale(0.96);
}

/* ABOUT */
.about h2 {
  font-size: 25px;
  letter-spacing: 3px;
}

.about p {
  max-width: 700px;
  line-height: 1.6;
}

/* SKILLS */
.skills-container {
  margin-top: 100px; 
  max-width: 700px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center; 
}

.skills-title {
  margin-bottom: 40px; 
  font-size: 22px;
  text-align: center;
}

.skill-group {
  margin-top: 50px;
  text-align: center;
  width: 100%;
}

.skill-group h4 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #ddd;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center; 
}

/* SKILL CARDS */
.skill-tags span {
  padding: 10px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  transition: 0.3s;
  max-width: 280px;
  text-align: center;
}

.skill-tags span:hover {
  transform: translateY(-3px);
  background: #4E342E;
  box-shadow: 0 0 15px #4E342E;
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  width: 80%;
  margin-top: 40px;
}

.card {
  padding: 25px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  transition: 0.3s;
}

.card p {
  margin-top: 15px;
  font-size: 14px;
}

.card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 0 25px rgba(78, 52, 46, 0.7);
}

.card:hover h3 {
  color: #f5deb3;
}

#contact{
    min-height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    gap:20px;
    padding:40px;
}

#contact h2{
    font-size:25px;
    margin-bottom:10px;
    letter-spacing: 3px;
}

.contact-text{
    max-width:600px;
    line-height:1.2;
    letter-spacing: 1px;
}

.contact-3d{
    display:flex;
    gap:40px;
    margin-top:40px;
}

.contact-3d li{
    list-style:none;
}

.contact-3d li a{
    position:relative;
    display:block;
    width:70px;
    height:70px;
    background:rgba(255,255,255,0.05);
    backdrop-filter:blur(10px);
    text-align:center;
    transform:perspective(300px) rotate(-25deg) skew(20deg);
    transition:0.5s;
    box-shadow:-15px 15px 20px rgba(0,0,0,0.6);
}

.contact-3d li a i{
    font-size:28px;
    color:#ccc;
    line-height:70px;
    transition:0.5s;
}

.contact-3d li a::before{
    content:"";
    position:absolute;
    top:8px;
    left:-15px;
    width:15px;
    height:100%;
    background:rgba(255,255,255,0.1);
    transform:skewY(-45deg);
    transition:0.5s;
}

.contact-3d li a::after{
    content:"";
    position:absolute;
    bottom:-15px;
    left:-8px;
    width:100%;
    height:15px;
    background:rgba(255,255,255,0.1);
    transform:skewX(-45deg);
    transition:0.5s;
}

.contact-3d li a:hover{
    transform:perspective(300px) rotate(-25deg) skew(20deg) translate(15px,-15px);
    box-shadow:-40px 40px 40px rgba(0,0,0,0.8);
}

.contact-3d li:hover i{
    color:#fff;
}

.contact-3d{
    display:flex;
    gap:100px;
    margin-top:40px;
}

.contact-3d li{
    list-style:none;
}

.contact-3d li a{
    position:relative;
    display:block;
    width:70px;
    height:70px;
    background:rgba(255,255,255,0.05);
    backdrop-filter:blur(10px);
    text-align:center;
    transform:perspective(300px) rotate(-25deg) skew(20deg);
    transition:0.5s;
    box-shadow:-15px 15px 20px rgba(0,0,0,0.6);
}

.contact-3d li a i{
    font-size:28px;
    color:#ccc;
    line-height:70px;
    transition:0.5s;
}

.contact-3d li a::before{
    content:"";
    position:absolute;
    top:8px;
    left:-15px;
    width:15px;
    height:100%;
    background:rgba(255,255,255,0.1);
    transform:skewY(-45deg);
    transition:0.5s;
}

.contact-3d li a::after{
    content:"";
    position:absolute;
    bottom:-15px;
    left:-8px;
    width:100%;
    height:15px;
    background:rgba(255,255,255,0.1);
    transform:skewX(-45deg);
    transition:0.5s;
}

.contact-3d li a:hover{
    transform:perspective(300px) rotate(-25deg) skew(20deg) translate(15px,-15px);
    box-shadow:-40px 40px 40px rgba(0,0,0,0.8);
}

.contact-3d li:hover i{
    color:#fff;
}

.contact-3d li:nth-child(1):hover a{
    background:#EA4335;
}
.contact-3d li:nth-child(1):hover a::before{
    background:#C23321;
}
.contact-3d li:nth-child(1):hover a::after{
    background:#A82A1C;
}

.contact-3d li:nth-child(2):hover a{
    background:#181717;
}
.contact-3d li:nth-child(2):hover a::before{
    background:#0f0f0f;
}
.contact-3d li:nth-child(2):hover a::after{
    background:#000000;
}

.contact-3d li:nth-child(3):hover a{
    background:#0A66C2;
}
.contact-3d li:nth-child(3):hover a::before{
    background:#084d94;
}
.contact-3d li:nth-child(3):hover a::after{
    background:#063b73;
}

.contact-3d li a i{
    color:#bbb;
}

.contact-3d li:hover i{
    color:#fff;
}

.contact-3d li:nth-child(1):hover a{
    box-shadow:
        -40px 40px 40px rgba(0,0,0,0.8),
        0 0 20px rgba(234,67,53,0.5);
}

.contact-3d li:nth-child(2):hover a{
    box-shadow:
        -40px 40px 40px rgba(0,0,0,0.8),
        0 0 20px rgba(255,255,255,0.2);
}

.contact-3d li:nth-child(3):hover a{
    box-shadow:
        -40px 40px 40px rgba(0,0,0,0.8),
        0 0 20px rgba(10,102,194,0.5);
}
/* HOVER COLORS */
.contact-3d li:nth-child(1):hover a {
  background: #EA4335;
}

.contact-3d li:nth-child(2):hover a {
  background: #181717;
}

.contact-3d li:nth-child(3):hover a {
  background: #0A66C2;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  background: #f5deb3;
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: #4E342E;
  border-radius: 10px;
}

.hero {
  animation: fadeIn 1.5s ease;
}

.section-hidden {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-show {
  opacity: 1;
  transform: translateY(0);
}

/* Cursor */
.cursor {
  margin-left: 5px;
  animation: blink 1s infinite;
  color: #f5deb3;
}

/* Blink animation */
@keyframes blink {
  50% { opacity: 0; }
}

/* Hero Button Sweep animation */
@keyframes sweep {
  0% {
    left: -120%;
  }
  100% {
    left: 140%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile screen */

@media (max-width: 600px) {

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 80px;
    right: 20px;
    flex-direction: column;
    gap: 15px;

    padding: 20px;
    border-radius: 15px;

    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);

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

    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: 0.4s;
  }

  .nav-menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero h2 {
    font-size: 20px;
  }

  section {
    padding: 20px;
  }

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

  .skills-container {
    width: 100%;
  }

  .contact-3d {
    flex-direction: column;
    gap: 30px;
  }

  .contact-3d a {
    transform: none;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
  }

}

/* Tablet Screen */

@media (max-width: 900px) {

  nav {
    padding: 20px 5%;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    width: 90%;
  }

  .hero h1 {
    font-size: 50px;
  }

  .hero h2 {
    font-size: 24px;
  }

  .contact-3d {
    gap: 40px;
  }

}

/* Other small screens */

@media (max-width: 1200px) {

  .projects-grid {
    width: 90%;
  }

}
