@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Vollkorn:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Shrikhand&display=swap');

/*darkmode colour variables*/
:root {
    --base-color: #fff;
    --text-color: #252422;
    --secondary-text: #fff;
    --primary-color: #ff3131;
    --accent-heading: #ff3131;
    --accent-color: #ffd6d6;
    --secondary-color: #ff7070;
    --accent-hover: #ff7070;
    --secondary-base: #252422;
    --switch-base: #252422;
}

.darkmode {
    --base-color: #252422;
    --text-color: #fff;
    --secondary-text: #fff;
    --primary-color: #ff3131;
    --accent-heading: #443333;
    --accent-color: #cb7f7f;
    --secondary-color: #ff7070;
    --accent-hover: #755757;
    --secondary-base: #252422;
    --switch-base: #fff;
}

.darkmode .card {
    /* Override the variables to use the light mode values */
    --base-color: #fff;
    --text-color: #252422;
    --secondary-color: #ff7070;
}

.darkmode .pre-btn,
.darkmode .nxt-btn {
    background-color: #252422 !important; 
    border-color: #ffd6d6 !important; 
}

.darkmode .pre-btn i,
.darkmode .nxt-btn i {
    color: #fff !important; 
}

/*colour variables end*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat";
    transition: all 0.5s ease;
}

body {
    background-color: var(--base-color);
}

/* splash styling */

.splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 250;
    color: #fff;
    text-align: center;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid black;
}

.splash img {
    height: 200px;
    width: 200px;
}

.splash.display-none {
    position: fixed;
    opacity: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: -10;
    color: #fff;
    text-align: center;
    margin: auto;
    transition: all 1s;
}

@keyframes fadeIn{
    to{
        opacity: 1;
    }
}

.fade-in{
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

/* header styling */

/* darkmode */
#theme-switch {
    height: 50px;
    width: 50px;
    padding: 0;
    border-radius: 50%;
    background-color: var(--switch-base);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 20px;
    right: 20px;
    border: none;
    z-index: 2;
}

#theme-switch i{
    background-color: transparent !important;
}

#theme-switch i:last-child{
    display: none;
}

.darkmode #theme-switch i:first-child{
    display: none;
}

.darkmode #theme-switch i:last-child{
    display: block;
}

/* darkmode ends */

header {
    background: var(--base-color);
    width: 100%;
    padding: 1vh 22vh 2.5vh 18vh;
    display: flex;
    justify-content:  space-between;
    flex-wrap: wrap;
}

header img {
    height: 160px;
}

.logo-container {
    display: flex; 
    align-items: center;
    justify-content: center;
    position: relative;
    width: 160px; 
    height: 160px; 
}

.logo-container img {
    height: 100%;
    width: 100%;
    z-index: 1; 
}

/* Creating the circle using a pseudo-element */
.logo-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0); /* Hide the circle by default */
    width: 100%;
    height: 100%;
    background-color: var(--secondary-text);
    border-radius: 50%;
    transition: transform 0.5s ease; /* Animate the circle's scale */
    z-index: 1; /* Place it behind the logo */
}

/* In dark mode, show the red circle by scaling it up */
.darkmode .logo-container::before {
    transform: translate(-50%, -50%) scale(1);
}

.mobile-hamburger{
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 30px;
    left: 20px;
    border: none;
    z-index: 220;
}

.hamburger span {
    display: block;
    width: 40px;
    height: 6px;
    margin-bottom: 5px;
    border-radius: 9999px;
    transition: all 0.3s ease;
    background-color: var(--primary-color);
}

.nav {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    font-size: 18px;
}

.navbar a {
    font-size: 18px;
    color: var(--text-color);
    text-decoration: none;
    margin-left: 30px;
}

.navbar a:hover {
    text-decoration: underline;
    cursor: pointer;
}

.navbar li {
    list-style: none;
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 50px;
    padding-bottom: 50px;
}

.nav a {
    color: var(--text-color);
    text-decoration: none;
}

.nav a:hover {
    text-decoration: underline;
}

.nav-item-button a {
    background-color: var(--primary-color);
    border: none;
    color: var(--secondary-text);
    padding: 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin-left: 20px; 
    border-radius: 12px;
}

.nav-item-button a:hover {
    text-decoration: none;
    background-color: var(--secondary-color);
}

