html, body {
  margin: 0;
  padding: 0;
  /* This ensures you don't accidentally get a horizontal scrollbar if something goes slightly offscreen */
  overflow-x: hidden;
}


* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  color: white;
  overflow-x: hidden;
  background-color: #0c082b;
  }
  
  body {
    display: flex;
    flex-direction: column; /* Stack elements vertically by default */
  }
  
  .container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for responsive behavior */
    padding-top: 120px;
  }

  canvas {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
}

  
  main {
    flex: 1;
    margin-left: 220px; /* Leave space for aside */
    display: flex;
    flex-direction: column; /* Stack main content vertically */
    align-items: center; /* Center-align items */
  }

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 0;
  background: linear-gradient(to right, rgb(0, 0, 0), rgb(19, 40, 82));
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #355585;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.979);
  border-radius: 0 0 15px 15px;
}



.mac-window {
width: 100%; /* Dynamic width based on screen size */
max-width: 600px; /* Restrict the maximum width */
min-width: 300px; /* Allow a flexible minimum width */
height: auto; /* Allow dynamic height based on content */
position: relative;
background-color: #202430;
padding: 40px 16px;
border-radius: 5px;
box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
margin: 0 auto; /* Center align */
transition: all 0.3s ease-in-out; /* Smooth resizing */
}

/* Responsive Design */
@media (max-width: 768px) {
.mac-window {
  width: 90%; /* Occupy most of the screen width */
  padding: 20px; /* Reduce padding */
}
}

@media (max-width: 480px) {
.mac-window {
  width: 95%;
  padding: 15px;
  RIGHT: 74%;
}
}

/* Titlebar */
.mac-titlebar {
position: absolute;
top: 0;
left: 0;
right: 0;
overflow: hidden;
border-radius: 5px 5px 0 0;
padding: 6px;
background-color: rgba(32, 36, 48, 0.85); /* Slight transparency */
}

.mac-titlebar-button {
display: inline-block;
float: left;
border-radius: 50%;
width: 14px; /* Adjusted for better appearance */
height: 14px;
margin-right: 6px; /* Reduced margin */
transition: transform 0.2s; /* Smooth interaction effect */
}

.mac-titlebar-button:hover {
transform: scale(1.1); /* Subtle hover effect */
}

.mac-titlebar-button.close {
background-color: #fc635d;
}

.mac-titlebar-button.min {
background-color: #fdbe5f;
}

.mac-titlebar-button.max {
background-color: #35cc4b;
}

.mac-titlebar .title {
color: #ccc; /* Adjusted for better contrast */
font-family: sans-serif;
font-size: 12px;
position: absolute;
margin: auto;
top: 0;
left: 0;
bottom: 0;
right: 0;
width: 60%; /* Slightly wider for better visibility */
line-height: 28px;
text-align: center;
white-space: nowrap; /* Prevent text wrapping */
overflow: hidden;
text-overflow: ellipsis; /* Add ellipsis for overflow text */
}

/* Responsive Design */
@media (max-width: 768px) {
.mac-titlebar .title {
  font-size: 10px; /* Smaller font size for medium screens */
  width: 70%; /* Adjust width */
}
}

@media (max-width: 480px) {
.mac-titlebar-button {
  width: 12px; /* Smaller buttons */
  height: 12px;
}

.mac-titlebar .title {
  font-size: 9px; /* Smaller font size for small screens */
}
}

/* Console Text */
.console-text {
color: #fff;
font-family: "Lucida Console", Monaco, monospace;
line-height: 1.5;
font-size: 1em; /* Adjusted for better fit */
    margin-top: 20px;
}





.carousel-wrapper {
.carousel-wrapper {
  flex: 1; /* Allow it to grow and fill remaining space */
  min-width: 300px; /* Ensure a minimum size */
  position: relative; /* Proper positioning */
  z-index: 0; /* Keep it below #about-me */
}
}

.about-container h2 {
text-align: center;
font-size: 1.5em; /* Smaller header font size */
margin-bottom: 10px; /* Less space below the header */
}

.about-container p {
font-size: 1em; /* Reduce paragraph font size */
line-height: 1.4; /* Adjust line spacing for better readability */
margin-bottom: 10px; /* Less space between paragraphs */
}


.hero {
  display: flex;
  align-items: center;
  width: 50%;
  cursor: pointer;
}

.profile-pic {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid white;
}

h1 {
  font-size: 20px;
  color: white;
  margin-left: 10px;
}

