/**
  * Main stylesheet for portfolio website

  * Breakpoints:
  * This css - styles.css Global and (phones, 320px and down) and (phones, 321px to 375px)
  * - Mobile: up to 480px
  * - Tablet: 481px - 1024px - (481px - 768px} and (769px - 1024px)
  * - Desktop: 1025px - 1439px
  * - Large Desktop: 1440px - 1600px
  * - 4K: 1601px and above
  */

/* Mobile styles */
@media (max-width: 480px) {
  @import url('css/mobile.css');
}

/* Tablet styles */
@media (min-width: 481px) and (max-width: 1024px) {
  @import url('css/tablet.css');
}

/* Desktop styles */
@media (min-width: 1025px) and (max-width: 1439px) {
  @import url('css/desktop.css');
}

/* Large Desktop styles */
@media (min-width: 1440px) and (max-width: 1600px) {
  @import url('css/large-desktop.css');
}

/* 4K styles */
@media (min-width: 1601px) {
  @import url('css/4k.css');
}


.back-vid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.7;
}

/* Base styles and variables */
:root {
  /* Colors */
  --color-primary: #727fde;
  --color-secondary: #9B7040;
  --color-accent: #EFE59E;
  --color-text: #d3d3d3;
  --color-bg: #000000;
  --color-header-bg: #FFFFFF1F;
  --color-nav-bg: #0000454D;
  
  /* Typography */
  --font-size-base: 16px;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  
  /* Layout */
  --header-height: 80px;
  --max-width: 1200px;
  --border-radius: 8px;
  --height: 100px;
}

/* Remove bullet points from lists */
ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}



/* Base styles */
/* Style boxicons */
.bx {
  color: #ffffff;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
  line-height: 1.5;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica', 'Arial', sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Layout */
.container {
  position: relative;
  z-index: 1;
  background: transparent;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xl);
  margin: 0 auto;
  padding: calc(var(--header-height) + var(--spacing-md)) var(--spacing-md) var(--spacing-xl);
  box-sizing: border-box;
}

.info-section{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title{
  font-weight: 700;
  font-size: var(--font-size-2xl);
  margin-bottom: var(--spacing-xl);
  text-align: center;
  position: relative;
  display: inline-block;
}


.back-vid{
  position: fixed;
  width: 100%;
  height: 100%;
  right: 0;
  bottom: 0;
  top: 0;
  left: 0;
  object-fit: cover;
  z-index: -1;
  opacity: 0.7;
  mix-blend-mode: lighten;
  pointer-events: none;
}

/* ==========================================================================
  #HEADER
  ========================================================================== */

/**
 * 1. Fixed position to keep header at top
 * 2. High z-index to ensure header stays above other content
 * 3. Smooth background transition for theme changes
 */

header {
  position: fixed; /* 1 */
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 var(--spacing-lg);
  background-color: #000000B3;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px #00000033;
  z-index: 1000; /* 2 */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* 3 */
  transform: translateY(0);
}

/* Header scroll effect */
header.scrolled {
  transform: translateY(-100%);
  box-shadow: 0 4px 20px #00000026;
}

header.scrolled.visible {
  transform: translateY(0);
  background-color: #000000E6;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  margin: 0px;
  padding: 0px;
}

.site-logo__image {
  width: 180px;
  height: auto;
  margin: var(--spacing-sm);
}

.site-logo:hover .site-logo__image {
  transform: scale(1.05);
}

/* Hamburger Menu */
.hamburger-menu {
  display: none; /* Hidden by default, shown in mobile view */
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 34px;
  display: flex;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 1001;
  position: fixed;
  outline: none;
  border: none;
  background: transparent;
}

.hamburger-menu .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
  transform-origin: center;
}

.hamburger-menu:hover .bar {
  background-color: var(--color-accent);
}

/* Active state */
.hamburger-menu.active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger-menu.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Navigation Wrapper */
.nav-wrapper {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 320px;
  height: auto;
  max-height: 80vh;
  background: #0D1117FA;
  backdrop-filter: blur(10px);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 30px #0000001A;
  z-index: 1000;
  overflow-y: auto;
  transition: transform 0.3s ease-in-out;
  padding: 1rem 0;
  margin: 0 auto;
  transform: translateX(-100%);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.5rem 1rem;
  margin: 0;
  list-style: none;
}