/* Back to Top Button Styling */
#backToTopBtn {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed position */
    bottom: 20px; /* 20px from the bottom */
    right: 30px; /* 30px from the right */
    z-index: 99; /* High z-index to be on top of other content */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: var(--primary-color);
    color: white; /* Text color */
    cursor: pointer;
    padding-bottom: 20px;
    padding-left: 16px;
    padding-top: 12px;
    border-radius: 50%;
    font-size: 22px;
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transitions */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    width: 50px;
    height: 50px;
}


#backToTopBtn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* homepage styling */

/* section 1 */

.section-1 {
    margin: 0;
    padding: 0 180px 0 180px; 
    width: 100%;
    display: flex;
    justify-content:  space-between;
    flex-wrap: wrap;
    background-color: var(--base-color);
}

.section-1-left {
    width: 50%
}

.section-1-left h1 {
    font-family: "Vollkorn", serif;
    font-size: 60px;
    font-weight: 700;
    font-style: normal;
    color: var(--primary-color);
}

.section-1-left p {
    font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 400;
  font-style: normal;
  padding-top: 2.5vh;
  color: var(--text-color);
}

.section-1-left button {
    background-color: var(--primary-color);
    border: none;
    color: var(--secondary-text);
    text-align: center;
    text-decoration: none;
    font-size: 20px;
    padding: 10px;
    border-radius: 12px;
    margin-top: 5vh;
}

.section-1-left button:hover {
    text-decoration: none;
    background-color: var(--secondary-color);
}

.section-1-desc a {
    color: var(--primary-color);
    font-size: 30px;
}

.section-1-desc a:hover {
    color: var(--secondary-color);
}

.section-1-right {
    width: 30%;
    padding-top: 6vh;
}

/* projects slider styling */

.projects {
    position: relative; 
    margin: -10px 180px 50px 180px; 
    width: 80%; 
    background-color: var(--accent-color);
    padding-top: 1vh;
    padding-bottom: 5vh;
    padding-right: 6vh;
    padding-left: 6vh;
    border-radius: 12px;
    z-index: 1;
}

.projects h3 {
    color: var(--accent-heading);
    font-family: "Vollkorn", serif;
    font-size: 40px;
    text-align: center;
    margin: 5vh 0 5vh 0;
}

.projects a {
    text-decoration: none;
}

.projects h3:hover {
    color: var(--accent-hover);
}

/* Style the navigation buttons */
.pre-btn, .nxt-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    
    /* Basic button styling */
    background-color: var(--secondary-base);
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
}

.pre-btn {
    left: 1vh;
}

.nxt-btn {
    right: 1vh;
}

.card {
    width: 350px;
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background-color: var(--base-color);
    border: 5px solid var(--text-color);
    box-shadow: 10px 10px 0 0 var(--text-color);
    transition: transform 0.3s ease;
}

.card-content {
    /* Use flexbox for vertical stacking */
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

.card-content > .project-title,
.card-content > .project-desc,
.card-content > .project-btn {
    padding-left: 20px;
    padding-right: 20px;
}

.card-content > .image {
    padding-top: 0px;
}

.card-content > .project-btn {
    padding-bottom: 20px;
}

.image {
    width: 100%;
    /* Add a thick border to the image to match the card style */
    border: 4px solid var(--text-color);
    overflow: hidden;
}

.image img {
    width: 100%;
    display: block;
}

.project-title {
    margin-top: 15px;
    /* Add a thick underline to the title to match the graphic style */
    border-bottom: 4px solid var(--primary-color);
    padding-bottom: 5px; /* Spacing below the line */
    line-height: 1.2;
}

.project-title .title {
    font-size: 3vh;
    font-weight: 700; /* Bolder font weight */
    color: var(--text-color);
}

/* Read more functionality styling */
.project-desc {
    margin-top: 15px;
    position: relative;
    padding-left: 20px;
    padding-right: 20px;
}

.desc-content-container {
    max-height: 1.5vh;
    overflow: hidden;
    transition: max-height 1s ease;
}

.desc-content-container.expanded {
    max-height: 1000px;
}

.desc-content-container p {
    margin: 0;
}

/* Style for the 'Read more' button */
.read-more-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: bold;
    text-decoration: underline;
    font-size: 14px;
    padding: 5px 0;
    margin-top: 5px;
}

