:root {
  /* Colors */
  --bg-white: #f7f5f2;
  --text-grey: #40464e;
  --text-white: #e0d9cd;
  --main-color1: #2374bf;
  --color2: #BF3722;
  --color3: #b9a35f;

  /* Fonts */
  --ff-head: "opensans-bold", sans-serif;
  --ff-text: "opensans-regular", sans-serif;

  /* Font Sizes and Line Heights */
  --h1-size: 8rem;
  --h2-size: 3.5rem;
  --h3-size: 2.5rem;
  --h4-size: 1.5rem;
  --big-size: 1.5rem;
  --p-size: 1.2rem;
  --small-size: 0.75rem;

  /* Line Heights */
  --lh-1: 1em;
  --lh-1-2: 1.2em;
  --lh-1-6: 1.6em;
  --lh-2: 2em;
  --lh-1-8: 1.8em;

  /* UI Font Sizes */
  --h1ui-size: 3rem;
  --h2ui-size: 2.25rem;
  --h3ui-size: 1.5rem;
  --h4ui-size: 1.12rem;
  --bigui-size: 1.25rem;
  --pui-size: 1rem;
  --smallui-size: 0.75rem;

  /* Font Styles */
  --h1: bold var(--h1-size) / var(--lh-1) var(--ff-head);
  --h2: bold var(--h2-size) / var(--lh-1-2) var(--ff-head);
  --h3: bold var(--h3-size) / var(--lh-1-2) var(--ff-head);
  --h4: bold var(--h4-size) / var(--lh-1-6) var(--ff-head);
  --big: var(--big-size) / var(--lh-1-6) var(--ff-text);
  --p: var(--p-size) / var(--lh-1-6) var(--ff-text);
  --small: var(--small-size) / var(--lh-2) var(--ff-text);

  /* UI Font Styles */
  --h1ui: bold var(--h1ui-size) / var(--lh-1-2) var(--ff-head);
  --h2ui: bold var(--h2ui-size) / var(--lh-1-2) var(--ff-head);
  --h3ui: bold var(--h3ui-size) / var(--lh-1-2) var(--ff-head);
  --h4ui: bold var(--h4ui-size) / var(--lh-1-6) var(--ff-head);
  --bigui: var(--bigui-size) / var(--lh-1-6) var(--ff-text);
  --pui: var(--pui-size) / var(--lh-1-6) var(--ff-text);
  --smallui: var(--smallui-size) / var(--lh-1-8) var(--ff-text);
}

/* Layout */
body {
  background: var(--bg-white);
  margin: 0;
  font: var(--p);
  color: var(--text-grey);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

header {
  position: relative;
  height: 100vh;
  background: var(--text-grey)
    url("../images/matt-benson-rvfm_b1C6lc-unsplash.jpg") no-repeat top/cover;
  text-align: center;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

header:before {
  content: "";
  display: inline-block;
  height: 100%;
}

header .banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 15px;
  text-align: center;
}

header .banner-text {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1600px; /* Increased from 1200px */
  margin: 0 auto;
}

header .banner-text h1 {
  font-size: 8rem !important; /* Force override any inherited sizes */
  font-family: "opensans-bold", sans-serif;
  font-weight: bold;
  line-height: 1.2;
  color: #fff;
  margin: 0 auto 18px auto;
  text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #1b1b32;
  animation: typing 4s steps(22, end), blink 0.6s step-end infinite;
}

/* Adjust animation width for larger text */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%; /* Use percentage instead of ch units */
  }
}

/* Cursor blinking keyframes */
@keyframes blink {
  50% {
    border-color: transparent;
  }
}

header .banner-text h3 {
  font-size: 2.5rem !important;
  font-family: "opensans-bold", sans-serif;
  font-weight: normal;
  line-height: 1.4;
  color: #f7f5f2;
  margin: 0 2vw 5px 2vw; /* Reduced side margins */
  text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.8);
  width: 96vw; /* Almost full viewport width */
  text-align: center;
  padding: 0;
  white-space: normal; /* Allow natural breaking */
  max-width: 1800px; /* Maximum width for very large screens */
}

