:root {
  --background: 0 0% 100%;
  --foreground: #fff;
  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 222.2 84% 4.9%;
  --primary: 221.2 83.2% 53.3%;
  --primary-foreground: 210 40% 98%;
  --secondary: 210 40% 96.1%;
  --secondary-foreground: 222.2 47.4% 11.2%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --accent: 210 40% 96.1%;
  --accent-foreground: 222.2 47.4% 11.2%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;
  --ring: 221.2 83.2% 53.3%;
  --radius: 0.5rem;
}

.dark {
  --background: 222.2 84% 4.9%;
  --foreground: 210 40% 98%;
  --card: 222.2 84% 4.9%;
  --card-foreground: 210 40% 98%;
  --popover: 222.2 84% 4.9%;
  --popover-foreground: 210 40% 98%;
  --primary: 217.2 91.2% 59.8%;
  --primary-foreground: 222.2 47.4% 11.2%;
  --secondary: 217.2 32.6% 17.5%;
  --secondary-foreground: 210 40% 98%;
  --muted: 217.2 32.6% 17.5%;
  --muted-foreground: 215 20.2% 65.1%;
  --accent: 217.2 32.6% 17.5%;
  --accent-foreground: 210 40% 98%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 210 40% 98%;
  --border: 217.2 32.6% 17.5%;
  --input: 217.2 32.6% 17.5%;
  --ring: 224.3 76.3% 48%;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "sahel";
  color: #fff;
  background-color: #020007;
  min-height: 100vh;
  line-height: 1.5;
}

@media (min-width: 300px) {
  .typewriter-text {
    max-width: 90vw;
    white-space: wrap !important;
  }
  .land-img {
    object-fit: fill !important;
  }
}
.typewriter-text {
  margin-top: 1.5rem !important;
  display: inline-block;
  border-left: 2px solid #979797;
  white-space: nowrap;
  overflow: hidden;
  direction: rtl;
  min-height: 1.3em;
  padding-left: 0.5rem;
  animation: blink-caret 0.85s step-end infinite;
}

@keyframes blink-caret {
  50% {
    border-color: transparent;
  }
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
section#about {
  height: 100vh;
}
section#about > .container {
  position: relative;
  z-index: 10;
}

.land-img {
  object-fit: cover;
  object-position: 50% 50%;
  max-width: none;
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity;
  margin-top: 0px;
  transform: translate3d(0px, 0px, 0px);
}
.info {
  border-radius: 3px;
  align-items: center;
  justify-content: space-around;
  padding: 1.5rem;
}
.info > section {
  padding: 1.5rem;
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.info > section > p {
  color: inherit;
  margin: 1rem 0;
  padding-right: 1.5rem;
  text-justify: inter-cluster;
}
.info > section > h2 {
  margin: 1rem 10px;
  text-align: right;
}
.info > section > img {
  /* rotate: 30deg; */
  width: 100%;
}
@media (min-width: 300px) {
  .b-img {
    text-align: center;
  }
  .offer-box {
    margin: 1rem 0;
  }
  .info > section {
    padding: 0;
    align-self: center;
  }
}
#about {
  padding-bottom: 0;
}
#about-us {
  margin-top: 0%;
}
.glow-box {
  position: relative;
  border-radius: 20px;
  background: #222;
  overflow: hidden;
}
.glow-box > * {
  position: relative;
  z-index: 2;
}
.glow-box::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    #00ffff00,
    #00ff8800,
    #ff8800,
    #ffff0000,
    #88ff0000,
    #b10236,
    #8800ff00,
    #00ffff00
  );
  animation: rotate 5s linear infinite;
  filter: blur(35px);
  z-index: 0;
}

.glow-box::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 15px;
  background: #111;
  z-index: 1;
}

@keyframes rotate {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.offer-box-sec {
  padding-bottom: 0;
  margin-top: 2rem;
}
.offer-box-container {
  justify-content: space-evenly;
}
.offer-box {
  display: flex;
  align-items: center;
}
.offer-box > img {
  margin-left: 5px;
  object-fit: contain;
}
/* Header Styles */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background-color: hsla(var(--background), 0.95);
  backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  height: 3.5rem;
  align-items: center;
}

.logo {
  display: flex;
  font-weight: bold;
  margin-left: 1.5rem;
  align-items: flex-end;
}
.logo > p {
  color: #cf3535 !important;
}
.roted-logo {
  width: 30px;
  height: 30px;
  rotate: -30deg;
}
nav {
  display: none;
}

@media (min-width: 768px) {
  nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
  }
}