/* CSS class to expand the text when the button is clicked */
.project-desc .desc-container.expanded {
    max-height: 1000px;
}

.project-desc .desc {
    font-size: 1rem;
    color: var(--text-color);
}

.project-btn {
    margin-top: auto; /* Push buttons to the bottom of the card */
    display: flex;
    gap: 15px;
}

.project-btn button {
    background-color: var(--primary-color);
    border: none;
    color: var(--secondary-text);
    padding: 10px 15px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    /* Create the hand-drawn button look with a black border */
    border: 3px solid var(--text-color);
    /* Add a subtle box-shadow for a lifted effect */
    box-shadow: 4px 4px 0 0 var(--text-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-btn button a {
    color: var(--secondary-text);
    text-decoration: none;
}

.project-btn button:hover {
    transform: translate(2px, 2px); /* Push the button down and right on hover */
    box-shadow: 2px 2px 0 0 var(--text-color); /* Reduce the shadow offset */
}


/* Style for the window title bar */
.window-title-bar {
    width: 100%;
    height: 35px;
    background-color: var(--secondary-color);
    border-bottom: 3px solid var(--text-color);
    /* Use flexbox for alignment of the controls and title */
    display: flex;
    align-items: center;
    justify-content: space-between; /* This pushes the title to the left and controls to the right */
    padding: 0;
}

/* Style for the title of the window */
.window-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-color);
    padding-left: 10px;
}

/* Container for the window control buttons */
.window-controls {
    display: flex;
}