header .banner-text h3 span {
  color: #fff !important;
  font-weight: bold; /* Keep bold style if desired */
  text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.8); /* Match parent text shadow */
}

header .banner-text h3 span,
header .banner-text h3 a {
  color: var(--text-white);
}

header .banner-text hr {
  width: 75%;
  margin: 18px auto 24px auto;
  border: 1px solid rgba(255, 255, 255, 0.75);
}

/* Header social links */
header .social {
  margin: 24px 0;
  font-size: 4rem; /* Slightly increased font size */
  text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.8);
}
header .social li {
  display: inline-block;
  margin: 0 15px;
}
header .social li a {
  color: #fff;
  transition: color 0.3s ease-in-out;
}
header .social li a:hover {
  color: var(--main-color1);
}

/* scrolldown link */
header .scrolldown a {
  position: absolute;
  bottom: 30px;
  left: 50%;
  margin-left: -21px; /* Adjusted to center the icon */
  color: #fff;
  display: block;
  height: 48px; /* Slightly increased size */
  width: 48px; /* Slightly increased size */
  font-size: 48px; /* Slightly increased size */
  line-height: 48px; /* Slightly increased size */
  color: #fff;
  border-radius: 100%;
  text-align: center; /* Ensure the icon is centered */
  background: rgba(
    0,
    0,
    0,
    0.5
  ); /* Optional: Add a background for better visibility */

  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

header .scrolldown a:hover {
  color: var(--main-color1);
}

section {
  padding: 80px 0;
}

/* Consistent spacing for rows */
.row {
  margin-bottom: 60px;
  padding: 0 30px;
}

/* Loading states and animations */
.loading {
  position: relative;
  min-height: 200px;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--main-color1);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Lazy loading image styles */
.lazy-image {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.lazy-image.loaded {
  opacity: 1;
}

/* Skeleton loading effect */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* primary navigation
--------------------------------------------------------------------- */
#nav-wrap ul,
#nav-wrap li,
#nav-wrap a {
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
}

/* nav-wrap */
#nav-wrap {
  font: var(--p);
  font-weight: bold;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin: 0 auto;
  z-index: 100;
  position: fixed;
  left: 0;
  top: 0;
}
.opaque {
  background-color: #333;
}

/* hide toggle button */
#nav-wrap > a.mobile-btn {
  display: none;
}

ul#nav {
  min-height: 42px;
  width: auto;

  /* center align the menu */
  text-align: center;
}
ul#nav li {
  position: relative;
  list-style: none;
  height: 42px;
  display: inline-block;
}

/* Links */
ul#nav li a {
  /* 8px padding top + 8px padding bottom + 32px line-height = 48px */

  display: inline-block;
  padding: 8px 13px;
  line-height: 32px;
  text-decoration: none;
  text-align: left;
  color: #fff;

  -webkit-transition: color 0.2s ease-in-out;
  -moz-transition: color 0.2s ease-in-out;
  -o-transition: color 0.2s ease-in-out;
  -ms-transition: color 0.2s ease-in-out;
  transition: color 0.2s ease-in-out;
}

ul#nav li a:active {
  background-color: transparent !important;
}
ul#nav li.current a {
  color: var(--main-color1);
}

