@import url(fontawesome-all.min.css);
@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,600,400italic,600italic|Roboto+Slab:400,700");

/* Universal Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  vertical-align: baseline;
}

/* Set default styles for modern elements */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

/* Body Defaults */
body {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  min-width: 370px;
}

/* Normalize input, select, and textarea appearance */
input, select, textarea {
  appearance: none;
}


/* Set a minimum width for small screens */
@media screen and (max-width: 480px) {
  html, body {
    min-width: 320px;
  }
}

/* Type */
/* Define font sizes for easy scaling */
:root {
  --base-font-size: 13pt;
  --font-color: white;
  --heading-color: white;
  --primary-color: #00FDFF;
  --border-color: #8A52FE;
  --code-bg: #00FDFF;
}

/* Base styles */
body, input, select, textarea {
  color: var(--font-color);
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: var(--base-font-size);
  font-weight: 100;
  line-height: 1.65;
}

/* Responsive font size adjustments */
@media screen and (max-width: 1680px) { :root { --base-font-size: 11pt; } }
@media screen and (max-width: 1280px) { :root { --base-font-size: 10pt; } }
@media screen and (max-width: 360px)  { :root { --base-font-size: 9pt; } }

/* Links */
a {
  transition: color 0.2s ease-in-out, border-bottom-color 0.2s ease-in-out;
  border-bottom: dotted 1px;
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  border-bottom-color: var(--primary-color);
  color: var(--primary-color) !important;
}

a:hover strong {
  color: inherit;
}

/* Strong and bold text */
strong, b {
  color: var(--heading-color);
  font-weight: 600;
}

/* Emphasized text */
em, i {
  font-style: italic;
}

/* Paragraphs */
p {
  margin-bottom: 2em;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 1em;
}

h1 { font-size: 4em; margin-bottom: 0.5em; line-height: 1.3; }
h2 { font-size: 1.75em; }
h3 { font-size: 1.25em; }
h4 { font-size: 1.1em; }
h5 { font-size: 0.9em; }
h6 { font-size: 0.7em; }

/* Responsive heading sizes */
@media screen and (max-width: 1680px) { h1 { font-size: 3.5em; } }
@media screen and (max-width: 980px)  { h1 { font-size: 3.25em; } }
@media screen and (max-width: 736px)  { 
  h1 { font-size: 2em; line-height: 1.4; } 
  h2 { font-size: 1.5em; } 
}

/* Headings inside links */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 0;
}

/* Superscript and Subscript */
sub, sup {
  font-size: 0.8em;
  position: relative;
}

sub { top: 0.5em; }
sup { top: -0.5em; }

/* Blockquotes */
blockquote {
  font-style: italic;
  margin-bottom: 2em;
  padding: 0.5em 0 0.5em 2em;
}

/* Code blocks */
code {
  background: var(--code-bg);
  border-radius: 0.375em;
  font-family: "Courier New", monospace;
  font-size: 0.9em;
  margin: 0 0.25em;
  padding: 0.25em 0.65em;
}

/* Preformatted text */
pre {
  -webkit-overflow-scrolling: touch;
  font-family: "Courier New", monospace;
  font-size: 0.9em;
  margin-bottom: 2em;
}

pre code {
  display: block;
  line-height: 1.75;
  padding: 1em 1.5em;
  overflow-x: auto;
}

/* Horizontal rule */
hr {
  border: 0;
  margin: 2em 0;
}

hr.major {
  margin: 3em 0;
}

/* Text alignment */
.align-left   { text-align: left; }
.align-center { text-align: center; }
.align-right  { text-align: right; }

/* Responsive adjustments */
@media screen and (max-width: 1680px) {
  .row > .imp-xlarge { order: -1; }
  .row > .col-1-xlarge { width: var(--col-1); }
  .row > .off-1-xlarge { margin-left: var(--col-1); }
  /* Repeat for other column classes with `-xlarge` suffix */
}

@media screen and (max-width: 1280px) {
  .row > .imp-large { order: -1; }
  .row > .col-1-large { width: var(--col-1); }
  .row > .off-1-large { margin-left: var(--col-1); }
  /* Repeat for other column classes with `-large` suffix */
}

@media screen and (max-width: 980px) {
  .row > .imp-medium { order: -1; }
  .row > .col-1-medium { width: var(--col-1); }
  .row > .off-1-medium { margin-left: var(--col-1); }
  /* Repeat for other column classes with `-medium` suffix */
}