/* Base style for the control buttons */
.control-btn {
    width: 45px; /* Wider buttons to contain the svg icons */
    height: 35px; /* Match the height of the title bar */
    border: none; /* No border for the buttons themselves */
    background-color: transparent;
    padding: 0; /* Remove padding */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Style the svg icons inside the buttons */
.control-btn svg {
    width: 14px;
    height: 14px;
    stroke: var(--text-color);
    stroke-width: 2; /* Adjust stroke thickness for the icons */
    stroke-linecap: round;
    fill: none; /* Remove the fill color for the icons */
}

/* Specific styling for the maximize and minimize icons */
.control-btn.minimize svg rect {
    fill: currentColor; /* Use the text color for the line */
    stroke: none;
}

.control-btn.maximize svg path {
    fill: currentColor; /* Use the text color for the icon */
    stroke: none;
}

/* Updated the .swiper-wrapper to handle the flex layout */
.swiper-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    
    /* Flexbox properties to lay out the cards */
    flex-wrap: nowrap; /* Prevents cards from wrapping to the next line */
    gap: 30px; /* The space between the cards */
    padding: 0 10px 20px 10px; /* Add some padding to the sides so cards aren't flush with the container */

    /* Hide the scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Hide the scrollbar for WebKit browsers */
.swiper-wrapper::-webkit-scrollbar {
    display: none;
}

.swiper-slide.card {
    /* Calculate the width to fit three cards with gaps */
    /* (100% / 3) = a third of the container width */
    /* (30px * 2 / 3) = two gaps distributed among three cards */
    width: calc((100% / 3) - (30px * 2 / 3));

    /* for media query width: calc(100% - 20px); */

    flex-shrink: 0; /* Prevents cards from shrinking to fit */

    /* All other card styles */
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background-color: var(--base-color);
    border: 5px solid var(--text-color);
    box-shadow: 10px 10px 0 0 var(--text-color);
    transition: transform 0.3s ease;
    margin: 0; /* Remove auto margin to avoid layout issues */
}

/* projects slider end*/

/* homepage styling end */

/* footer styling */

footer {
    background-color: var(--secondary-base);
    justify-content: center;
}

.footer-content {
    width: 100%;
    padding: 7vh 25vh 2.5vh 18vh;
    display: flex;
    justify-content:  space-between;
    flex-wrap: wrap;

}

footer img {
    height: 230px;
}

footer h3 {
    color: var(--secondary-text);
    font-family: "Vollkorn", serif;
    padding-bottom: 1vh;
}

footer a {
    color: var(--secondary-text);
}

.link-small {
    font-size: small;
}

footer a:hover {
    text-decoration: none;
}

.footer-right {
    display: flex;
    justify-content: center;
    flex-direction: column;
    font-size: 18px;
}

.footerBottom{
    background-color: #252422;
    padding: 20px;
    text-align: center;
}
.footerBottom p{
    color: var(--secondary-text);
}
.designer{
    opacity: 0.7;
    letter-spacing: 1px;
    font-weight: 400;
    margin: 0px 5px;
}

/* about styling */

.about-container {
    margin: 0 50vh 0 50vh;
    background-color: var(--base-color);
}

.about-title h2 {
    font-family: "Vollkorn", serif;
    color: var(--primary-color);
    background-color: var(--base-color);
    font-size: 50px;
}

.who-am-i {
    background-color: var(--base-color);
}

.who-am-i h3 {
    font-family: "Vollkorn", serif;
    color: var(--text-color);
    font-size: 28px;
}

.who-am-i span {
    font-family: "Montserrat" san-serif;
    color: var(--text-color);
    font-size: 20px;
}

.about-links {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  border: none;
  
}

.about-links button {
    background-color: var(--primary-color);
    border: none;
    color: var(--secondary-text);
    padding: 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 20px;
    margin-left: 10vh; 
    border-radius: 12px;
}

.about-links button:hover {
    text-decoration: none;
    background-color: var(--secondary-color);
}


/* resume styling */

.resume-container {
    margin: 0 50vh 5vh 50vh;
    background-color: var(--base-color);
}

.resume-title h2 {
    font-family: "Vollkorn", serif;
    color: var(--primary-color);
    background-color: var(--base-color);
    font-size: 50px;
}

.resume-cont {
    background-color: var(--base-color);
}

.resume-cont h3 {
    font-family: "Vollkorn", serif;
    color: var(--text-color);
    font-size: 28px;
}

.resume-cont h4 {
    font-family: "Vollkorn", serif;
    color: var(--text-color);
    font-size: 24px;
}

.resume-cont span {
    font-family: "Montserrat" san-serif;
    color: var(--text-color);
    font-size: 20px;
}

.resume-cont a {
    color: var(--primary-color);
    padding: 0 1vh 0 1vh;
}

.resume-cont a:hover {
    background-color: var(--accent-color);
    color: var(--secondary-base);
    text-decoration: none;
    border-radius: 4px;
}

.resume-links {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  border: none;
  
}
.resume-links button {
    background-color: var(--primary-color);
    border: none;
    color: var(--secondary-text);
    padding: 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 20px;
    margin-left: 10vh; 
    border-radius: 12px;
}

.resume-links button:hover {
    text-decoration: none;
    background-color: var(--secondary-color);
}

/*portfolio styling*/

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

.port-title h1 {
    font-family: "Vollkorn", serif;
    color: var(--primary-color);
    font-size: 50px;
    margin-bottom: 5vh;
}

.port-item-container {
    display: flex;
    align-items: stretch;
    width: 80%;
    margin: 0 18vh 5vh 18vh;
    background-color: var(--accent-color);
    border-radius: 12px;
    padding: 2vh;
    min-height: 300px;
    gap: 3vh;
}

.port-item-img {
    flex-shrink: 0;
    width: 40%;
}

.port-item-img img {
    width: 100%;
    height: auto; /* Allow image to define its natural height */
    display: block;
    border-radius: 8px;
}

.port-item-content-wrapper {
    display: flex;
    flex-direction: column; /* Stack description and buttons vertically */
    justify-content: space-between;
    flex-grow: 1;
    align-self: stretch;


    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 0;
    text-align: left;
}

.port-item-desc {
    padding-bottom: 1vh;
    text-align: inherit;
    /* Consider adding flex-shrink: 1; if text is very long and squishes buttons */
}

.port-item-desc h3 {
    font-family: "Vollkorn", serif;
    font-size: 25px;
    color: var(--secondary-base);
}

.port-item-desc span {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--secondary-base);
}

.port-item-btn {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    margin-top: auto;
    padding: 0;
}

.port-item-btn button {
    background-color: var(--accent-heading);
    border: none;
    color: var(--secondary-text);
    text-align: center; /* Text inside button will be centered */
    text-decoration: none;
    font-size: 20px;
    padding: 10px;
    border-radius: 12px;
    display: inline-block;
}

.port-item-btn button:hover {
    text-decoration: none;
    background-color: var(--accent-hover);
}