.social-media {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.social-media a {
  margin: 0 10px;
  text-decoration: none;
  color: white;
}

.social-media img {
  width: 30px;
  height: 30px;
  vertical-align: middle;
}

button.custom-button {
  background-color: transparent;
  border: none;
  padding: 0;
}

button.custom-button a {
  position: relative;
  display: inline-block;
  padding: 15px 30px;
  border: 2px solid #fefefe;
  text-transform: uppercase;
  color: #fefefe;
  text-decoration: none;
  font-weight: 600;
  font-size: 20px;
}

button.custom-button a::before {
  content: '';
  position: absolute;
  top: 6px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% - 12px);
  background-color: #06031874;
  transition: 0.3s ease-in-out;
  transform: scaleY(1);
}

button.custom-button a:hover::before {
  transform: scaleY(0);
}

button.custom-button a::after {
  content: '';
  position: absolute;
  left: 6px;
  top: -2px;
  height: calc(100% + 4px);
  width: calc(100% - 12px);
  background-color:  #06031874;
  transition: 0.3s ease-in-out;
  transform: scaleX(1);
  transition-delay: 0.5s;
}

button.custom-button a:hover::after {
  transform: scaleX(0);
}

button.custom-button a span {
  position: relative;
  z-index: 3;
}

.container {
  display: flex;
  padding-top: 120px;
}







.hidden {
  display: none;
}

/* Default styling for larger screens remains the same */

.items {
position: absolute;
top: 35%;
left: 75%;
transform: translate(-50%, -50%);
user-select: none;
}

.items .item {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 250px;
height: 250px;
border-radius: 50%;
overflow: hidden;
transition: all 300ms ease-in-out;
z-index: -1;
opacity: 0;
border: 3px solid #ff9f00;
}

.item img {
width: 100%;
height: 100%;
object-fit: cover;
}

.item.active {
opacity: 1;
z-index: 99;
box-shadow: 0px 0px 105px -35px rgba(0, 0, 0, 0.75);
border: 3px solid #3b9502;
}

.item.prev {
z-index: 2;
opacity: 0.25;
transform: translate(-125%, -50%);
}

.item.next {
z-index: 2;
opacity: 0.25;
transform: translate(25%, -50%);
}

.items .button-container {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 275px;
z-index: 100;
}

/* Media Query for 768px */
@media (max-width: 768px) {
.items {
    top: 40%; /* Adjust position for smaller screens */
    left: 50%;
}

.items .item {
    width: 200px; /* Reduce size */
    height: 200px;
}

.item.prev, .item.next {
    transform: translate(-110%, -50%); /* Adjust spacing for smaller screens */
}

.items .button-container {
    width: 225px; /* Adjust button container width */
}
}

@media (max-width: 480px) {
.items {
    top: 31%; 
    left: 50%;
}

.items .item {
    width: 150px;
    height: 150px;
}

.item.prev {
    z-index: 1;
    opacity: 0.5;
    transform: translate(-120%, -50%); /* Increased left shift */
}

.item.next {
    z-index: 3;
    opacity: 0.5;
    transform: translate(20%, -50%); /* Increased right shift */
}
.item.prev { background: rgba(255, 0, 0, 0.2); }
.item.next { background: rgba(0, 255, 0, 0.2); }
.item.active { background: rgba(0, 0, 255, 0.2); }
.items .button-container {
    width: 175px;
}
}
.button-container .button {
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  position: relative;
  opacity: 0.75;
  transition: all 300ms ease-in-out;
}

.button-container .button:hover {
  opacity: 1;
}

.button-container .button:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 1);
  border-radius: 50%;
  z-index: -99;
}

.button-container .button:nth-child(1) {
  float: left;
}

.button-container .button:nth-child(2) {
  float: right;
}

.content {
display: flex;
flex-wrap: wrap;
justify-content: flex-start; /* Align items properly */
padding-left: 220px; /* Matches aside's width */
width: calc(100% - 220px); /* Avoid overlap with aside */
margin-top: 100px; /* Space from top elements */
z-index: 1; /* Ensure it sits on top */
}

/* CSS for category images with card styling and rounded edges */
.results {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 0;
  list-style-type: none;
  margin: 0;
}

.result {
  margin: 15px;
  flex-basis: calc(25% - 30px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.result:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.result img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  cursor: pointer;
}

/* Modal styling for expanded image */
.modal-content {
  border-radius: 15px;
  overflow: hidden;
}

.modal-body img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
}


/* Cards Section */
.cards-container {
display: flex;
flex-wrap: wrap; /* Enable wrapping */
justify-content: center; /* Center-align cards */
gap: 20px;
margin-top: 20px;
}

.card {
  position: relative;
  width: 300px;
  height: 200px;
  background-color: #f2f2f2;
  border-radius: 10px;
  overflow: hidden;
  perspective: 1000px;
  box-shadow: 0 0 0 5px #ffffff80;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.2);
}