@media only screen and (max-width: 767px) {
    /* Hamburger menu color */
    #nav-wrap .mobile-btn {
        color: var(--main-color1);
    }

    /* Scale down heading text */
    header .banner-text h1 {
        font-size: 3rem !important; /* Adjusted size */
        word-wrap: break-word; /* Ensure text wraps within the screen */
        text-align: left; /* Left-align text */
    }
    header .banner-text h3 {
        font-size: 1.5rem !important; /* Adjusted size */
        text-align: left; /* Left-align text */
    }

    /* Ensure profile picture is visible and centered */
    #about .profile-pic {
        display: block;
        width: 80%; /* Adjust width for better visibility */
        height: auto;
        margin: 0 auto 20px auto; /* Center and add margin */
        position: relative; /* Ensure visibility */
        z-index: 1; /* Adjust z-index if necessary */
    }
    #about .contact-details, #about .download {
        width: 100%; /* Full width */
        text-align: center; /* Center text */
    }

    /* Fix email form box overlapping contact details */
    #contact .row {
        flex-direction: column; /* Stack columns */
    }
    #contact .six.columns {
        width: 100%; /* Full width */
        margin-bottom: 20px; /* Add margin */
    }

    /* Ensure header does not go off the page */
    header {
        overflow-x: hidden;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
    /* Adjust banner text for iPad */
    header .banner-text h1 {
        font-size: 4rem !important;
        text-align: center;
    }
    
    header .banner-text h3 {
        font-size: 1.8rem !important;
        text-align: center;
    }

    /* Profile section adjustments */
    #about .profile-pic {
        width: 60%;
        margin: 0 auto 30px auto;
    }

    /* Contact details layout */
    #about .contact-details, 
    #about .download {
        width: 90%;
        margin: 0 auto;
    }

    /* Navigation adjustments */
    ul#nav {
        padding: 0 20px;
    }
    
    ul#nav li a {
        padding: 12px 15px;
    }
}

/* Show the navigation menu when the hamburger menu is clicked */
#nav-wrap ul.show {
    display: block;
}

/* ------------------------------------------------------------------ */
/* c. About Section
/* ------------------------------------------------------------------ */

#about {
  padding: 90px 0;
  overflow: hidden;
  background: var(--text-grey);
  color: var(--text-white);
}

#about a,
#about a:visited {
  color: #fff;
}
#about a:hover,
#about a:focus {
  color: var(--main-color1);
}

#about h2 {
  font: var(--h2);
  color: #fff;
  margin-bottom: 12px;
}
#about p {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--text-white);
}
#about strong {
  font-weight: bold;
}

#about .profile-pic {
  border-radius: 15px;
  box-shadow: var(--shadow);
}

#about .contact-details h2 {
  font: var(--h3); /* Adjusted font size */
  white-space: nowrap; /* Ensure the header stays on one line */
}

#about .contact-details {
  width: 50%; /* Adjusted width */
  padding-right: 2%; /* Reduced space */
}

#about .download {
  width: 50%; /* Adjusted width */
  padding-top: 6px;
}

#about .main-col {
  padding-right: 5%;
}
#about .download .button {
  margin-top: 6px;
  background: var(--main-color1);
}
#about .download .button:hover {
  background: #fff;
  color: #2b2b2b;
}
#about .download .button i {
  margin-right: 15px;
  font-size: 20px;
}

/* ------------------------------------------------------------------ */
/* d. Experience Section
/* ------------------------------------------------------------------ */

#experience {
  background: var(--bg-white);
  padding: 60px 0; /* Adjust padding */
  overflow: hidden;
  text-align: left; /* Left justify text */
}

#experience h2 {
  font: var(--h2);
  color: var(--color3);
  text-align: left; /* Left justify header */
  margin-left: 29%; /* Align with the start of the dividing line */
  margin-bottom: 40px;
}

#experience .section-title {
  margin: 0 0 0;
  line-height: 1.2;
}

#experience a,
#experience a:visited {
  color: var(--main-color1);
}
#experience a:hover,
#experience a:focus {
  color: #313131;
}

#experience h1 {
  font: var(--h4) !important; /* Adjusted font size */
  text-transform: uppercase;
  letter-spacing: 1px;
}
#experience h1 span {
  border-bottom: 3px solid var(--color3);
  padding-bottom: 6px;
}
#experience h3 {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 0;
}

#experience .header-col {
  width: 25%;
  text-align: left;
  margin-bottom: 20px;
  margin-left: 0;
}

#experience .header-col h1 {
  font: var(--h2);
  color: var(--text-grey);
  margin: 0;
  padding: 0;
  display: inline-block;
}

#experience .main-col {
  width: 75%;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  font-size: 1.4rem !important;
  line-height: 1.6;
}

.education {
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 2px solid #e8e8e8;
}

#experience span {
  font-weight: bold;
  color: var(--text-grey);
}

#experience .info {
  font: var(--p);
  color: #6e7881;
  margin-bottom: 18px;
  margin-top: 0;
  font-style: italic;
}