.port-item-btn button a {
    color: var(--secondary-text);
    text-decoration: none;
    display: block;
    padding: 10px;
    margin: -10px;
}

.port-item-btn button a:hover {
    text-decoration: none;
}

/*portfolio styling end*/

/*services stying*/

.services-about {
    margin: 0 18vh 5vh 18vh;
}

.services-about h1 {
    font-family: "Vollkorn", serif;
    color: var(--primary-color);
    font-size: 50px;
}

.services-about h2 {
    font-family: "Vollkorn", serif;
    color: var(--primary-color);
    font-size: 30px;
    padding-bottom: 2vh;
}

.services-about span {
    color: var(--text-color);
    font-size: 20px;
}

.services-services {
    margin: 0 18vh 5vh 18vh;
    text-align: center;
}

.services-services h1 {
    font-family: "Vollkorn", serif;
    font-size: 40px;
    color: var(--primary-color);
}

.services-descs {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 3vh;
}

.services-desc-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background-color: var(--accent-color);
    color: var(--text-color);
    width: 49%;
    height: 25vh;
    padding: 0 4vh 0 4vh;
    border-radius: 20px;
}

.services-desc-container h3 {
    font-family: "Vollkorn", serif;
    font-size: 25px;
    padding-bottom: 1vh;
}

.services-desc-container h4 {
    font-size: 30px;
    padding-bottom: 1vh;
}

.services-button button {
    background-color: var(--primary-color);
    border: none;
    color: var(--secondary-text);
    text-align: center;
    text-decoration: none;
    font-size: 20px;
    padding: 10px;
    border-radius: 12px;
    margin-top: 5vh;
}

.services-button button:hover {
    text-decoration: none;
    background-color: var(--secondary-color);
}

.services-process {
    margin: 0 18vh 12vh 18vh;
    height: auto;
}

.title {
    font-family: "Vollkorn", serif;
    color: var(--primary-color);
    font-size: 40px;
    text-align: center;
    margin-bottom: 2vh;
}

.process-section-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background: var(--accent-color);
    min-height: 18%;
    margin-bottom: 2vh;
    padding: 3vh 4vh 2vh 4vh;
    border-radius: 20px;
    color: var(--text-color);
}

.number h1 {
    font-family: "Shrikhand", serif;
    color: var(--accent-heading);
    font-size: 50px;
    top: 0;
}

.seperator {
    margin: 0 1vh 0 2vh;
}

.seperator span {
    display: block;
    width: 3px;
    height: 80px;
    background-color: var(--accent-heading);
}

.process-desc h2 {
    font-family: "Vollkorn", serif;

}