@media screen and (max-width: 736px) {
  .row > .imp-small { order: -1; }
  .row > .col-1-small { width: var(--col-1); }
  .row > .off-1-small { margin-left: var(--col-1); }
  /* Repeat for other column classes with `-small` suffix */
}

@media screen and (max-width: 480px) {
  .row > .imp-xsmall { order: -1; }
  .row > .col-1-xsmall { width: var(--col-1); }
  .row > .off-1-xsmall { margin-left: var(--col-1); }
  /* Repeat for other column classes with `-xsmall` suffix */
}

/* Section/Article */
/* Center alignment for special sections and articles */
.special {
  text-align: center;
}

/* Navbar container */
/* Basic nav bar styling */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #002244;  /* Match your main background color */
  position: relative;
}

/* Unordered lists for left/right half links */
.navbar ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Regular navigation links */
.nav-links {
  display: flex;
  list-style: none;
}

/* Individual list items */
.navbar li {
  margin: 0 10px;
}

/* Linked text styling */
.navbar a {
  text-decoration: none;
  color: white;  /* Or any desired base color */
  transition: color 0.2s ease-in-out;
  border-bottom: none;
}

/* Hover effect for links */
.navbar a:hover {
  color: var(--primary-color);  /* Uses your site's primary color variable */
}

/* Default: Desktop Menu Visible */
.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Desktop: show desktop menu */
.desktop-menu {
  display: flex;
  gap: 20px;
}
.nav-left,
.nav-right,
.mobile-menu {
  display: none;
}

/* Mobile: when screen is 900px or less */
@media screen and (max-width: 900px) {
  .navbar {
    justify-content: space-between;
    padding: 10px 20px;
  }
  /* Hide the desktop menu */
  .desktop-menu {
    display: none;
  }
  /* Show burger and Instagram icon */
  .nav-left,
  .nav-right {
    display: block;
    width: 10%;
    text-align: center;
  }
  /* Center the logo */
  .nav-center {
    width: 80%;
    text-align: center;
  }
  /* Make the logo image responsive */
  .logo img {
    width: 40vw;  /* Adjust as needed */
    height: auto;
  }
  /* Style the burger and Instagram icons */
  .burger,
  .instagram {
    font-size: 6vw;  /* Scales relative to viewport width; adjust as needed */
    line-height: 100px; /* Should roughly match the logo height */
  }  
}




/* Burger and Instagram icons: Scale as needed */
.burger,
.instagram {
  font-size: 6vw;  /* Adjust this value as needed */
}

/* Logo styling in mobile view */
.mobile-controls .logo img {
  width: 45vw; /* Adjust to match your design */
  height: auto;
}

/* Desktop view: For screens 901px or wider */
@media screen and (min-width: 901px) {
  /* Hide mobile elements */
  .mobile-controls,
  .mobile-menu {
    display: none;
  }
  
  /* Show desktop menu */
  .desktop-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;   /* Removed horizontal padding */
    width: 100%;       /* Use full width of the parent container */
  }
  
  /* Ensure left and right groups take up equal space */
  .nav-left-desktop,
  .nav-right-desktop {
    display: flex;
    flex: 1;
  }
  
  /* Each link expands equally */
  .nav-left-desktop a,
  .nav-right-desktop a {
    flex: 1;
    text-align: center; /* centers the text */
    white-space: nowrap; /* prevents the text from wrapping */
  }
  
  /* Center the logo, also taking up equal space */
  .nav-center-desktop {
    flex: 1;
    text-align: center;
  }
  
  /* Optional: Adjust logo size for desktop */
  .nav-center-desktop .logo img {
    height: 100px; /* Or your preferred size */
    width: auto;
  }

  .nav-left-desktop a:hover,
  .nav-right-desktop a:hover {
    color: var(--primary-color);
  }

  .nav-left-desktop a,
  .nav-right-desktop a {
    flex: 1;
    text-align: center;
    white-space: nowrap;
    transition: color 0.3s ease;
  }
}

/* Logo styling */
/* Default logo styling */
.logo img {
  height: 95px;             /* or your desired height */
  transition: transform 0.3s ease;
  transform: scale(1);
}

/* For smaller screens: scale down the logo */
@media (max-width: 900px) {
  .navbar .mobile-controls .logo img {
    transform: scale(0.7);  /* adjust the scale factor as needed */
  }
}

