@import url("https://fonts.googleapis.com/css2?family=Iceberg&family=Tektur:wght@400;500;600;700&display=swap");

@property --hue { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --rotate { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --bg-y { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --bg-x { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --glow-translate-y { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --bg-size { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --glow-opacity { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --glow-blur { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --glow-scale { syntax: "<number>"; inherits: true; initial-value: 2; }
@property --glow-radius { syntax: "<number>"; inherits: true; initial-value: 2; }
@property --white-shadow { syntax: "<number>"; inherits: true; initial-value: 0; }

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  font-family: 'Tektur', sans-serif;
  font-size: 12px;
  box-sizing: border-box;
  scroll-behavior: smooth;
  color: #e7e7e7;
  background: #000000;
}

a {
  text-decoration: none;
  color: rgb(3, 155, 155);
}

a:hover {
  color: #EF1A2D;
}

ul {
  list-style: none;
}

p {
  font-size: 1.4rem;
}

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

/* --- Watermark Heading Effect --- */
.section-title {
  font-family: 'Iceberg', display;
  position: relative;
  color: #EF1A2D !important; 
  z-index: 1;
  text-align: center; 
  letter-spacing: 2px;
}

.section-title::before {
  content: attr(data-heading);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(3.5rem, 8vw, 8rem);
  color: rgba(255, 255, 255, 0.04);
  z-index: -1;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5rem;
  pointer-events: none;
}

/* --- Unified Sticky Pill Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, calc(100vh - 100% - 2rem));
  z-index: 1000;
  width: max-content;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

header.scrolled {
  transform: translate(-50%, 2rem);
}

.pill-nav {
  background: rgba(0, 0, 0, 0.4); 
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08); 
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border-radius: 50px;
  display: flex;
  align-items: center;
  padding: 0.5rem;
  gap: 0.5rem;
}

.pill-nav .nav-link {
  color: #e7e7e7;
  font-size: 1.5rem;
  font-weight: 500;
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  text-transform: capitalize; 
  letter-spacing: normal;
  opacity: 1; 
  transition: all 0.3s ease;
}

.pill-nav .nav-link:hover,
.pill-nav .nav-link.active {
  background-color: #EF1A2D;
  color: #ffffff;
}

header.scrolled .pill-nav .nav-link {
  font-size: 1.3rem;
  padding: 0.8rem 1.8rem;
}

@keyframes navLinkAnimate {
  from {
    opacity: 0;
    transform: translate(50px);
  }
  to {
    opacity: 1;
    transform: translate(0px);
  }
}

.landing-page {
  width: 100%;
  height: 100vh;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 60%, #000000 100%), url("images/landing-page.png") center no-repeat;
  background-size: cover;
  background-position: center center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
}

.main-message {
  width: 100%;
  max-width: 58rem;
  text-transform: uppercase;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  margin-top: 50px;
}

.main-message h3 {
  font-family: 'Foldit', sans-serif;
  font-weight: 700;
  font-size: 6rem; 
  margin: 0 0 2rem 0;
}

.main-message p {
  text-transform: none;
  font-size: 1.7rem;
  font-weight: 400;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  display: inline-block;
  width: 100%;
  max-width: 20ch;
}

.main-message p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  border-right: 4px solid rgba(255, 255, 255, 1);
  animation: blink 1s step-end infinite;
}

@keyframes typing {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

@keyframes erase {
  0% {
    width: 100%;
  }
  100% {
    width: 0;
  }
}

@keyframes blink {
  0% {
    border-right-color: rgba(255, 255, 255, 1);
  }
  50% {
    border-right-color: transparent;
  }
  100% {
    border-right-color: rgba(255, 255, 255, 1);
  }
}

.loader {
  width: 60px;
  height: 60px;
  border: 5px solid transparent;
  border-top-color: rgba(249, 105, 14, 1);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: relative;
}

.typing-text {
  font-size: 2rem;
  font-weight: 400;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  display: inline-block;
  margin-top: 3rem; 
  min-height: 3rem;
}


.intro-btn {
  display: flex;
  justify-content: center;
}

.btn {
  margin: 0 9px;
  background: rgba(3, 155, 155);
  border-radius: 2rem;
  color: #fafafa;
  padding: 1rem 2.5rem;
  display: inline-block;
  margin-top: 2rem;
  transition: background-color 650ms;
  font-weight: 500;
  letter-spacing: 2px;
}

.btn:hover {
  color: #fafafa;
  background-color:#e51d1b;
}

.scroll-down i {
  color: #fafafa;
  transition: color 650ms;
  margin-top: 1rem;
  font-size: 3.5rem;
}

.scroll-down i:hover {
  color: rgb(209, 0, 0);
}

.view-more-container {
  display: flex;
  justify-content: center;
  margin: 5rem 0;
}

.animated-view-btn {
  position: relative;
  width: 60px;
  height: 60px;
  background: #111111;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  border-radius: 60px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
  text-decoration: none;
  border: 1px solid #222222;
}

.animated-view-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 60px;
  background: linear-gradient(45deg, var(--i), var(--j));
  opacity: 0;
  transition: 0.5s;
}

.animated-view-btn::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 100%;
  height: 100%;
  border-radius: 60px;
  background: linear-gradient(45deg, var(--i), var(--j));
  transition: 0.5s;
  filter: blur(15px);
  z-index: -1;
  opacity: 0;
}

.animated-view-btn:hover {
  width: 200px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0);
  border-color: transparent;
}

.animated-view-btn:hover::before {
  opacity: 1;
}

.animated-view-btn:hover::after {
  opacity: 0.5;
}

.animated-view-btn .icon {
  position: absolute;
  color: #e7e7e7;
  font-size: 2.2rem;
  transition: 0.5s;
  transition-delay: 0.25s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.animated-view-btn:hover .icon {
  transform: scale(0);
  color: #fff;
  transition-delay: 0s;
}

.animated-view-btn .title {
  position: absolute;
  color: #fff;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: scale(0);
  transition: 0.5s;
  transition-delay: 0s;
  font-weight: 600;
}

.animated-view-btn:hover .title {
  transform: scale(1);
  transition-delay: 0.25s;
}

.about {
  width: 100%;
  min-height: 100vh;
  max-width: 90rem;
  margin: auto;
}

.about .container {
  display: flex;
  align-items: center;
  min-height: 80vh;
}

/* --- Animated Glowing Profile Picture --- */
.animated-glow-container {
  --hue: 0;
  --hue-speed: 1;
  --rotate: 0;
  --animation-speed: 4s;
  --interaction-speed: 0.55s;
  --glow-scale: 0.8;
  --scale-factor: 1;
  --glow-blur: 3;
  --glow-opacity: 0.8; 
  --glow-radius: 100; 
  --glow-rotate-unit: 1deg;

  position: relative;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  margin: 2rem 0 2rem 6rem;
}

.animated-glow-container .inner-content {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.animated-glow-container img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
}

/* The Animated Border */
.animated-glow-container .inner-content::before {
  content: "";
  display: block;
  position: absolute;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border-radius: 50%;
  z-index: -1;
  background: hsl(0deg 0% 16%) radial-gradient(
    30% 30% at calc(var(--bg-x) * 1%) calc(var(--bg-y) * 1%),
    hsl(calc(calc(var(--hue) * var(--hue-speed)) * 1deg) 100% 90%) calc(0% * var(--bg-size)),
    hsl(calc(calc(var(--hue) * var(--hue-speed)) * 1deg) 100% 80%) calc(20% * var(--bg-size)),
    hsl(calc(calc(var(--hue) * var(--hue-speed)) * 1deg) 100% 60%) calc(40% * var(--bg-size)),
    transparent 100%
  );
  animation: hue-animation var(--animation-speed) linear infinite, rotate-bg var(--animation-speed) linear infinite;
  transition: --bg-size var(--interaction-speed) ease;
}

/* The Glowing Shadow Behind */
.animated-glow-container .glow {
  --glow-translate-y: 0;
  display: block;
  position: absolute;
  width: 30%;
  height: 30%;
  animation: rotate var(--animation-speed) linear infinite;
  transform: rotateZ(calc(var(--rotate) * var(--glow-rotate-unit)));
  transform-origin: center;
  border-radius: 50%;
}

.animated-glow-container .glow::after {
  content: "";
  display: block;
  z-index: -2;
  filter: blur(calc(var(--glow-blur) * 10px));
  width: 250%;
  height: 250%;
  left: -75%;
  top: -75%;
  background: hsl(calc(calc(var(--hue) * var(--hue-speed)) * 1deg) 100% 60%);
  position: relative;
  border-radius: 50%;
  animation: hue-animation var(--animation-speed) linear infinite;
  transform: scaleY(calc(var(--glow-scale) * var(--scale-factor) / 1.1)) scaleX(calc(var(--glow-scale) * var(--scale-factor) * 1.2)) translateY(calc(var(--glow-translate-y) * 1%));
  opacity: var(--glow-opacity);
}

/* Hover States */
.animated-glow-container:hover .inner-content {
  box-shadow: 0 0 calc(var(--white-shadow) * 1vw) calc(var(--white-shadow) * 0.15vw) rgb(255 255 255 / 20%);
  animation: shadow-pulse calc(var(--animation-speed) * 2) linear infinite;
}

.animated-glow-container:hover .inner-content::before {
  --bg-size: 15;
  animation-play-state: paused;
}

.animated-glow-container:hover .glow {
  --glow-blur: 1.5;
  --glow-opacity: 0.6;
  --glow-scale: 1.2;
  --rotate: 900;
  --glow-rotate-unit: 0;
  --scale-factor: 1.25;
  animation-play-state: paused;
}

.animated-glow-container:hover .glow::after {
  --glow-translate-y: 0;
  animation-play-state: paused;
  transition: --glow-translate-y 0s ease, --glow-blur 0.05s ease, --glow-opacity 0.05s ease, --glow-scale 0.05s ease;
}

/* Keyframes */
@keyframes shadow-pulse {
  0%, 24%, 46%, 73%, 96% { --white-shadow: 0.5; }
  12%, 28%, 41%, 63%, 75%, 82%, 98% { --white-shadow: 2.5; }
  6%, 32%, 57% { --white-shadow: 1.3; }
  18%, 52%, 88% { --white-shadow: 3.5; }
}

@keyframes rotate-bg {
  0% { --bg-x: 0; --bg-y: 0; }
  25% { --bg-x: 100; --bg-y: 0; }
  50% { --bg-x: 100; --bg-y: 100; }
  75% { --bg-x: 0; --bg-y: 100; }
  100% { --bg-x: 0; --bg-y: 0; }
}

@keyframes rotate {
  from { --rotate: -70; --glow-translate-y: -65; }
  25%, 50%, 60%, 75%, 85% { --glow-translate-y: -65; }
  to { --rotate: calc(360 - 70); --glow-translate-y: -65; }
}

@keyframes hue-animation {
  0% { --hue: 0; }
  100% { --hue: 360; }
}

@media (max-width: 750px) {
  .animated-glow-container {
    margin: 2rem auto;
  }
}

.about-text-box {
  flex: 1;
  margin-right: 4rem;
}

.about-text-box h2 {
  font-size: 3rem;
  margin-bottom: 4rem;
}

.about-text-box p {
  font-size: 1.4rem;
  padding: 0;
  margin-bottom: 1.45rem;
  
}

hr {
  margin: 4rem 0;
  background: linear-gradient(
    to right,
    rgba(249, 105, 14, 1) 0%,
    rgba(102, 51, 153, 1) 100%
  );
  border: 0;
  height: 1px;
}

.services, .skills {
  padding: 3rem 0;
  min-height: auto;
  max-width: 90rem;
  margin: auto;
}

.title-heading {
  text-align: center;
  margin-bottom: 5rem;
}

.title-heading h2 {
  font-size: 2rem;
  margin: 0.5rem 0 4rem 0;
  color: #EF1A2D;
}

.title-heading p {
  margin-bottom: 5rem;
}

/* --- Glassmorphism Skills Cards --- */
.glass-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 40px 0;
  justify-items: center;
}

.glass-box {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 450px; 
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  transition: 0.5s;
}

.glass-box::before,
.glass-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50px;
  width: 50%;
  height: 100%;
  background: #fff;
  border-radius: 8px;
  transform: skewX(15deg);
  transition: 0.5s;
}

.glass-box::after {
  filter: blur(30px);
}

.glass-box:hover:before,
.glass-box:hover:after {
  transform: skewX(0deg);
  left: 20px;
  width: calc(100% - 40px);
}

/* Custom Colors for each card */
.glass-box:nth-child(1):before,
.glass-box:nth-child(1):after {
  background: linear-gradient(315deg, #013a3a, #039b9b);
}

.glass-box:nth-child(2):before,
.glass-box:nth-child(2):after {
  background: linear-gradient(315deg, #4a0808, #00ff40);
}

.glass-box:nth-child(3):before,
.glass-box:nth-child(3):after {
  background: linear-gradient(315deg, #2a1154, #6f42c1);
}

/* The floating blurred squares */
.glass-box span {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  pointer-events: none;
}

.glass-box span::before,
.glass-box span::after {
  content: '';
  position: absolute;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: 0.5s;
  animation: floatAnimate 2s ease-in-out infinite;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.glass-box span::before {
  top: 0;
  left: 0;
  width: 0;
  height: 0;
}

.glass-box:hover span::before {
  top: -50px;
  left: 50px;
  width: 100px;
  height: 100px;
  opacity: 1;
}

.glass-box span::after {
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  animation-delay: -1s;
}

.glass-box:hover span:after {
  bottom: -50px;
  right: 50px;
  width: 100px;
  height: 100px;
  opacity: 1;
}

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

/* Content Styling */
.glass-content {
  position: relative;
  left: 0;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 1;
  transition: left 0.5s, padding 0.5s;
  color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.glass-box:hover .glass-content {
  left: -25px;
  padding: 40px 30px;
}

.glass-content i {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.glass-content h2 {
  font-size: 2rem; 
  color: #EF1A2D;
  margin-bottom: 10px;
}

.glass-content p {
  font-size: 1.3rem;
  line-height: 1.5em;
  text-align: justify;
}

/* --- Subtitle and Badges for Skills Section --- */

.skills-badges-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: 75rem;
  margin: 1rem auto 2rem auto;
}

.skill-badge {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background-color: #111111;
  padding: 1rem 2rem;
  border-radius: 2rem;
  font-size: 1.3rem;
  font-weight: 500;
  color: #e7e7e7;
  transition: transform 0.3s ease, background-color 0.3s ease;
  cursor: default;
  border: 1px solid #222222;
}

.skill-badge i {
  font-size: 1.8rem;
}

.skill-badge:hover {
  transform: translateY(-5px);
  background-color: #1a1a1a;
  border-color: #EF1A2D;
}

.tier-item p {
  font-size: 1.4rem;
}

.projects {
  padding: 3rem 0;
  min-height: 100vh;
  max-width: 90rem;
  margin: auto;
}

.has-margin-right {
  margin: 0 3rem 0 0;
}

.project-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 1.45rem 5rem 1.45rem;
}

.project-img {
  flex: 1;
}

.project-description {
  flex: 1;
}

.project-description h2 {
  font-size: 2rem;
  margin: 2rem 0;
  background: linear-gradient(
    to right,
    #e51d1b 0%,
    rgba(102, 51, 153, 1) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.project-description p {
  font-size: 1.4rem;
}

.project-link {
  display: inline-block;
  margin: 2rem 0;
  font-size: 1.4rem;
}

.project-link:hover {
  color: #6f42c1;
}

.project-link:hover i {
  color: #6f42c1;
}

.contact {
  padding: 3rem 0;
  min-height: auto;
  max-width: 90rem;
  margin: auto;
  text-align: center;
}

.contact h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 5rem;
  color: #EF1A2D;
}

.contact p {
  font-size: 1.4rem;
  padding: 0;
  margin: 0.9rem 2rem;
}

.social-3d-list {
  display: flex;
  justify-content: center;
  margin: 7rem auto 9rem auto;
  padding: 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-3d-list li {
  list-style: none;
  margin: 0 35px;
}

.social-3d-list li a .fa, 
.social-3d-list li a .fas, 
.social-3d-list li a .fab {
  font-size: 30px;
  color: #262626;
  line-height: 60px;
  transition: .5s;
  padding-right: 10px;
}

.social-3d-list li a span {
  padding: 0;
  margin: 0;
  position: absolute;
  top: 20px;
  color: #262626;
  letter-spacing: 2px;
  font-size: 1.3rem;
  transition: .5s;
}

.social-3d-list li a {
  text-decoration: none;
  display: block;
  position: relative;
  width: 160px;
  height: 60px;
  background: #fff;
  text-align: left;
  padding-left: 15px;
  transform: rotate(-30deg) skew(25deg) translate(0,0);
  transition: .5s;
  box-shadow: -20px 20px 10px rgba(0,0,0,.5);
}

.social-3d-list li a:before {
  content: '';
  position: absolute;
  top: 8px; 
  left: -15px;
  height: 100%;
  width: 15px;
  background: #b1b1b1;
  transition: .5s;
  transform: rotate(0deg) skewY(-45deg);
}

.social-3d-list li a:after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: -8px; 
  height: 15px;
  width: 100%;
  background: #b1b1b1;
  transition: .5s;
  transform: rotate(0deg) skewX(-45deg);
}

.social-3d-list li a:hover {
  transform: rotate(-30deg) skew(25deg) translate(15px,-10px);
  box-shadow: -30px 30px 30px rgba(0,0,0,.5);
}

.social-3d-list li:hover .fa, 
.social-3d-list li:hover .fas, 
.social-3d-list li:hover .fab,
.social-3d-list li:hover span {
  color: #fff;
}

/* 1. GitHub Official Colors */
.social-3d-list li:hover:nth-child(1) a { background: #6f42c1; }
.social-3d-list li:hover:nth-child(1) a:before { background: #52318f; }
.social-3d-list li:hover:nth-child(1) a:after { background: #8958ea; }

/* 2. LinkedIn Official Colors */
.social-3d-list li:hover:nth-child(2) a { background: #0a66c2; }
.social-3d-list li:hover:nth-child(2) a:before { background: #004b8f; }
.social-3d-list li:hover:nth-child(2) a:after { background: #2c85de; }

footer {
  width: 100%;
  max-width: 90rem;
  margin: auto;
  padding: 1rem 0;
  color: #8a8a8a;
  text-align: center;
  font-size: 1.2rem;
  display: flex;
  justify-content: space-evenly;
  flex-direction: column;
}

footer a {
  margin: 0 0.2rem;
}

.footer-coded-by {
  margin: 0 0 1rem 0;
  color: #ffffff;
}

@media (max-width: 750px) {
  .main-message h3 {
    font-size: 3rem;
  }
  .about .container {
    flex-direction: column;
  }
  .about-img img {
    margin: 2rem auto;
    display: block;
  }

  p {
    font-size: 1.3rem;
  }
  .title-heading {
    margin: 0;
  }

  .service-tiers {
    gap: 0;
  }
  .project-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    box-shadow: 0 20px 30px 0 rgba(212, 255, 255, 0.15);
  }
  .project-img {
    width: 20rem;
  }
}

@media (max-width: 665px) {
  .main-message {
    top: 55%;
  }
  .main-message h2 {
    letter-spacing: 1rem;
    font-size: 1.5rem;
    width: 29ch;
  }

  .main-message h3 {
    font-size: 2rem;
  }

  .main-message p {
    font-size: 1.3rem;
  }
  .btn {
    border-radius: 0.9rem;
    padding: 0.9rem 0.9rem;
  }
  .about-text-box h2 {
    font-size: 3rem;
    margin-bottom: 20px;
  }
  .about-text-box p {
    margin: 0 0 2.45rem;
  }

  .title-heading h2 {
    margin-bottom: 2rem;
  }
  .title-heading p {
    font-size: 1.3rem;
  }

  .contact .container {
    flex-direction: column;
  }

  footer,
  footer p {
    font-size: 1.2rem;
  }
}

.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s;
}

.loader {
  width: 60px;
  height: 60px;
  border: 5px solid transparent;
  border-top-color: #EF1A2D;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader:before {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 5px solid transparent;
  border-top-color: rgba(102, 51, 153, 1);
  border-radius: 50%;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.fade-in {
  animation: fadeIn 0.8s ease-in;
}

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

.project-item {
  transition: transform 0.3s ease;
}

.project-item:hover {
  transform: translateY(-5px);
}

.tier-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid transparent;
}

.tier-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(243, 91, 91, 0.13);
}

section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.btn {
  position: relative;
  overflow: hidden;
}

.btn:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover:after {
  width: 200%;
  height: 200%;
}

/* --- Gooey Trailing Cursor --- */
*, *::before, *::after {
  cursor: none !important;
}

.Cursor {
  pointer-events: none;
  position: fixed;
  display: block;
  border-radius: 0;
  transform-origin: center center;
  mix-blend-mode: difference;
  top: 0;
  left: 0;
  z-index: 10000;
  filter: url("#goo");
}

.Cursor span {
  position: absolute;
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 20px;
  background-color: white; 
  transform-origin: center center;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

.Cursor.is-hovering span {
  background-color: #EF1A2D;
  width: 45px;
  height: 45px;
}

/* --- Contact Form Styles --- */
.contact-form {
  max-width: 600px;
  margin: 3rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0 2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 1.2rem;
  font-family: inherit;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #EF1A2D;
  background: rgba(255, 255, 255, 0.08);
}

/* --- Horizontal 3D Submit Button --- */
.submit-3d-btn {
  position: relative;
  background: #fff;
  color: #262626;
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: 2px;
  font-weight: 600;
  padding: 15px 30px;
  border: none;
  outline: none;
  width: max-content;
  margin: 1rem auto 0 auto;
  transition: 0.5s;
  box-shadow: -10px 10px 10px rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: none !important;
}

/* Side depth */
.submit-3d-btn::before {
  content: '';
  position: absolute;
  top: 4px;
  left: -9px;
  height: 100%;
  width: 9px;
  background: #b1b1b1;
  transition: 0.5s;
  transform: skewY(-45deg);
}

/* Bottom depth */
.submit-3d-btn::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: -4px;
  height: 9px;
  width: 100%;
  background: #b1b1b1;
  transition: 0.5s;
  transform: skewX(-45deg);
}

/* Hover effects  */
.submit-3d-btn:hover {
  transform: translate(5px, -5px);
  box-shadow: -15px 15px 15px rgba(0,0,0,.5);
  background: #e73b38;
  color: #fff;
}

.submit-3d-btn:hover::before {
  background: #ba2826;
}

.submit-3d-btn:hover::after {
  background: #fc5754;
}