nav a {
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover {
  color: hsla(var(--foreground), 0.8);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.875rem;
  height: 2.5rem;
  padding: 0 1rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}

.btn-outline:hover {
  background-color: hsla(var(--accent), 0.1);
}

.btn-icon {
  height: 2.5rem;
  width: 2.5rem;
  padding: 0;
}

.mr-auto {
  margin-right: auto;
}

/* Section Styles */
section {
  padding: 2rem 0;
}

@media (min-width: 768px) {
  section {
    padding: 3rem 0;
  }
}

@media (min-width: 1024px) {
  section {
    padding: 3rem 0;
  }
}

.text-center {
  text-align: center;
}

h1 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  h1 {
    font-size: 2.25rem;
  }
}

@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 3.75rem;
  }
}

h2 {
  margin-bottom: 2rem;
  text-align: center;
}

@media (min-width: 640px) {
  h2 {
    font-size: 2.25rem;
  }
}

@media (min-width: 768px) {
  h2 {
    font-size: 3rem;
  }
}

p {
  max-width: 700px;
  margin: 0 auto;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
  p {
    font-size: 1.125rem;
  }
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-x-4 {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

/* Card Styles */
.card {
  background: #131414; /* fallback for old browsers */
  background: -webkit-linear-gradient(
    to top,
    #272829,
    #232526
  ); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to top, #232425, #0d0d0e);
  cursor: pointer;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  overflow: hidden;
}

.card-content {
  padding: 1rem;
}

.card-footer {
  padding: 1rem;
  padding-top: 0;
}

/* Project Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
#contact > div > h2 {
  text-align: right;
}
#contact > div {
  display: flex;
  align-items: center;
  justify-content: center;
}
#contact > div > section {
  padding: 0;
  display: flex;
  align-items: center;
}
#contact > div > section > div {
  display: flex;
  flex-direction: column;
}
.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-description {
  font-size: 0.875rem;
  color: goldenrod;
  margin-bottom: 1rem;
}

.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background-color: hsla(var(--muted));
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #232526;
  border: 1px solid hsla(var(--border), 0.1);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  text-decoration: none;
}
.project-link > img {
  width: 30px;
  height: 30px;
  rotate: 30deg;
}
.project-link:hover {
  text-decoration: underline;
}

/* Tech Stack */
.tech-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
  justify-items: center;
}
.tech-grid > img {
  cursor: pointer;
}
@media (min-width: 768px) {
  .tech-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.tech-card {
  padding: 1.5rem;
}

.tech-category {
  color: #fffcfc;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.contact-grid {
  display: flex;
  justify-content: space-evenly;
}
.contact-grid > .card {
  width: 40%;
  cursor: auto;
}
.contact-grid > .card > .card-content > .tag-container {
  margin: 2rem 0;
}
.tech-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background-color: #272829;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: goldenrod;
  border: 1px solid hsla(var(--primary), 0.2);
}

/* Footer */
footer {
  border-top: 1px solid hsl(var(--border));
  padding: 1.5rem 0;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

@media (min-width: 640px) {
  .footer-container {
    flex-direction: row;
  }
}

.copyright {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.footer-nav {
  display: flex;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-nav {
    gap: 1.5rem;
    margin-right: auto;
  }
}

.footer-link {
  font-size: 0.75rem;
  color: hsl(var(--foreground));
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Icons */
.icon {
  width: 1rem;
  height: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Background */

#beams-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: blur(15px);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: hsla(var(--background), 0.6);
  backdrop-filter: blur(4px);
}

.content-wrapper {
  position: relative;
  z-index: 10;
}

@media (max-width: 640px) {
  .contact-grid {
    flex-direction: column;
  }
  .contact-grid > .card {
    width: unset;
    margin-bottom: 1rem;
  }
}
.btn-resume {
  background-color: #000000;
  color: #fff;
  border: #272829;
}

.button-12 {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Roboto", sans-serif;
  border-radius: 6px;
  border: none;

  background: #020007;
  box-shadow: 0px 0.5px 1px rgba(0, 0, 0, 0.1),
    inset 0px 0.5px 0.5px rgba(255, 255, 255, 0.5),
    0px 0px 0px 0.5px rgba(0, 0, 0, 0.12);
  color: #dfdedf;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-12:focus {
  box-shadow: inset 0px 0.8px 0px -0.25px rgba(255, 255, 255, 0.2),
    0px 0.5px 1px rgba(0, 0, 0, 0.1), 0px 0px 0px 3.5px rgba(58, 108, 217, 0.5);
  outline: 0;
}