.services-prices {
    margin: 0 18vh 0 18vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.breakdown {
    background-color: var(--accent-color);
    width: 80%;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 20px;
    padding: 4vh;
}

.breakdown h2 {
    font-family: 'Vollkorn', serif;
    font-size: 40px;
    color: var(--accent-heading);
    text-align: center;
    margin-bottom: 2vh;
}

.breakdown table {
    width: 80%;
    margin: auto;
    border-collapse: separate;
    border-spacing: 10px;
    margin-bottom: 5vh;
}

.breakdown td {
    height: 4vh;
    padding-left: 5vh;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.breakdown .right {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    padding-left: 1vh;
}

.breakdown tr {
    background-color: var(--base-color);
    color:var(--text-color);
}

.breakdown span {
    font-size: 12px;
}

.whats-included {
    margin-top: 5vh;
}

.whats-included h2 {
    font-family: 'Vollkorn', serif;
    font-size: 40px;
    text-align: center;
    color: var(--primary-color);
}

.whats-included span {
    color: var(--text-color);
    font-size: 20px;
}

.whats-included ul {
    padding-left: 5vh;
}

/*services styling end*/

/*contact me styling*/

.contact-container{
	width: 100%;
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 30px 8%;
    margin-top: -20vh;
}
.contact-container .row{
	display: flex;
	justify-content: space-between;
	width: 100%;
	max-width: 1100px;
}
.row section.col{
	display: flex;
	flex-direction: column;
}
.row section.left{
	flex-basis: 35%;
	min-width: 320px;
	margin-right: 60px;
}
.row section.right{
	flex-basis: 60%;
}
section.left .contact-title h2{
	position: relative;
	font-size: 40px;
    font-family: "Vollkorn", serif;
	color: var(--primary-color);
	display: inline-block;
	margin-bottom: 25px;
}

section.left .contact-title p{
	font-size: 17px;
	color: var(--text-color);
	letter-spacing: 1px;
	line-height: 1.2;
	padding-bottom: 22px;
}
section.left .contact-info{
	margin-bottom: 16px;
}
.contactInfo .icon-group{
	display: flex;
	align-items: center;
	margin: 25px 0px;
}
.icon-group .icon{
	width: 45px;
	height: 45px;
	border: none;
	border-radius: 50%;
	margin-right: 20px;
	position: relative;
}
.icon-group .icon i{
	font-size: 20px;
	color: var(--primary-color);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
.icon-group .details span{
	display: block;
	color: var(--text-color);
	font-size: 18px;
}
.icon-group .details span:nth-child(1){
	text-transform: uppercase;
	color: var(--text-color);
}
section.left .social-media{
	display: flex;
	justify-content: flex-start;
	align-items: center;
	flex-wrap: wrap;
	margin: 22px 0px 20px;
}

.social-media a i{
	color: var(--primary-color);
	font-size: 52px;
	line-height: 35px;
	border: 1px solid transparent;
	transition-delay: 0.4s;
}
.social-media a i:hover{
	color: var(--secondary-color);
}

/* Code for the right section (column) */

.row section.right .message-form{
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	padding-top: 30px;
}
.row section.right .input-group{
	margin: 18px 0px;
	position: relative;
}
.message-form .halfWidth{
	flex-basis: 48%;
}
.message-form .fullWidth{
	flex-basis: 100%;
}
.message-form input, .message-form textarea{
	width: 100%;
	font-size: 18px;
	padding: 2px 0px;
	background-color: var(--accent-color);
	color: var(--secondary-base);
	border: none;
	border-bottom: 2px solid var(--accent-heading);
	outline: none;
}
.message-form textarea{
	resize: none;
	height: 220px;
	display: block;
}
textarea::-webkit-scrollbar{
	width: 5px;
}
textarea::-webkit-scrollbar-track{
	background-color: #1e1e1e;
	border-radius: 15px;
}
textarea::-webkit-scrollbar-thumb{
	background-color: var(--primary-color);
	border-radius: 15px;
}
.input-group label{
	position: absolute;
	left: 0;
	bottom: 4px;
	color: var(--accent-heading);
	font-size: 18px;
	transition: 0.4s;
	pointer-events: none;
}
.input-group:nth-child(4) label{
	top: 2px;
}
.input-group input:focus ~ label, .input-group textarea:focus ~ label,
.input-group input:valid ~ label, .input-group textarea:valid ~ label
{
	transform: translateY(-30px);
	font-size: 16px;
    color: var(--text-color);
}
.input-group button{
    background-color: var(--primary-color);
    border: none;
    color: var(--secondary-text);
    padding: 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 12px;
}
.input-group button:hover{
    background-color: var(--secondary-color);
}
@media(max-width: 1100px){
	.message-form .halfWidth{
		flex-basis: 100%;
	}
}
@media(max-width: 900px){
	.contact-container .row{
		flex-wrap: wrap;
	}
	.row section.left, .row section.right{
		flex-basis: 100%;
		margin: 0px;
	}
}

/*contact me styling end*/

/* whoops !!! */
.whoops-body {
    overflow: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--secondary-base);
}

.whoops {
    position: absolute;
    right: 10%;
    left: 20%;
    top: 40%;
    width: 60%;
    background-color: var(--secondary-base);
    color: var(--secondary-text);
    text-align: center;
}

.whoops h1 {
    font-family:'Courier New', Courier, monospace;
    font-size: 60px;
}

.whoops a {
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
}

/* --- Glitch Effect CSS Additions (UPDATED for better layout) --- */

.glitch-text {
    /* Preserve existing font and size from .whoops h1, but add glitch-specific styles */
    /* font-family and font-size are already handled by .whoops h1, so we don't duplicate here */

    color: var(--primary-color); /* Glitch text color, using your variable */
    position: relative; /* Essential for pseudo-elements */
    display: block; /* Forces it to be a block element */
    width: fit-content; /* Adjusts width to content, good for absolute positioning */
    margin: 0 auto; /* Centers the h1 if its width is fit-content */


    /* Basic text shadow for the underlying text - subtle effect */
    text-shadow:
        0.03em 0 0 rgba(255, 0, 0, 0.75), /* Red component */
        -0.02em -0.04em 0 rgba(0, 255, 0, 0.75), /* Green component */
        0.02em 0.04em 0 rgba(0, 0, 255, 0.75); /* Blue component */

    /* Animation properties for the main text and pseudo-elements */
    animation:
        glitch-main 1s linear infinite alternate, /* Main text movement */
        glitch-flicker 0.1s linear infinite; /* Subtle opacity flicker */
}

/* Pseudo-elements for the full glitch effect */
.glitch-text::before,
.glitch-text::after {
    content: attr(data-text); /* Pull content from data-text attribute */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Background must match the .whoops-body background for proper blending */
    background-color: var(--secondary-base);
    overflow: hidden; /* Crucial for clipping the glitch layers */
    color: var(--primary-color); /* Ensure pseudo-elements have the primary color */
}

.glitch-text::before {
    left: 2px; /* Slightly offset */
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75); /* Red shadow */
    animation: glitch-left 1s linear infinite alternate-reverse; /* Different animation direction */
}

.glitch-text::after {
    left: -2px; /* Slightly offset in the other direction */
    text-shadow: -0.05em 0 0 rgba(0, 255, 0, 0.75); /* Green shadow */
    animation: glitch-right 1s linear infinite alternate;
}

/* Keyframes for the glitch animations */

@keyframes glitch-main {
    0% { transform: translate(0); }
    20% { transform: translate(-0.5px, 0.5px); }
    40% { transform: translate(-0.5px, -0.5px); }
    60% { transform: translate(0.5px, 0.5px); }
    80% { transform: translate(0.5px, -0.5px); }
    100% { transform: translate(0); }
}

@keyframes glitch-left {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 0); }
    40% { transform: translate(0, 3px); }
    60% { transform: translate(-3px, 3px); }
    80% { transform: translate(3px, 0); }
    100% { transform: translate(0); }
}