/* For screens 900px or smaller, scale logo with viewport width */
@media (max-width: 900px) {
  /* Make sure the mobile controls container uses Flexbox */
  .navbar .mobile-controls {
    display: flex;
    justify-content: space-between; /* Evenly spaces the three items */
    align-items: center;           /* Vertically centers them */
    width: 100%;
    padding: 0 1rem;               /* Optional: adds horizontal padding */
  }

  .navbar .mobile-controls a:hover {
    color: var(--primary-color);              /* Optional: adds horizontal padding */
  }

  /* By default, each link inside mobile-controls takes equal space */
  .navbar .mobile-controls a {
    flex: 1;
    text-align: center;            /* Centers content by default */
  }

  /* Override the alignment for burger and instagram */
  .navbar .mobile-controls a.burger {
    text-align: left;
  }
  
  .navbar .mobile-controls a.instagram {
    text-align: right;
  }
}

/* Icon */
.icon {
  text-decoration: none;
  position: relative;
}

.icon:before {
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  text-transform: none !important;
  font-family: 'Font Awesome 5 Free';
  font-weight: 400;
  line-height: inherit;
  z-index: 1; /* Ensures the icon stays above the outline */
}

.icon > .label {
  display: none;
}

.icon.solid:before {
  font-weight: 900;
}

.icon.brands:before {
  font-family: 'Font Awesome 5 Brands';
}

/* Outline Effect */
.icon:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: calc(100% + 10px);
  height: calc(100% + 10px);
  border: 1px solid rgba(0, 0, 0, 0.2); /* Adjust color and opacity as needed */
  border-radius: 0.25em; /* Slight rounding to mimic a diamond shape */
  z-index: 0;
  pointer-events: none; /* Prevents interference with clicks */
}

/* Image */
.image {
  border-radius: 0.375em;
  border: none;
  display: block;
}

.image img {
  border-radius: inherit;
  display: block;
  width: 100%;
}

/* Floating Images */
.image.left,
.image.right {
  max-width: 40%;
  top: 0.25em;
}

.image.left {
  float: left;
  padding: 0 1.5em 1em 0;
}

.image.right {
  float: right;
  padding: 0 0 1em 1.5em;
}

/* Full-Width Images */
.image.fit,
.image.main {
  display: block;
  width: 100%;
}

.image.fit {
  margin-bottom: 2em;
}

.image.main {
  margin-bottom: 3em;
}

/* Image Links with Hover Effect */
a.image {
  overflow: hidden;
}

a.image img {
  transition: transform 0.2s ease;
}

a.image:hover img {
  transform: scale(1.075);
}

/* List */
/* Ordered and Unordered Lists */
ol, ul, dl {
  margin-bottom: 2em;
}

ol {
  list-style: decimal;
  padding-left: 1.25em;
}

ul {
  list-style: disc;
  padding-left: 1em;
}

ol li, ul li {
  padding-left: 0.25em;
}

ul li {
  padding-left: 0.5em;
}

/* Alternative Unordered List */
ul.alt {
  list-style: none;
}

ul.alt li {
  border-top: 1px solid rgba(210, 215, 217, 0.75);
  padding: 0.5em 0;
}

ul.alt li:first-child {
  border-top: none;
  padding-top: 0;
}

/* Actions */
ul.actions {
  display: flex;
  cursor: default;
  list-style: none;
  margin-left: -1em;
  padding-left: 0;
}

ul.actions li {
  padding-left: 1em;
  vertical-align: middle;
}

ul.actions.special {
  justify-content: center;
  width: 100%;
  margin-left: 0;
}

ul.actions.special li:first-child {
  padding-left: 0;
}

ul.actions.stacked {
  flex-direction: column;
  margin-left: 0;
}

ul.actions.stacked li {
  padding-top: 1.3em;
}

ul.actions.stacked li:first-child {
  padding-top: 0;
}

ul.actions.fit {
  width: calc(100% + 1em);
}

ul.actions.fit li {
  flex-grow: 1;
  flex-shrink: 1;
  width: 100%;
}

ul.actions.fit li > * {
  width: 100%;
}

ul.actions.fit.stacked {
  width: 100%;
}

/* Icons */
ul.icons {
  list-style: none;
  padding-left: 0;
}

ul.icons li {
  display: inline-block;
  padding-right: 1em;
}

ul.icons li:last-child {
  padding-right: 0;
}

ul.icons li .icon {
  color: inherit;
  font-size: 1.25em;
}