.card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.card:hover .card__content {
  transform: translateY(0);
}

.card__title {
  margin: 0;
  font-size: 24px;
  color: #fff;
  font-weight: 700;
}

.card__description {
  margin: 10px 0 0;
  font-size: 14px;
  color: #ddd;
  line-height: 1.4;
}

/* Specific styling for images in webproject.html */
.web-project-img {
  border-color: blue; /* Change the border color */
  box-shadow: 0 4px 8px rgba(0, 0, 255, 0.5); /* Add a blue shadow */
  transform: scale(1.00); /* Initial scale */
  transition: transform 0.3s ease-in-out; /* Smooth transition */
}

.web-project-img:hover {
  transform: scale(1.1); /* Scale on hover, make it smaller than before */
}

/* Media Queries */
@media (max-width: 768px) {
.container {
  flex-direction: column;
}



.content {
    padding-left: 0; /* Remove left padding for tablets */
    width: 100%; /* Allow full width */
  
}

.cards-container {
  flex-direction: column;
  padding-top: 20px;
}

.card {
  width: 90%;
  margin: 10px 0;
}
}

@media (max-width: 480px) {
header {
  flex-direction: column;
  padding: 5px 0;
}

.hero {
  width: 40%;
  justify-content: center;
}

.social-media {
  margin: 10px 0;
}

.container {
  padding-top: 60px;
}
}

/* Flexible Layout */
.container {
display: flex;
padding-top: 120px;
}

.cards-container {
display: flex;
justify-content: center;
gap: 20px;
padding-top: 300px; /* Adjust to ensure correct positioning */
}

.card {
position: relative;
width: 300px;
height: 200px;
background-color: #f2f2f2;
border-radius: 10px;
overflow: hidden;
perspective: 1000px;
box-shadow: 0 0 0 5px #ffffff80;
transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slider {
/* Keep existing styles */
width: 30%;
overflow: hidden;
background-color: #495057;
margin: 20px auto;
border: 1px solid #ddd;
padding: 10px;
position: relative;
border: 3px solid #ff9f00;
border-radius: 5px;
}

.slide {
flex: 0 0 auto;
width: 100px; 
height: 60px;
display: flex;
justify-content: center;
align-items: center;
/* Remove margin, use gap in track instead */
}

.slide-track {
display: flex;
animation: scroll 20s linear infinite;
gap: 100px; /* Spacing between slides */
/* Ensure track is wide enough for all slides */
width: max-content;
}

@keyframes scroll {
from {
  transform: translateX(0); /* Start from initial position */
}
to {
  transform: translateX(-50%); /* Move by half the track's width */
}
}

.slide img {
max-width: 100%;
max-height: 100%;
}

/* Ensure slider does not overlap aside */
aside + .slider {
margin-left: 220px; /* Adjust to the width of the aside */
width: calc(100% - 220px); /* Adjust slider width to fit */
}

.minimal-footer {
background: linear-gradient(to right, rgb(0, 0, 0), rgb(19, 40, 82));
padding: 20px 0;
text-align: center;
}

.footer-logo {
width: 50px; /* Adjust size as needed */
height: auto;
margin: 0 10px;
transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-logo:hover {
transform: scale(1.1);
opacity: 0.8;
}

.minimal-footer a {
text-decoration: none;
}

.minimal-footer {
z-index: 1000;
position: relative;
}

/* Media Queries for Tablet Screens */
@media (max-width: 768px) {
header {
  flex-direction: column; /* Stack elements vertically */
  padding: 5px;
}

.hero {
  width: 100%;
  justify-content: center;
}

.social-media {
  margin-top: 10px; /* Add space for better layout */
}

.top-content {
  flex-direction: column; /* Stack elements vertically */
  align-items: center; /* Center align carousel and about-me */
  gap: 20px; /* Add spacing between elements */
  padding: 0 20px; /* Add padding to ensure content doesn't touch edges */
}

#about-me {
  max-width: 80%; /* Expand width for readability on smaller screens */
  margin: 20px auto; /* Center horizontally and add spacing above */
  font-size: 0.9em; /* Slightly reduce font size for smaller screens */
  text-align: center; /* Center-align the text */
  margin-top: 300px;
}

.carousel-wrapper {
  width: 100%; /* Make the carousel take full width */
  margin: 0 auto 20px; /* Center and add spacing below */
}
}

@media (min-width: 769px) {
.carousel-wrapper {
  display: inline-block; /* Inline with #about-me */
  margin-right: 20px; /* Space to the right for alignment */
}
}

/* Media Queries for Mobile Screens */
@media (max-width: 480px) {
header {
  text-align: center; /* Center-align header content */
}

.hero img {
  width: 50px; /* Scale down profile picture */
  height: 50px;
}

.card {
  width: 100%; /* Make cards take full width */
}

.social-media a {
  font-size: 12px; /* Reduce font size for links */
}



.content {
  padding-left: 100px; /* Matches aside's reduced width */
  width: calc(100% - 100px); /* Avoid overlap with further reduced aside */
}

.card {
  width: 90%; /* Adjust card size for smaller screens */
  margin: 10px auto; /* Center-align cards */
}


#about-me {
  .top-content {
    margin-top: -500px; /* Bring it next to the carousel */
    max-width: 120%; /* Slightly smaller for better alignment */
  }

  #about-me {
    margin-top: -500px; /* Bring it next to the carousel */
    max-width: 100%; /* Slightly smaller for better alignment */
  }
}