@keyframes glitch-right {
    0% { transform: translate(0); }
    20% { transform: translate(3px, 0); }
    40% { transform: translate(0, -3px); }
    60% { transform: translate(3px, -3px); }
    80% { transform: translate(-3px, 0); }
    100% { transform: translate(0); }
}

/* Keyframes for a subtle flicker effect */
@keyframes glitch-flicker {
    0% { opacity: 1; }
    5% { opacity: 0.8; }
    10% { opacity: 1; }
    15% { opacity: 0.9; }
    20% { opacity: 1; }
    25% { opacity: 0.85; }
    30% { opacity: 1; }
    50% { opacity: 0.95; }
    60% { opacity: 1; }
    70% { opacity: 0.9; }
    80% { opacity: 1; }
    90% { opacity: 0.92; }
    100% { opacity: 1; }
}

/* Ensure the body hides overflow from glitch shifts */
.whoops-body {
    overflow: hidden;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/*styling for phones and tablets*/
@media screen and (max-width: 1024px) {

header {
    flex-direction: column;
    align-items: center;
    padding: 2vh 5vw;
}
.navbar {
    display: none;
}

.section-1-right {
    display: none;
}

.section-1 {
    display: flex;
    align-content: center;
    width: 90%;
    margin-left: 50px;
    margin-right: 50px;
    margin-bottom: 20px;
    padding: 0;
}

.section-1-left {
    width: 90%;
}

.section-1-desc a {
    font-size: 50px;
}

.projects {
    margin: 0;
    margin-top: 2vh;
    width: 100%;
}

.swiper-slide.card {
    /* Calculate the width to fit three cards with gaps */
    /* (100% / 3) = a third of the container width */
    /* (30px * 2 / 3) = two gaps distributed among three cards */
    width: calc((100% / 2) - (30px * 2 / 2));
}

/* hamburger menu*/

.mobile-hamburger {
    display: block;
}

.hamburger {
    display: block;
}

.hamburger.active .bar:nth-child(2){
    opacity: 0;
}

.hamburger.active .bar:nth-child(1){
    transform: translateY(11px) rotate(45deg);
    background-color: var(--base-color);
}

.hamburger.active .bar:nth-child(3){
    transform: translateY(-11px) rotate(-45deg);
   background-color: var(--base-color);
}

.mobile-nav-menu{
    position: fixed;
    left: -100%;
    top: 0;
    gap: 0;
    padding-top: 90px;
    padding-left: 50px;
    flex-direction: column;
    background-color: var(--switch-base);
    width: 60%;
    height: 100%;
    text-align: left;
    transition: 0.3s;
    z-index: 200;
    box-shadow: 10px -2px 5px var(--accent-color);
}

.-mobile-nav-item {
    margin: 16px 0;
}

.mobile-nav-menu li {
    list-style: none;
    padding-bottom: 30px;
}

.mobile-nav-menu a {
    color: var(--base-color);
    text-decoration: none;
    font-size: 3vh;
}

.mobile-nav-menu a:hover {
    color: var(--secondary-color);
}

.mobile-nav-menu.active {
    left: 0;
}

.about-container{
    width: 90%;
    margin: 0 40px;
}

.resume-container{
    width: 90%;
    margin: 0 40px;
}

.port-item-container {
    width: 100%;
    margin-left: 0;
    flex-direction: column;
}

.port-item-img {
    width: 100%;
}

.about-links {
    width: 100%;
    margin: 0;
    padding: 0;
}

.services-about {
    width: 95%;
    margin: 2vh 2vh 2vh 2vh;
}

.services-services {
    width: 100%;
    margin: 0;
    padding: 2vh;
}

.services-descs {
    flex-direction: column;
    gap: 2vh;
    width: 100%;
}

.services-desc-container {
    height: auto;
    width: 100%;
}

.services-desc-container i {
    padding-top: 3vh;
}

.services-desc-container span {
    padding-bottom: 3vh;
}

.services-process {
    width: 100%;
    margin: 0;
    padding: 2vh;
}

.process-section-container {
    padding: 2vh;
}

.services-prices {
    width: 100%;
    margin: 0;
    display: flex;
    padding: 2vh;
}

.breakdown {
    width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

.breakdown table {
    width: 100%;
}

.breakdown td {
    padding-left: 1vh;
}

.breakdown span {
    padding-left: 1vh;
}


.contact-container {
    margin-top: 0;
}


}

@media screen and (max-width: 750px){
  .swiper-slide.card {
    /* Calculate the width to fit three cards with gaps */
    /* (100% / 3) = a third of the container width */
    /* (30px * 2 / 3) = two gaps distributed among three cards */
    width: 100%;
}  

.mobile-nav-menu{
 width: 60%;
}

.footer-content {
    width: 100%;
    padding: 20px 0 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: none;
}

.footer-content img {
    height: 100px;
}

.about-container {
    width: 80%;
    margin: 0;
}

.about-title {
    margin: 0 40px 0 20px;
}

.who-am-i {
    margin: 0 40px 0 20px;
    width: 100%;
}

.resume-container {
    width: 80%;
    margin: 0;
}

/*.about-links {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  border: none;
  
}*/

.about-links {
    width: 100%;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.resume-title {
    margin: 0 40px 0 20px;
}

.resume-cont {
    margin: 0 40px 0 20px;
    width: 100%;
}

.resume-links {
    width: 100%;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.port-body {
    padding: 2vh;
}

.services-about {
    width: 95%;
    margin: 2vh 2vh 2vh 2vh;
}

.services-services {
    width: 100%;
    margin: 0;
    padding: 2vh;
}

.services-descs {
    flex-direction: column;
    gap: 2vh;
    width: 100%;
}

.services-desc-container {
    height: auto;
    width: 100%;
}

.services-desc-container i {
    padding-top: 30px;
}

.services-desc-container span {
    padding-bottom: 30px;
}

.services-process {
    width: 100%;
    margin: 0;
    padding: 2vh;
}

.process-section-container {
    padding: 2vh;
}

.services-prices {
    width: 100%;
    margin: 0;
    display: flex;
    padding: 2vh;
}

.breakdown {
    width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

.breakdown table {
    width: 100%;
}

.breakdown td {
    padding-left: 1vh;
}

.breakdown span {
    padding-left: 1vh;
}

.contact-container {
    margin-top: 0;
}

.whoops {
    position: absolute;
    right: 10%;
    left: 20%;
    top: 10%;
    width: 60%;
    background-color: var(--secondary-base);
    color: var(--secondary-text);
    text-align: center;
}
}