/* Button */
/* General Button Styles */
button,
.button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
  appearance: none;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  background-color: transparent;
  border: 0;
  border-radius: 0.375em;
  box-shadow: inset 0 0 0 2px #14FDFF;
  color: #14FDFF !important;
  cursor: pointer;
  display: inline-block;
  font-family: "Roboto Slab", serif;
  font-size: 0.8em;
  font-weight: 700;
  height: 3.5em;
  line-height: 3.5em;
  letter-spacing: 0.075em;
  padding: 0 2.25em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Hover and Active States */
button:hover,
.button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover {
  background-color: transparent !important;
  color: #8954FD !important; /* new hover text color */
  box-shadow: inset 0 0 0 2px #8954FD !important; /* new border color */
}


/* Wrapper */
#wrapper {
  display: flex;
  flex-direction: row-reverse;
  min-height: 100vh;
}

/* Main */
#main {
  flex-grow: 1;
  flex-shrink: 1;
  width: 100%;
  background-color: #002244
}

#main > .inner {
  padding: 0 6em 0.1em;
  margin: 0 auto;
  max-width: 110em;
}

#main > .inner > section {
  padding: 6em 0 4em;
}

#main > .inner > section:first-of-type {
  border-top: 0 !important;
}

/* Override Instagram icon size in the footer */
#footer .icons li a.instagram {
  font-size: 42px !important;
  line-height: normal !important;
}

#footer .icons li a.instagram i {
  font-size: inherit !important;
}

#footer .icons li a.instagram i:hover {
  color: #8954FD;
}

/* Responsive Design */
@media screen and (max-width: 1680px) {
  #main > .inner {
    padding: 0 5em 0.1em;
  }
  #main > .inner > section {
    padding: 5em 0 3em;
  }
}

@media screen and (max-width: 1280px) {
  #main > .inner {
    padding: 0 4em 0.1em;
  }
  #main > .inner > section {
    padding: 4em 0 2em;
  }
}

@media screen and (max-width: 736px) {
  #main > .inner {
    padding: 0 2em 0.1em;
  }
  #main > .inner > section {
    padding: 3em 0 1em;
  }
}

/* Banner */
#banner {
  margin-top: -3%;
}

#banner .image {
  width: 100%;
}


#banner .actions {
  justify-content: center;
  padding-top: 50px;
  padding-right: 30px;
}

@media screen and (min-width: 1400px) {
  #banner .image {
    width: 30%;      /* Or a smaller value than your current setting */
    margin-left: 20%; /* Center it horizontally if needed */
  }
}

@media screen and (min-width: 1100px) {
  #banner .image {
    width: 80%; /* Adjust the negative value as needed */
    margin-left: 10%;
  }

  #banner .actions {
    justify-content: center;
    padding-top: 50px;
    padding-right: 30px;
  }
}

@media screen and (max-width: 1300px) {
  #banner .actions {
    justify-content: center;
    padding-top: 50px;
    padding-right: 30px;
  }
}

@media screen and (max-width: 800px) {
  #banner .image {
    margin-top: -20px; /* Adjust the negative value as needed */
  }
}

@media screen and (max-width: 600px) {
  #banner .actions {
    justify-content: center;
    padding-right: 10px;
  }
}

@media screen and (max-width: 500px) {
  #banner .image {
    margin-top: -35px; /* Adjust the negative value as needed */
  }
}

#banner .actions {
  justify-content: center;
  padding-top: 50px;
}

@media screen and (min-width: 1400px) {
  #banner .image {
    width: 50% !important;
    margin-left: 25% !important;
  }
}

/*Icon*/
.features .icon i {
  font-size: 2.5em; /* Adjust size */
  color: white; /* Adjust color */
  padding-top: 1.54em;
}

@media screen and (max-width: 980px) {
  .features .icon i {
    font-size: 2.5em; /* Adjust size */
    color: white; /* Adjust color */
    padding-top: 1.15em;
  }
}

@media screen and (max-width: 480px) {
  .features .icon i {
    font-size: 1.5em; /* Adjust size */
    color: white; /* Adjust color */
    padding-top: 1.5em;
  }

  #footer .icons {
    padding: 2em .5em 0 0;
  }
}

 /* Footer */
#footer .copyright {
  color: white;
  font-size: 0.9em;
  text-align: center;
}
  
#footer .copyright a {
    color: inherit; 
}

#footer .icons {
  text-align: center;
}

#footer .icons{
  padding-right: .5em;
}

#footer .copyright{
  padding-right: .5em;
}
#footer .creator{
  border-bottom: none;
}

 /* Projects */