#experience .info span {
  margin-right: 5px;
  margin-left: 5px;
}

#experience .date {
  font: var(--p);
  margin-top: 6px;
}

#experience .row {
  margin-bottom: 40px; /* Add margin between rows */
}

#experience .row:last-child {
  margin-bottom: 0; /* Remove margin from the last row */
}

/* ------------------------------------------------------------------ */
/* e. project Section
/* ------------------------------------------------------------------ */

#projects {
  background: #d8d6d5;
  padding: 60px 0 0px; /* Reduced bottom padding */
}

#projects h1 {
  font: var(--h3);
  
  color: var(--color2);
  margin-bottom: 10px;
  text-align: center !important; 
 
}

.project-other {
    font: var(--h4) !important;
    letter-spacing: 1px;
    color: var(--text-grey) !important;
    text-align: left;
    margin-bottom: 48px;
    padding-top: 6px;
    padding-left: 20%;
}

/* Add new span styling for underline */
.project-other span {
    border-bottom: 3px solid var(--color2);
    padding-bottom: 6px;
}
#projects-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Reduced from default */
    justify-content: center;
    padding: 20px 0;
}

/* Portfolio Content */
#projects-wrapper .columns {
  margin-bottom: 0px;
}

/* Skill Tags Styling */
.skill-tag {
    display: inline-block;
    background-color: var(--text-grey);
    color: white;
    padding: 6px 12px;
    margin: 4px;
    border-radius: 8px;
    font-size: 1.25rem;
    line-height: 1;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    background-color: var(--color2);
} 

.skills-certs-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px 0;
   
}

.skills, .certs {
    width: 100%;
    margin-bottom: 0; /* Reduced from 20px */
}

.skills .header-col,
.certs .header-col {
    display: flex;
    align-items: flex-start;
    padding-top: 0px; /* Reduced from 10px */
    text-transform: uppercase;
  
}

.project-other {
    margin: 0;
    position: relative;
    top: 0;
}

.skills .main-col,
.certs .main-col {
    padding-top: 10px;
}

/* Ensure consistent vertical spacing */
.skills p, .certs p {
    margin: 0;
}

/* Center the content on mobile */
@media only screen and (max-width: 767px) {
    .skills-certs-container {
        padding: 5px 15px 0;
        gap: 5px; /* Even smaller gap on mobile */
    }
    .skill-tag {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
    
    .skills .main-col,
    .certs .main-col {
        justify-content: center;
        text-align: center;
    }
}

.skill p strong,
.certs p strong {
  font-size: 1.4rem !important; /* Adjust font size */
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  color: inherit;
  display: inline-block;
  margin-bottom: 10px;
}

/* Container max-width */
#projects .row {
  max-width: 1400px; /* Increased from default */
  margin: 0 auto;
  margin-bottom: 60px;
}

.projects-item {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 280px; /* Reduced from 300px */
    max-width: 300px; /* Added max-width constraint */
    margin: 0;
}

.projects-item .item-wrap {
  background: #fff;
  overflow: hidden;
  position: relative;

  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.projects-item .item-wrap a {
  display: block;
  cursor: pointer;
}

/* overlay */
.projects-item .item-wrap .overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;

  opacity: 0;
  -moz-opacity: 0;
  filter: alpha(opacity=0);

  -webkit-transition: opacity 0.3s ease-in-out;
  -moz-transition: opacity 0.3s ease-in-out;
  -o-transition: opacity 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out;

  background: url(../images/overlay-bg.png) repeat;
}
.projects-item .item-wrap .link-icon {
  display: block;
  color: #fff;
  height: 30px;
  width: 30px;
  font-size: 18px;
  line-height: 30px;
  text-align: center;

  opacity: 0;
  -moz-opacity: 0;
  filter: alpha(opacity=0);

  -webkit-transition: opacity 0.3s ease-in-out;
  -moz-transition: opacity 0.3s ease-in-out;
  -o-transition: opacity 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out;

  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -15px;
  margin-top: -15px;
}
.projects-item .item-wrap img {
  vertical-align: bottom;
}
.projects-item .projects-item-meta {
  padding: 18px;
}
.projects-item .projects-item-meta h5 {
  font: var(--h4);
  color: #fff;
}
.projects-item .projects-item-meta p {
  font: var(--big);
  color: #c6c7c7;
  margin-bottom: 0;
}