.nav-item {
  width: 100%;
  text-align: center;
  margin: 0.25rem 0;
  padding: 0 1rem;
}

.nav-link {
  display: block;
  padding: var(--spacing-xs) var(--spacing-sm);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--font-size-base);
  border-radius: var(--border-radius);
  transition: all 0.3s var(--ease-out);
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  background: #727FDEC0;
  color: #EFE59EFF;
  outline: 2px solid #B388FFFF;
  outline-offset: 2px;
}

header ul { /* # Navigation links container */
  flex-direction: column; /* # Stack navigation links vertically */
  align-items: center; /* # Center navigation links */
  width: 100%; /* # Navigation takes full width */
  padding: 10px 0; /* # Adjust padding */
  background-color: transparent; /* # Remove distinct background for stacked items if desired, or adjust */
  box-shadow: none; /* # Remove shadow if it looks cluttered when stacked */
}
header ul li { /* # Individual navigation link item */
  margin: 8px 0; /* # Space between stacked navigation links */
  width: 100%; /* # List items take full width */
  text-align: center; /* # Center text in navigation links */
}
header ul li a {
  display: block; /* # Make link fill the li for easier tapping */
  padding: 5px 0; /* # Add some padding to the link itself */
}

/* Social Icons */
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  width: 40px;
  height: 40px;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  transition: all 0.3s ease;
  color: var(--color-text);
  text-decoration: none;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: all 0.3s var(--ease-out);
}

.social-link:hover,
.social-link:focus {
  color: #000;
  background-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px #727FDE66;
}

.social-link .bx {
  font-size: 1.5rem;
}

.social-links li {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Black Hole */
.blackhole-box {
  z-index: 0;
  position: absolute;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  mix-blend-mode: lighten;
}

.blackhole-box video{
  position: absolute;
  width: 100%;
  object-fit: cover;
}

#Title{
  position: absolute;
  text-align: center;
  color: var(--color-accent);
  margin-top: 80px;
  font-size: 40px;
}

/* Hero section adjustments */
.hero{
  flex-direction: column;
  display: flex;
  width: 100%;
  height: 30vh;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 20px;
}

.hero-info{
  position: relative;
  left: auto;
  margin: 0px;
  order: 2 /* # Ensure text info comes after video if preferred, or 1 if before */
}

.hero-info-title {
  color: #727fde;
  padding: 8px 5px;
  border: 1px solid #727fde77;
  width: 240px;
  background-color: #2200493d;
  box-shadow: 0 0 5px #727fde88;
  border-radius: 50px;
}

.hero-info h2 { 
  font-size: 22px;
  max-width: 300%;
}

.hero-info p {
  font-size: 20px;
  max-width: 300px;
  line-height: 25px;
  margin-bottom: 40px;
}

.hero-info button {
  padding: 12px 25px;
  border: 1px solid #727fb4;
  border-radius: 10px;
  color: #ffffff;
  cursor: pointer;
  background-color: #2200493d;
  box-shadow: 0 0 5px #727fde88;
  font-size: 18px;
}

.hero-info button:hover {
  color: #EFE59E;
  box-shadow: 0 0 15px #EFE59E88;
  transition: 0.3s;
}

.hero-vid-box{
  position: relative;
  right: auto; 
  width: 100%; 
  margin-top: 20px; 
  order: 1;
}

.hero-vid-box video{
  height: auto;
  width: 100%;
  max-height: 350px;
  mix-blend-mode: lighten;
}

/*==========================================================================
  #PROJECT CARDS
  ==========================================================================*/

/* Project Section */
.my-projects {
  width: 100%;
  padding: var(--spacing-xxl) 0;
  position: relative;
  margin: 0;
  box-shadow: 0 10px 30px #0000004D;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10%;
  height: 100vh;
  margin-bottom: 700px;
}

/* Project Cards Container */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  padding: 2rem 0;
}

/* Individual Project Card */
.project-card {
  background: #FFFFFF08;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #FFFFFF14;
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(10px);
  margin-bottom: var(--spacing-md);
}