#project {
  margin-top: -6%;
}

#project .skills-button {
  text-align: center;
  list-style: none;
  padding-top: 2em;
}

#project .image {
  width: 40%;
  margin: 0 auto;
}

#project h3 {
  padding-top: 10px;
}

/* Header & Footer Icons*/
#header .icon:after,
#footer .icon:after {
  border: none !important;
}

#header .icons a,
#footer .icons a {
  border-bottom: none !important;
  text-decoration: none !important;
}


 /* More Responsive Adjustments */
/*Initially hide sections */
.hidden {
  opacity: 0;
  transform: translateY(30px); /* Move sections slightly down */
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* When the section is visible */
.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Center Project Buttons */
#project .posts article .actions {
  display: flex;
  justify-content: center;
  margin-top: 1em; /* Adjusts spacing */
  width: 100%; /* Ensures it takes full width for centering */
}


/* Mobile Browser Adjustments */
@media screen and (max-width: 480px) {
  #project .skills-button {
    padding-right: .85em;
  }

  #footer .icons{
    padding-right: 1.5em;
  }

  #footer .copyright{
    padding-right: .5em;
  }
}

@media screen and (max-width: 390px) {
  #project .skills-button {
    padding-right: .85em;
  }

  #footer .icons{
    padding-right: 1.5em;
  }

  #footer .copyright{
    padding-right: .5em;
  }
}

/*Carousel Stuff */
/* Container that hides overflow (only one project visible) */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

/* Flex container for all projects */
.carousel-container {
  display: flex;
  transition: transform 0.5s ease;
}

/* Each project takes up the full width of the container */
.carousel-container article {
  min-width: 100%;
  box-sizing: border-box;
  text-align: center;
  /* (Optional: adjust padding/margins if needed) */
}

.carousel-container article .actions {
  display: flex;
  justify-content: center;
}

.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5); /* semi-transparent background */
  color: white;
  border: none;
  padding: 0.5em 1em;
  cursor: pointer;
  z-index: 10;
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.skills-button .button.big {
  margin-top: -5em !important;
    /* Adjust this value as needed */
}

.carousel-prev,
.carousel-next {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: none;
  border: none;
  box-shadow: none;
  outline: none;
  padding: 0;
  position: fixed;
  top: 40%;
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: none !important;
  color: #8954FD !important;
  box-shadow: none !important;
  border: 1px solid #002244 !important; /* Main background color */
}

/* Optional: remove focus outlines on hover/focus */
.carousel-prev:focus,
.carousel-next:focus {
  outline: none;
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

@media screen and (max-width: 610px) {
  .carousel-prev,
  .carousel-next {
    top: 35%;  /* Adjust this value to move the arrows further up */
  }
}

@media screen and (max-width: 478px) {
  .carousel-prev,
  .carousel-next {
    top: 33%;  /* Adjust this value to move the arrows further up */
  }
}

@media screen and (max-width: 381px) {
  .carousel-prev,
  .carousel-next {
    top: 31%;  /* Adjust this value to move the arrows further up */
  }
}

/*Concerts Carousel*/
/* Concerts Carousel: Set each article to span 80% width */
#concerts .carousel-container article actions {
  display: flex;
  justify-content: center;
}

/* Override carousel arrows for the concerts section */
#concerts .concert-carousel .carousel-prev,
#concerts .concert-carousel .carousel-next {
  position: absolute !important; /* ensure they're positioned relative to the carousel wrapper */
  top: 25%;
  transform: translateY(-50%);
}

#concerts .carousel-container img {
  width: 75%;
  display: block; /* Optional: removes inline spacing and centers if margin auto is added */
  margin: 0 auto; /* Center the image horizontally */
}

#concerts .carousel-container .button {
  position: relative;
  top: 20px; /* Adjust the value as needed */
}

/*IG Feed*/
#insta-feed {
  display: flex;
  justify-content: space-between; /* Evenly spaces the items */
}
#insta-feed .post {
  width: 32%; /* Adjust width to allow spacing */
}


/* Underground Events Grid */
/* New grid container for project articles */
#project .grid-container {
  display: grid;
}

/* Six columns on medium and larger screens */
@media screen and (min-width: 768px) {
  #project .grid-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Single column on small screens */
@media screen and (max-width: 980px) {
  /* Change the grid to display two equal columns */
  #project .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Optionally, decrease the size of the image containers */
  #project .grid-container article .image {
    width: 90%; /* Adjust percentage as needed */
    margin: 0 auto;
  }
}