/* on hover */
.projects-item:hover .overlay {
  opacity: 1;
  -moz-opacity: 1;
  filter: alpha(opacity=100);
}
.projects-item:hover .link-icon {
  opacity: 1;
  -moz-opacity: 1;
  filter: alpha(opacity=100);
}

/* popup modal */
.popup-modal {
  max-width: 550px;
  background: #fff;
  position: relative;
  margin: 0 auto;
}
.popup-modal .description-box {
  padding: 12px 36px 18px 36px;
}
.popup-modal .description-box h4 {
  font: var(--h4);
  margin-bottom: 12px;
  color: #111;
}
.popup-modal .description-box p {
  font: var(--big);
  color: #a1a1a1;
  margin-bottom: 12px;
}
.popup-modal .description-box .categories {
  font: var(--p);
  color: #a1a1a1;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  text-align: left;
}
.popup-modal .description-box .categories i {
  margin-right: 8px;
}
.popup-modal .link-box {
  padding: 18px 36px;
  background: #111;
  text-align: left;
}
.popup-modal .link-box a {
  color: #fff;
  font: var(--big);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 3px;
  cursor: pointer;
}
.popup-modal a:hover {
  color: var(--main-color1);
}
.popup-modal a.popup-modal-dismiss {
  margin-left: 24px;
}

/* fadein/fadeout effect for modal popup
/* ------------------------------------------------------------------ */

/* content at start */
.mfp-fade.mfp-wrap .mfp-content .popup-modal {
  opacity: 0;
  -webkit-transition: all 200ms ease-in-out;
  -moz-transition: all 200ms ease-in-out;
  -o-transition: all 200ms ease-in-out;
  -ms-transition: all 200ms ease-in-out;
  transition: all 200ms ease-in-out;
}
/* content fadein */
.mfp-fade.mfp-wrap.mfp-ready .mfp-content .popup-modal {
  opacity: 1;
}
/* content fadeout */
.mfp-fade.mfp-wrap.mfp-removing .mfp-content .popup-modal {
  opacity: 0;
}

/* Flex Slider
/* ------------------------------------------------------------------ */

/* Reset */
.flexslider a:active,
.flexslider a:focus {
  outline: none;
}
.slides,
.flex-control-nav,
.flex-direction-nav {
  margin: 0;
  padding: 0;
  list-style: none;
}
.slides li {
  margin: 0;
  padding: 0;
}

/* Necessary Styles */
.flexslider {
  position: relative;
  zoom: 1;
  margin: 0;
  padding: 0;
}
.flexslider .slides {
  zoom: 1;
}
.flexslider .slides > li {
  position: relative;
}

/* Hide the slides before the JS is loaded. Avoids image jumping */
.flexslider .slides > li {
  display: none;
  -webkit-backface-visibility: hidden;
}
/* Suggested container for slide animation setups. Can replace this with your own */
.flex-container {
  zoom: 1;
  position: relative;
}

/* Clearfix for .slides */
.slides:before,
.slides:after {
  content: " ";
  display: table;
}
.slides:after {
  clear: both;
}

/* No JavaScript Fallback */
/* If you are not using another script, such as Modernizr, make sure you
 * include js that eliminates this class on page load */
.no-js .slides > li:first-child {
  display: block;
}

/* Slider Styles */
.slides {
  zoom: 1;
}
.slides > li {
  /*margin-right: 5px; */
  overflow: hidden;
}

/* Control Nav */
.flex-control-nav {
  width: 100%;
  position: absolute;
  bottom: -20px;
  text-align: left;
}
.flex-control-nav li {
  margin: 0 6px;
  display: inline-block;
  zoom: 1;
  display: inline;
}
.flex-control-paging li a {
  width: 12px;
  height: 12px;
  display: block;
  background: #ddd;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  text-indent: -9999px;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  -o-border-radius: 20px;
  border-radius: 20px;
  box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.3);
}
.flex-control-paging li a:hover {
  background: #ccc;
  background: rgba(255, 255, 255, 0.7);
}
.flex-control-paging li a.flex-active {
  background: #fff;
  background: rgba(255, 255, 255, 0.9);
  cursor: default;
}