.projects-card {
  display: flex;
  width: 100%;
  height: 40%;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.projects-min {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  width: 50%;
  position: relative;
  min-width: 400px;
  transition: 0.5s;
  mix-blend-mode: exclusion;
}

.projects-min img {
  object-fit: cover;
  width: 100%;
  box-shadow: 0 0 10px #d3d3d3;
  border-radius: 20px;
  transition: 0.5s;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px #00000066;
  border-color: #727FDE4D;
}

.project-card:hover::before {
  opacity: 1;
}

/* Project Image */
.project-image-container {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 280px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease;
  padding: 10px;
  background-color: #1a1a2e;
  border: 1px solid var(--color-primary);
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, #000A1E33, #000A1ECC);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

/* Project Info */
.project-info {
  padding: var(--spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  width: 50%;
  padding: 10%;
  position: relative;
}

.project-title {
  font-size: var(--font-size-xl);
  margin: 0 0 var(--spacing-xs);
  color: white;
}

.project-description {
  margin: 0 0 var(--spacing-md);
  color: #FFFFFFCC;
  flex-grow: 1;
}

.project-card:hover .project-image-overlay {
  opacity: 0.9;
}

/* Project content */
.project-content {
  padding: var(--spacing-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.project-title {
  font-size: 1.5rem;
  margin: 0 0 var(--spacing-sm);
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
  background: linear-gradient(90deg, #fff, #8f9eff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.project-description {
  color: #FFFFFFCC;
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
  flex: 1;
  font-size: 0.975rem;
}

/* Project tags */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--spacing-lg);
}

.projects-min img:hover {
  box-shadow: 0 0 20px #d3d3d3;
}

.project-info p{
  width:90%;
  min-width: 300px;
  max-width: 400px;
  margin-top: 0px;
  margin-bottom: 50px;
}

.project-info button{
  padding: 15px 35px;
  border: 1px solid #727fb4;
  border-radius: 10px;
  color: #ffffff;
  cursor: pointer;
  background-color: #2200493d;
  box-shadow: 0 0 5px #727fde88;
}

.project-info button:hover {
  color: #EFE59E;
  box-shadow: 0 0 15px #EFE59E88;
  transition: 0.3s;
}


/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}




/* My Gradient Animation */
.gradient{
  background: radial-gradient(circle, #008baa, #7e42a7, #6600c5, #6070fd, #2a46ff, #0099ff, #008baa);
  background-size: 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: animate-gradient 2.5s linear infinite;
}
@keyframes animate-gradient {
  to{
    background-position: 200%;
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tag {
  background: #727FDE26;
  color: #8f9eff;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid #727FDE4D;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.project-card:hover .tag {
  background: #727FDE40;
  transform: translateY(-2px);
}

/* Project links */
.project-links {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: auto;
  padding-top: var(--spacing-sm);
  border-top: 1px solid #FFFFFF14;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.project-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-primary);
  z-index: -1;
  border-radius: 50px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-link.primary {
  background: var(--color-primary);
  color: #000;
  box-shadow: 0 4px 15px #727FDE4D;
}

.project-link.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px #727FDE66;
  background: #a2afff;
}

.project-link.primary::before {
  background: linear-gradient(90deg, #a2afff, #8f9eff);
}

.project-link.secondary {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background: #727FDE0D;
  backdrop-filter: blur(5px);
}

.project-link.secondary:hover {
  background: #727FDE26;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px #727FDE33;
}

.project-link i {
  margin-right: 0.5rem;
  font-size: 1.1em;
  transition: transform 0.3s ease;
}

.project-link:hover i {
  transform: translateX(3px);
}
.cardThree{ /* # This is h2 for card 3 */
  position: static; /* # Remove absolute positioning to allow flow in flex container */
  margin-bottom: 15px; /* # Add space below the title */
  font-size: 25px;
  /* z-index: 1; */ /* # Not needed for static positioning */
  text-align: center; /* # Center the title text */
}
.cardFour{
  position: absolute;
  margin: 0px;
  bottom: 32%;
  left: 5%;
  font-size: 25px;
  z-index: 1;
}

.scroll-down{
  height: 50px;
  width: 30px;
  border: #d3d3d3 2px solid;
  border-radius: 50px;
  position: absolute;
  bottom: 8%;
  left: 48%;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 0 15px #d3d3d3;
}

.scroll-down::before,
.scroll-down::after {
  content:"";
  position: absolute;
  top: 20%;
  left: 49%;
  height: 10px;
  width: 10px;
  border: 2px solid #d3d3d3d3;
  transform: translate(-50%, -100%) rotate(45deg);
  border-top: transparent;
  border-left: transparent;
  animation: scroll-down 2s ease-in-out infinite;
}

.scroll-down::before {
  top:30%;
  animation-delay: 0.5s;
}
@keyframes scroll-down {
  0% {
    opacity: 0;
  }
  30%, 60% {
    opacity: 1;
  }
  100% {
    top: 90%;
    opacity: 0;
  }
}

.info-cards{
  width: 100%;
  height: 100%;
}

.card{
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  width: auto;
  height: 40%vh;
  overflow: hidden;
  border: 1px solid #d3d3d3;
  background-color: #080020b7;
  border-radius: 20px;
  transition: 0.3s;
}

.card:nth-child(1) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  border: 1px solid #d3d3d3;
  background-color: #080020b7;
  border-radius: 20px;
  transition: 0.3s;
  text-align: center;
}

.card:nth-child(1) h2 {
  width: 100%;
  color: var(--color-accent);
}

.card:nth-child(1) img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--color-primary);
  box-shadow: 0 0 15px #727FDE80;
}

.card:nth-child(1) p {
  margin: 0;
  line-height: 1.6;
  color: var(--color-text);
  font-size: 14px;
  max-width: 100%;
}

.card img{
  width: 60%;
  height: 60%;
  object-fit: cover;
  margin: 20px;
}

.card:nth-child(2) img{
  filter: brightness(2);
  height: 90%;
  width: 45%;
}

.card p{
  position: absolute;
  bottom: 3%;
  left: 5%;
  z-index: 1;
  max-width: 300px;
  line-height: 20px;
  color: #d3d3d3;
  font-size: 13px;
}

.card video{
  margin-top: 5%;
  width: 80%;
  height: 80%;
  object-fit: cover;
  mix-blend-mode: lighten;
}

.designer{
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: start;
  width: 300px;
  max-width: 33%;
  left: 5%;
  top: 25%;
}

.coder{
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: start;
  width: 300px;
  max-width: 33%;
  right: 5%;
  top: 25%;
}

.social-box{
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.social-box a{
  color: #003cff;
  font-size: 20px;
  text-decoration: none;
  text-wrap: nowrap;
}

.social-box i:hover{
  color: #727fde;
}

.social-box i{
  color: #003cff;
  font-size: 30px;
  margin-right: 10px;
  vertical-align: middle;
}

.card button{
  padding: 5px 15px;
  border: 1px solid #727fb4;
  border-radius: 10px;
  color: #ffffff;
  cursor: pointer;
  background-color: #2200493d;
  box-shadow: 0 0 5px #727fde88;
  transition: 0.3s;
  position: absolute;
  bottom: 5%;
  left: 5%;
}
.card button:hover {
  color: #EFE59E;
  box-shadow: 0 0 15px #EFE59E88;
  transition: 0.3s;
}

.card:hover{
  box-shadow: 0 0 15px #d3d3d3;
}

.card:nth-child(3){
  grid-column: span 2;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
}
.card:nth-child(3) p{
  position: static;
  max-width: 80%;
  margin-bottom: 15px;
  text-align: center;
  line-height: 1.6;
  color: #d3d3d3;
  font-size: 13px;
}

.card:nth-child(3) button {
  position: static;
  padding: 10px 20px;
  border: 1px solid #727fb4;
  border-radius: 10px;
  color: #ffffff;
  cursor: pointer;
  background-color: #2200493d;
  box-shadow: 0 0 5px #727fde88;
  transition: 0.3s;
  margin-top: 15px;
}

.card:nth-child(3) button:hover {
  color: #EFE59E; 
  box-shadow: 0 0 15px #EFE59E88; 
}

.card:nth-child(4){
  grid-column: span 2;
}
.card:nth-child(4) p{
  max-width: 650px;
}

/* Skills Section */
.skills-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.skills-box{
  width: 100%;
  height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skills-box p{
  line-height: 23px;
}

.skills-box img{
  width: 30%;
  mix-blend-mode: lighten;
  opacity: 0.7;
}

.skills-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 2px solid #727fde;
  box-shadow: 0 0 15px #727fde6f;
  filter: brightness(1.1);
}


/* Slider */
.slider{
  position: absolute;
  height: var(--height);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 10% 90%, transparent);
  mix-blend-mode: difference;
  opacity: 0.7;
}

.slider .list{
  display: flex;
  width: 100%;
  min-width: calc(var(--width)* var(--quantity));
  position: relative;
}

.slider .list .item{
  width: var(--width);
  height: var(--height);
  position: absolute;
  left: 100%;
  animation: autoRun 10s linear infinite;
  transition: filter 0.5s;
  animation-delay: calc( (10s / var(--quantity)) * (var(--position) - 1) - 10s)!important;
}

.slider .list .item img{
  width: 100%;
}

@keyframes autoRun{
  from{
    left: 100%;
  }
  to{
    left: calc(var(--width) * -1);
  }
}

.slider:hover .item{
  animation-play-state: paused!important;
  filter: grayscale(1);
}

.slider .item:hover{
  filter: grayscale(0);
}


/* Contact */
.contact-section{
  height: 100vh;
  display: flex;
  gap:10%;
  align-items: center;
  justify-content: center;
  position: relative;
}

.contact-section h3{
  position: absolute;
  top: 10%;
}

.contact-box{
  margin-top: 400px;
  margin-top: 30px;
  margin-bottom: 5px;
}

.contact-box input{
  padding: 7.5px 30px;
  background-color: #dbdbdb;
  width: 80%;
  height: 25px;
  border: none;
  outline: none;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.contact-box button{
  color: #ffffff;
  margin-top: 30px;
  padding: 10px 15px;
  border-radius: 10px;
  border: 1px solid #727fb4b4;
  background-color: #2200493d;
  box-shadow: 0 0 5px #727fde88;
  cursor: pointer;
  transition: 0.3s;
}

/* Footer */
footer{
  display: flex;
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  justify-content: center;
  align-items: center;
  height: 70px;
  z-index: 999;
}

footer h2{
  font-size: 25px;
}

/* Blur Effects */
.autoBlur{
  animation: autoBlurAnimation linear both;
  animation-timeline: view();
}

@keyframes autoBlurAnimation{
  0%{
    filter: blur(40px);
    opacity: 0;
  }
  35%, 65%{
    filter: blur(0);
    opacity: 1;
  }
  100%{
    filter: blur(40px);
    opacity: 0;
  }
}

/* Auto Display Animation */
.autoDisplay{
  animation: autoDisplayAnimation both;
  animation-timeline: view();
}

@keyframes autoDisplayAnimation{
  from{
    filter: blur(10px);
    transform: translateY(-200px) scale(0);
    opacity: 0.2;
  }
  50%{
    opacity: 1;
    filter: blur(0);
    transform: translateX(0) scale(1);
  }
}

/* Fade-in Right Animation */
.fadeInRight{
  animation: fadeInRightAnimation both;
  animation-timeline: view();
}

@keyframes fadeInRightAnimation{
  0%{
    transform: translateX(-500px) scale(0.2);
    opacity: 0;
    filter: blur(20px);
  }
  35%, 65%{
    opacity: 1;
    transform: translateX(0px) scale(1);
    filter: blur(0);
  }
  100%{
    filter: blur(20px);
  }
}





/* Extra small devices (phones, 321px to 375px) */
@media screen and (min-width: 321px) and (max-width: 375px) {
  .blackhole-box {
    width: 100%;
    margin-top: 20px;
  }
  .hamburger-menu {
    top: 14px;
    right: 1rem;
    height: 34px;
    width: 40px;
  }
}








/* Extra small devices (phones, 320px and down) */
@media screen and (max-width: 320px) {
  header{
    background-color: #727fde2b;
  }

  .social-links {
    margin: 1.5rem 0;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
  }

  .social-link {
    color: #727fde;
    font-size: 1.75rem;
    transition: all 0.3s ease;
  }

  .social-link:hover {
    color: #efe59e;
    transform: translateY(-3px);
  }

  /* Original header styles */
  .header {
    padding: 0 0.5rem;
  }
  .site-logo {
    z-index: 1001;
  }

  .site-logo__image {
    position: absolute;
    width: 140px;
    left: -15px;
  }

  .hamburger-menu {
    top: 20px;
    right: 1rem;
    height: 34px;
    width: 40px;
  }

  .nav-wrapper {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: auto;
    max-height: 80vh;
    background: transparent;
    z-index: 1000;
    overflow: visible; /* Changed from hidden to visible */
    transition: transform 0.3s ease-in-out;
    padding: 0;
    margin: 0 auto;
    transform: translateX(-120%);
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .nav-wrapper.active {
    transform: translateX(0);
    box-shadow: 0 10px 30px #0000004D;
    pointer-events: auto;
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    background: linear-gradient(135deg, #0D1117 0%, #1A1F2B 50%, #2A3142 100%);
    padding: 2rem 1rem 1.5rem; /* Added bottom padding */
    margin: 0;
    list-style: none;
    border: 2px solid #B388FF;
    border-radius: 12px; /* Rounded all corners */
    box-shadow: 0 10px 30px #0000004D, 0 0 20px #B388FF4D;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: all 0.3s ease-in-out;
    pointer-events: auto;
    position: relative;
    text-align: center;
  }
  
  .nav-wrapper.active .nav-menu {
    transform: translateX(0);
  }

  .nav-item {
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #FFFFFF1A;
  }

  .nav-link {
    display: block;
    padding: 0.5rem;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
  }

  .nav-link:hover,
  .nav-link:focus {
    background: #727FDEC0;
    color: #EFE59EFF;
    outline: 2px solid #B388FFFF;
    outline-offset: 2px;
  }

  .nav-link.active {
    background: #727FDEC0;
    color: #FFFFFFFF;
    position: relative;
  }

  .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #B388FFFF;
    border-radius: 3px;
  }

  .social-links {
    margin: 1rem 1rem 0;
    padding: 1.5rem 0.5rem;
    background: linear-gradient(135deg, #0D1117EE 0%, #1A1F2BEE 50%, #2A3142EE 100%);
    border: 1px solid #B388FFFF;
    border-radius: 12px;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    width: calc(100% - 2rem);
    list-style: none;
    position: relative;
    box-shadow: 0 4px 15px #B388FF40;
    transition: all 0.3s ease;
  }
  
  .social-links:hover {
    box-shadow: 0 6px 20px #B388FF66;
    transform: translateY(-2px);
  }

  .social-links a {
    width: 30px;
    height: 30px;
    font-size: 1rem;
    color: #FFFFFFFF;
    transition: all 0.3s ease;
  }
  
  .social-links a:hover {
    color: #EFE59EFF;
    transform: translateY(-2px);
  }

  /* Black Hole */
  .blackhole-box {
    width: 300px;
    height: 300px;
    left: 160px;
    top: 152px;
  }

  .blackhole-box video{
    top: -6px;
    left: 0px;
    object-fit: cover;
  }

  .scroll-down {
  display: none;
  }

  #Title{
    font-size: 1rem;
    padding: 0%;
    margin: 10px;
    margin-top: -100px;
  }

  @keyframes autoBlurAnimation{
    0%{
      filter: blur(40px);
      opacity: 0;
    }
    35%, 65%{
      filter: blur(0);
      opacity: 1;
    }
    100%{
      filter: blur(40px);
      opacity: 0;
    }
  }

  /* Hero section adjustments */
  .hero{
    flex-direction: column;
    display: flex;
    width: 100%;
    height: 100vh;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 60px;
  }

  .hero-info{
    margin-top: -100px;
  }
  
  .hero-vid-box{
    order: 1;
  }
  
  .hero-vid-box video{
    height: auto;
    width: 100%;
    max-height: 350px;
    mix-blend-mode: lighten;
  }

  .hero-info-title {
    color: #727fde;
    padding: 8px 5px;
    border: 1px solid #727fde77;
    width: 240px;
    background-color: #2200493d;
    box-shadow: 0 0 5px #727fde88;
    border-radius: 50px;
    margin-top: 60px;
  }

  .info-section{
    width: 95%;
    margin-top: 140px;
  }

  .info-section h2{
  }

  .card {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 40vh;
    overflow: hidden;
    border: 1px solid #d3d3d3;
    background-color: #080020b7;
    border-radius: 20px;
    margin: 10px 0;
  }

  .info-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 10px;
    gap: 20px;
    height: 100%;
  }

  .card:nth-child(1) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    overflow: hidden;
    border: 2px solid var(--color-primary);
    background-color: #080020b7;
    border-radius: 20px;
    transition: 0.3s;
    text-align: center;
    height: 400px;
  }

  .card:nth-child(1) h2 {
    width: 100%;
    color: var(--color-accent);
    font-size: 1.5rem;
    margin-top: -10px;
  }

  .card:nth-child(1) h3 {
    width: 100%;
    color: var(--color-accent);
    font-size: 1rem;
    margin-top: -20px;
  }

  .card:nth-child(1) img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--color-primary);
    box-shadow: 0 0 15px #727FDE80;
    margin-top: -10px;
  }
  
  .card:nth-child(1) p {
    margin: 10px;
    line-height: 1.6;
    color: var(--color-text);
    font-size: 0.9rem;
    max-width: 100%;
    bottom: auto;
    left: auto;
    margin-top: 250px;
  }
  
  .card:nth-child(2) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    overflow: hidden;
    border: 2px solid var(--color-primary);
    background-color: #080020b7;
    border-radius: 20px;
    transition: 0.3s;
    height: 400px;
  }

  .card:nth-child(2) h2 {
    width: 100%;
    color: var(--color-accent);
    font-size: 1.5rem;
    margin-top: -10px;
    text-align: center;
  }

  .card:nth-child(2) img {
    width: 160px;
    height: 150px;
    object-fit: cover;
    border: 3px solid var(--color-primary);
    box-shadow: 0 0 15px #727FDE80;
    margin-top: -5px;
    border-radius: 20px;
    filter: brightness(1.1);
  }

  .card:nth-child(2) p {
    margin: 10px;
    line-height: 1.6;
    color: var(--color-text);
    font-size: 0.9rem;
    max-width: 100%;
    text-align: center;
  }

  .card:nth-child(3) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    overflow: hidden;
    border: 2px solid var(--color-primary);
    background-color: #080020b7;
    border-radius: 20px;
    transition: 0.3s;
    height: 400px;
  }

  .card:nth-child(3) h2 {
    width: 100%;
    color: var(--color-accent);
    font-size: 1.5rem;
    margin-top: -10px;
    text-align: center;
  }

  .card:nth-child(3) img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 3px solid var(--color-primary);
    box-shadow: 0 0 15px #727FDE80;
    margin: 10px 0;
  }

  .card:nth-child(3) p {
    margin: 10px;
    line-height: 1.6;
    color: var(--color-text);
    font-size: 0.9rem;
    max-width: 100%;
    text-align: center;
  }

  .card:nth-child(4) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    overflow: hidden;
    border: 2px solid var(--color-primary);
    background-color: #080020b7;
    border-radius: 20px;
    transition: 0.3s;
    height: 400px;
    position: relative;
  }

  .card:nth-child(4) h2 {
    width: 100%;
    color: var(--color-accent);
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    text-align: center;
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
  }

  .card:nth-child(4) img {
    width: 160px;
    height: 150px;
    object-fit: cover;
    border: 3px solid var(--color-primary);
    box-shadow: 0 0 15px #727FDE80;
    margin: 50px 0 10px 0;
  }

  .card:nth-child(4) p {
    margin: 10px;
    line-height: 1.6;
    color: var(--color-text);
    font-size: 0.9rem;
    max-width: 100%;
    text-align: center;
  }


  .my-projects {
    width: 95%;
    max-width: 1200px;
    padding: var(--spacing-xxl) 0;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 30px #0000004D;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10%;
    height: 100vh;
    margin-bottom: 700px;
}

  .project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    max-width: 300px;
    height: auto;
    border: 2px solid var(--color-primary);
    background-color: #080020b7;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .card:nth-child(1) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
  overflow: hidden;
  border: 2px solid var(--color-primary);
  background-color: #080020b7;
  border-radius: 20px;
  transition: 0.3s;
  height: 400px;
  position: relative;
  }

  .project-image-container {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 15px;
  }

  .project-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
    padding: 10px;
    background-color: #1a1a2e;
    border: 1px solid var(--color-primary);
  }

  .project-card:hover .project-image {
    transform: scale(1.05);
  }

  .project-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, #000000b3 0%, #0000004d 50%, #000000b3 100%);
    opacity: 0.7;
    transition: opacity 0.3s ease;
  }

  .project-content {
    width: 100%;
    text-align: center;
  }

  .project-title {
    color: var(--color-accent);
    font-size: 1.25rem;
    margin-bottom: 8px;
    font-weight: 600;
  }

  .project-subtitle {
    color: var(--color-primary);
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
  }

  .project-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
  }

  .tag {
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 2px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
  }

  .project-description {
    color: var(--color-text);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
  }

  .project-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
  }

  .project-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .project-link i {
    margin-right: 5px;
    font-size: 1rem;
  }

  .project-link.primary {
    background-color: var(--color-primary);
    color: #ffffff;
    border: 1px solid var(--color-primary);
  }

  .project-link.secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
  }

  /* Hover effects */
  .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px #727fde33;
  }

  .project-card:hover .project-image {
    transform: scale(1.05);
  }

  .project-card:hover .project-image-overlay {
    opacity: 0.5;
  }

  .project-link:hover {
    transform: translateY(-2px);
  }

  .project-link.primary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg);
  }

  .project-link.secondary:hover {
    background-color: var(--color-primary);
    color: #ffffff;
  }

  /* Skills Section */
  .skills-section {
    width: 100%;
    max-width: 1200px;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    top: 300px;
  }

  .skills-section h2{
    margin: 0;
  }

  .skills-container {
    width: 100%;
    max-width: 900px;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .skills-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px #00000033;
  }

  .skill-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .skill-item {
    background: #FFFFFF08;
    border-radius: 24px;
    padding: 2rem;
    border: 2px solid var(--color-primary);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px #727fde26;
    transition: all 0.3s ease;
  }

  .skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px #727fde40;
  }

  .skill-item h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
  }

  /* Slider */
  .slider{
    position: absolute;
    bottom: 0%;
    right: 10%;
    width: 80%;
    height: var(--height);
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 10% 90%, transparent);
    mix-blend-mode: difference;
    opacity: 0.7;
  }

  .slider .list{
    display: flex;
    width: 100%;
    min-width: calc(var(--width)* var(--quantity));
    position: relative;
  }

  .slider .list .item{
    width: var(--width);
    height: var(--height);
    position: absolute;
    left: 100%;
    animation: autoRun 10s linear infinite;
    transition: filter 0.5s;
    animation-delay: calc( (10s / var(--quantity)) * (var(--position) - 1) - 10s)!important;
  }

  .slider .list .item img{
    width: 100%;
  }

  @keyframes autoRun{
    from{
      left: 100%;
    }
    to{
      left: calc(var(--width) * -1);
    }
  }

  .slider:hover .item{
    animation-play-state: paused!important;
    filter: grayscale(1);
  }

  .slider .item:hover{
    filter: grayscale(0);
  }

  .contact-section .social-links {
    top: 180px
  }

  /* Contact */
  .contact-section{
    height: 0;
    min-height: calc(100vh - 70px); /* Account for footer height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem 0 70px; /* Add bottom padding for footer */
    bottom: -350px;
    gap: 0%;
  }

  .contact-section h3{
    position: absolute;
    top: -20px;
    font-size: 1.5rem;
  }

    .contact-box {
      width: 100%;
      max-width: 280px;
      padding: 1.5rem;
      border-radius: 12px;
      position: relative;
      bottom: -200px;
    }

    .contact-box p {
      margin: 0.75rem 0;
      line-height: 1.5;
      text-align: left;
    }

    .contact-box p:first-child {
      margin-top: 0;
    }

  .contact-box input {
    width: 90%;
    max-width: 95%;
    margin: 0.5rem 0 1.25rem;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #B388FFFF;
    background: #FFFFFF0D;
    color: #fff;
  }

  .contact-box button {
    width: 100%;
    padding: 12px;
    margin: 1rem 0 0;
    background: linear-gradient(135deg, #727fde 0%, #4a5bcf 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 100px;
  }

  .contact-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px #727FDE66;
  }

  .contact-box button i {
    margin-right: 8px;
  }



  /* Footer */
  footer{
    display: flex;
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    justify-content: center;
    align-items: center;
    height: 70px;
    background-color: #727fde2b;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px #72a1de68;
    z-index: 999;
  }

  footer h2{
    font-size: 25px;
  }

}