.carousel-wrapper {
  margin-top: 20px;
  margin-bottom: 20px;
}

}

/* Media Queries for Responsive Adjustments */
@media (max-width: 768px) {
.slider {
  width: calc(100% - 170px); /* Adjust based on aside's reduced width */
  margin-left: 170px;
}
}

@media (max-width: 480px) {
.slider {
  width: calc(100% - 120px); /* Adjust based on aside's reduced width */
  margin-left: 120px;
}
}

.content-wrapper {
display: flex;
flex-direction: column;
align-items: center;
gap: 20px; /* Add spacing between elements */
padding: 20px; /* Optional padding for spacing */
}

@media (max-width: 768px) {
.content-wrapper {
  gap: 15px; /* Adjust gap for smaller screens */
  padding: 10px;
}
}

/* Positioning for desktop (above 768px) */
@media (min-width: 769px) {
#about-me {
  margin-top: 160px; /* Bring it next to the carousel */
  max-width: 80%; /* Slightly smaller for better alignment */
  float: left; /* Place it beside the carousel */
}
}

.top-content {
display: flex;
align-items: flex-start; /* Align items at the top */
justify-content: space-between; /* Space between carousel and about-me */
margin-top: 120px; /* Space below header */
gap: 20px; /* Space between elements */
padding-left: 220px; /* Matches the width of the aside */
width: calc(100% - 220px); /* Ensure it stays within the content area */
transition: padding-left 0.3s ease, width 0.3s ease; /* Smooth transition */
}

/* Base: hide hamburger for desktop */
.hamburger {
  display: none;
}

/* Then inside your small-screen media query */
@media (max-width: 768px) {
  .hamburger {
    position: fixed;
    top: 20px; /* adjust as needed */
    right: 20px; /* adjust as needed */
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 60px;
    height: 30px;
    background-color: transparent;

    /* remove default borders/outlines if any */
    border: none;
    outline: none;
    box-shadow: none;

    /* disable the iOS tap highlight, if you see any highlight on tap */
    -webkit-tap-highlight-color: transparent;
  }

  .hamburger span {
    display: block;
    width: 100%;          /* wide enough to look like a line */
    height: 4px;         /* ~3–5px is good thickness */
    background-color: white;
    margin: 2px 0;
    border-radius: 0px;  /* keep small or 0 for crisp lines */
    border: none;
    outline: none;
    box-shadow: none;
  }
}


/* Transform hamburger into a cross when active */
.hamburger.active span:nth-child(1) {
transform: translateY(10px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
opacity: 0;
}

.hamburger.active span:nth-child(3) {
transform: translateY(-10px) rotate(-45deg);
}

/* Nav menu styles for mobile */
.nav-menu {
display: flex; /* Show by default for larger screens */
flex-direction: row; /* Align items in a row for larger screens */
align-items: center;
justify-content: flex-end;
gap: 15px;
position: relative; /* Keep it inline with the header */
background-color: transparent;
width: auto;
height: auto;
}

.nav-menu.active {
display: flex; /* Show when active */
}

/* Media query for small screens */
@media (max-width: 768px) {
.hamburger {
  display: flex; /* Show hamburger button */
}

.nav-menu {
  display: none; /* Hidden by default on smaller screens */
  flex-direction: column; /* Stack items vertically for mobile */
  align-items: center;
  background-color: #0c082b; /* Set mobile menu background */
  position: fixed; /* Cover the screen when active */
  top: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  padding-top: 60px;
}

.social-media {
  flex-direction: column;
  margin-right: 0;
}

.hero {
  justify-content: center;
  flex-direction: column;
}

header {
  flex-direction: column;
  align-items: flex-start;
  padding: 10px;
}
}