@media screen and (max-width: 600px) {
  /* Switch grid to one column */
  #project .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Constrain the width of the image container */
  #project .grid-container article .image {
    width: 300px;  /* Or any fixed value / percentage you prefer */
    margin: 0 auto;
  }
  
  /* Ensure the image scales with its container */
  #project .grid-container article .image img {
    width: 100%;
    height: auto;
  }
}

#project .grid-container {
  display: grid;
  gap: 25px; /* Ensures a minimum gap of 50px between articles */
  
}

/* Set a fixed size for each article image container */
#project .grid-container article .image {
  height: auto;   /* Adjust height as needed */
  width: auto;
  overflow: hidden;  /* Hides any part of the image that exceeds the container */
  margin: 0 auto;    /* Optional: centers the container within the article */
}

/* Ensure the image fills the container uniformly */
#project .grid-container article .image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Scales the image while preserving aspect ratio; crops if necessary */
}

/* Center the header and other text within each article */
#project .grid-container article {
  text-align: center;
}

/* Center the actions buttons beneath each article */
#project .grid-container article .actions {
  display: flex;
  justify-content: center;
  margin-top: 1em;
}

#project .grid-container article .actions li a.button {
  width: 194px; /* Set a fixed width; adjust as needed */
  text-align: center;
}

/* Adjust icons in the project section */
#project .icons li a {
  font-size: 25px !important;  /* Makes the icons very small; adjust as needed */
  border-bottom: none !important; /* Removes the underline/bottom border */
  text-decoration: none !important;
}

#project .icons li a i {
  font-size: inherit !important; /* Ensures the icon inherits the set font-size */
}

/* Hover effect to match footer icons */
#project .icons li a:hover i {
  color: #8954FD !important; /* Changes the icon color on hover */
}

#project .grid-container article .actions li a.button {
  font-size: 12px !important;
}

/* Move icons up closer to the article buttons */
#project .grid-container article .icons {
  margin-top: -20px; /* Adjust this value as needed */
}

@media screen and (max-width: 600px) {
  /* Ensure scaling starts from the top center */
  #wrapper {
    transform-origin: top center;
  }
  
  /* Make article images responsive */
  #project .grid-container article .image {
    width: 80vw;   /* Use 80% of the viewport width */
    height: auto;  /* Allow height to adjust automatically */
    margin: 0 auto;  /* Center the image container */
  }
  
  /* Adjust article headers (h3) */
  #project .grid-container article h3 {
    font-size: 1.75em;  /* Reduce the size; adjust as needed */
    margin: 0.5em 0;   /* Add some vertical spacing */
    text-align: center;  /* Ensure header text is centered */
  }
  
  /* Update buttons to be fluid and centered */
  #project .grid-container article .actions li a.button {
    width: auto;            /* Remove fixed width */
    padding: 0.5em 1em;      /* Adjust padding for smaller screens */
    font-size: 0.8em;       /* Scale the font size down */
  }

  button,
.button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
  display: flex;
  align-items: center;    /* Vertically centers the content */
  justify-content: center; /* Horizontally centers the content */
  height: 3.5em;
  padding: 0 2.25em;
  /* You can remove the line-height property if using flexbox */
}
}

#project + #project {
  margin-top: 3em; /* Adjust the value as needed */
}

#project .carousel-container .image {
  width: 50%;
  margin: 0 auto;
}

@media screen and (max-width: 600px) {
  .skills-button .button.big {
    width: 160px;       /* Set a fixed width */
    font-size: 0.8em;   /* Keep the same font size */
    margin: 0 auto;
    padding-left: 2em;
  }

  .skills-button {
    margin-top: 15px;
  }
}

@media screen and (max-width: 480px) {
  .skills-button .button.big {
    width: 160px;       /* Set a fixed width */
    font-size: 0.8em;   /* Keep the same font size */
    margin: 0 auto;
    padding-left: 2em;
  }

  .skills-button {
    margin-top: 15px;
    padding-left: 12px;
  }
}

@media screen and (max-width: 360px) {
  .skills-button .button.big {
    width: 143px;       /* Set a fixed width */
    font-size: 0.8em;   /* Keep the same font size */
    margin: 0 auto;
    padding-left: 2em;
  }

  .skills-button {
    margin-top: 15px;
    padding-left: 10px;
  }
}



@media screen and (max-width: 600px) {
  #project .grid-container article .image {
    width: 40vw;  
    margin: 0 auto;
  }
}