/* ------------------------------------------------------------------ */
/* i. Footer
/* ------------------------------------------------------------------ */

#contact {
  padding: 80px 0; /* Increase padding for clear transition */
  background: var(--bg-light-grey); /* Different background color */
  color: var(--text-grey);
  text-align: left; /* Left justify text */
}

#contact .contact-container {
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* More defined shadow */
  max-width: 1000px; /* Increase max-width to make it wider */
  margin: 0 auto;
}

#contact h2 {
  font: var(--h2);
  color: var(--text-grey);
  text-align: left; /* Left justify header */
  margin-bottom: 40px;
  position: relative;
}

#contact .row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap; /* Allow wrapping for smaller screens */
}

#contact form {
  background: var(--text-white);
  color: var(--text-grey);
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 450px; /* Adjust max-width to make it shorter */
}

#contact form label {
  font-size: 1.2rem;
  color: var(--text-grey);
}

#contact form input,
#contact form textarea {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 20px;
}

#contact form input[type="submit"] {
  background: var(--main-color1);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

#contact form input[type="submit"]:hover {
  background: #3d4145;
}

#contact .six.columns {
  width: 49%; /* Increase width slightly */
}

#contact .six.columns p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--text-grey);
  margin-bottom: 8px; /* Improve spacing */
}

#contact .six.columns h3 {
  font-size: 2.25rem;
  margin-bottom: 15px;
}

#contact .six.columns span {
  font-weight: bold;
}

footer {
  padding: 10px 0; /* Reduce padding */
  background-color: var(--text-grey);
  color: var(--text-white);
  font-size: 14px;
  text-align: center;
  position: relative;
  width: 100%;
  margin-bottom: 0; /* Ensure no extra margin at the bottom */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 30px;
}

footer .social-links {
  display: flex;
  justify-content: center;
  gap:30px; /* Reduce gap */
  margin: 10px 0; /* Reduce margin */
  padding: 0;
}

footer .social-links li a {
  font-size: 3rem !important;
  transition: color 0.3s ease-in-out;
}

footer .social-links li:nth-child(1) a {
    color: var(--color2); /* First icon color */
  }
  
  footer .social-links li:nth-child(2) a {
    color: var(--color2); /* Second icon color */
  }
  
  footer .social-links li:nth-child(3) a {
    color: var(--color2); /* Third icon color */
  }
  
  footer .social-links li:nth-child(4) a {
    color: var(--color2); /* Fourth icon color */
  }
  

footer .social-links li a:hover {
  color: #fff;
  transition: color 0.3s ease-in-out;
}

footer .copyright {
  margin: 0;
  padding: 0;
}

footer .copyright li {
  display: inline-block;
  margin: 0;
  padding: 0;
  line-height: 24px;
}

footer .copyright li:before {
  content: "\2022";
  padding-left: 10px;
  padding-right: 10px;
  color: var(--color3);
}

footer .copyright li:first-child:before {
  display: none;
}

/* Ensure the footer container has no extra padding or margin */
footer .row {
  margin: 0;
  padding: 0;
}

/* Go To Top Button */
#go-top {
  position: absolute;
  top: -24px;
  left: 50%;
  margin-left: -30px;
}
#go-top a {
  text-decoration: none;
  border: 0 none;
  display: block;
  width: 42px;
  height: 42px;
  background: rgba(
    0,
    0,
    0,
    0.5
  ); /* Match the background of the scrolldown button */
  color: #fff;
  font-size: 42px; /* Match the font size */
  line-height: 42px; /* Center the icon vertically */
  border-radius: 100%;
  text-align: center; /* Center the icon horizontally */

  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

#go-top a:hover {
  background-color: #fff;
  color: var(--color2); /* Change icon color on hover */
}

#nav a:hover {
  color: var(--main-color1);
  transform: translateY(-1px);
}

profile-pic {
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.02);
}
