@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

body {
  padding: 0px;
  padding-top: 0px;
  margin: 0px;
  background-color: #181a1b;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: #cbd5e1;
  line-height: 1.6;
}

/* Page Layout */
.align {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

/* Card Containers - Glassmorphic / Premium Soft Shadow design */
.wrapper,
.wrapperleft {
  margin-top: 10px;
  margin-bottom: 40px;
  width: 70%;
  max-width: 900px;
  background-color: #313537;
  border: 1px solid rgba(56, 189, 248, 0.1);
  border-radius: 24px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
  padding: 40px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.wrapper:hover,
.wrapperleft:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(56, 189, 248, 0.12), 0 1px 10px rgba(0, 0, 0, 0.05);
}

/* Images in Cards */
.wrapper img {
  max-width: 320px;
  width: 100%;
  float: right;
  margin-top: -10px;
  margin-left: 24px;
  margin-right: 0%;
  margin-bottom: 16px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wrapper img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.15);
}

.wrapperleft img {
  max-width: 320px;
  width: 100%;
  float: left;
  margin-top: -10px;
  margin-right: 24px;
  margin-left: 0%;
  margin-bottom: 16px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wrapperleft img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.15);
}

@media (max-width: 768px) {
  .wrapper,
  .wrapperleft {
    width: 100%;
    padding: 24px;
  }

  .wrapper img,
  .wrapperleft img {
    max-width: 100%;
    float: none;
    margin-left: 0;
    margin-right: 0;
    margin-top: 10px;
    margin-bottom: 20px;
  }
}

/* Headings with Human Touch */
h1 {
  font-family: 'Kalam', cursive;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

h2 {
  font-family: 'Kalam', cursive;
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 40px;
  margin-bottom: 24px;
}

h3 {
  font-family: 'Kalam', cursive;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 30px;
  margin-bottom: 16px;
}

h5 {
  font-family: 'Kalam', cursive;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-top: 0;
  margin-bottom: 20px;
}

.second-title {
  font-family: 'Kalam', cursive;
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin: 40px 0 20px 0;
}

.second-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  margin: 12px auto 0 auto;
  border-radius: 2px;
}

p {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  text-align: left;
}

li {
  font-size: 1.05rem;
  color: #cbd5e1;
  text-align: left;
}

/* Link overrides */
a {
  text-decoration: none;
  color: #38bdf8;
  transition: color 0.2s ease;
}

a:hover {
  color: #7dd3fc;
  text-decoration: none;
}

/* Header Background - Linear Gradient fading to transparency */
.bgimg {
  background: linear-gradient(180deg, #0284c7 50%, #fff0 100%);
  padding: 80px 24px;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.bgimg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.bgimg h1 {
  color: #ffffff;
}

.bgimg h1:first-child {
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bgimg h1:last-child {
  font-size: 1.8rem;
  font-weight: 300;
  opacity: 0.9;
  margin-top: 10px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .bgimg {
    padding: 60px 20px;
    margin-bottom: 24px;
  }

  .bgimg h1:first-child {
    font-size: 2.2rem;
  }

  .bgimg h1:last-child {
    font-size: 1.4rem;
  }
}

/* Rotating border animation */
#border-wrap {
  position: relative;
}

#border-wrap::before {
  content: '';
  position: absolute;
  border-radius: 24px;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border: 2px solid #38bdf8;
  animation: borderRotate 4s linear infinite;
  pointer-events: none;
}

@keyframes borderRotate {
  0% { clip-path: inset(0 0 95% 0); }
  25% { clip-path: inset(0 95% 0 0); }
  50% { clip-path: inset(95% 0 0 0); }
  75% { clip-path: inset(0 0 0 95%); }
  100% { clip-path: inset(0 0 95% 0); }
}

/* Spinner Styles */
#spinner {
  animation: rotate 2s linear infinite;
  z-index: -1;
  position: absolute;
  top: 0%;
  margin: 15% 50% 0% 50%;
  width: 50px;
  height: 50px;
  stroke: #fff;
}

.path {
  stroke: hsl(210, 70, 75);
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

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

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }

  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

.old-project a {
  color: #38bdf8;
  display: block;
  text-align: center;
  font-family: 'Kalam', cursive;
  font-weight: bold;
  font-size: 1.8rem;
  margin-top: 20px;
  transition: color 0.2s ease;
}

.old-project a:hover {
  color: #7dd3fc;
  text-decoration: underline;
}
