/* ===== Google Font Import - Poppins ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Zain:wght@600&display=swap');

@font-face {
    font-family: 'Gilroy-light';
    src: url('../fonts/Gilroy-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'Gilroy-bold';
    src: url('../fonts/Gilroy-SemiBold.ttf') format('truetype');
}

@font-face {
    font-family: 'Rubik-bold';
    src: url('../fonts/Rubik-Bold.ttf') format('truetype');
}

@font-face {
    font-family: Montserrat-Regular;
    src: url('../fonts/montserrat/Montserrat-Regular.ttf'); 
}

@font-face {
    font-family: Montserrat-Bold;
    src: url('../fonts/montserrat/Montserrat-Bold.ttf'); 
}

@font-face {
    font-family: Montserrat-ExtraBold;
    src: url('../fonts/montserrat/Montserrat-ExtraBold.ttf'); 
}

@font-face {
    font-family: Montserrat-Medium;
    src: url('../fonts/montserrat/Montserrat-Medium.ttf'); 
}

@font-face {
    font-family: Soege-bold;
    src: url('../fonts/SegoeTVBold.TTF'); 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* ============================= Colours ================================== */
:root {
    /* Light theme colors */
    --body-color: #f5f5f5;
    --nav-color: #FFF;
    --side-nav: #ffffff;
    --text-color: #000;

    --button-bg: #007FFF;
    --button-hover-bg: #0055AA;
    --button-icon-color: #007FFF;
    --image-border: #444;
    --image-shadow: rgba(0, 0, 0, 0.3);
}

body {
    height: 100vh;
    background-color: var(--body-color);
    color: var(--text-color);
    overflow-x: hidden ;

}
.dark {
    --body-color: #18191A;
    --nav-color: #242526;
    --side-nav: #242526;
    --text-color: #CCC;

    --button-bg: #007FFF;
    --button-hover-bg: #0055AA;
    --button-icon-color: #007FFF;
    --image-border: #444;
    --image-shadow: rgba(0, 0, 0, 0.5);
}

/* ============================= Top-Navbar ================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 70px;
    width: 100%;
    background-color: var(--nav-color);
    z-index: 100;
}


nav .top_navbar {
    position: relative;
    height: 100%;
    max-width: 1000px;
    width: 100%;
    background-color: var(--nav-color);
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav .top_navbar .sidebarOpen {
    color: var(--text-color);
    font-size: 25px;
    padding: 5px;
    cursor: pointer;
    position: fixed;
    display: none;
    left: 30px;
}

nav .top_navbar .top_navbar_logo a {
    font-size: 25px;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    position: fixed; left: 100px; top: 5px;
    display: block;
}

.sidebar_menu .sidebar_logo {
    display: none;
}


.top_navbar .top_navbar_links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.top_navbar .top_navbar_links li {
    margin: 0 5px;
    list-style: none;
}

.top_navbar_links li a {
    position: relative;
    font-size: 19px;
    font-weight: 400;
    color: var(--text-color);
    text-decoration: none;
    padding: 7px;
    border-radius: 8px; /* Optional: rounded corners */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth background and color transition */
}


.top_navbar_links li.active a {
    background-color: #f5f5f5; /* Light mode background for active link */
    color: 	#007FFF; /* Black text color for better contrast */
}

/* Hover Effect for active Link in Light Mode */
.top_navbar_links li.active a:hover {
    background-color:  #f5f5f5; /* Dark mode background for active link */
    opacity: 1; /* Full opacity for active link */
}

/* Hover Effect for Non-active Links in Light Mode */
.top_navbar_links li a:hover {
    background-color:  #f5f5f5; /* Dark mode background with 0.7 opacity */
    color: var(--text-color); /* Maintain text color */
}


/* ============================= Darkmode-Top-Navbar ================================== */


.dark .top_navbar_links li.active a {
    background-color: #555555; /* Dark mode background for active link */
    color: 	#007FFF; /* Light text color for better contrast */
}

.dark .top_navbar_links li.active a:hover {
    background-color: #555555; /* Ensure background remains dark on hover */
    opacity: 1; /* Full opacity for active link */
}

.dark .top_navbar_links li a:hover {
    background-color: #555555; /* Light mode background with 0.7 opacity */
    color: var(--text-color); /* Maintain text color */
}

.darkLight-github {
    display: flex;
    align-items: center;
    gap: 20px; /* Add this line */
}

.darkLight-github .dark-light {
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    transition: 0ms;
}

.dark-light i {
    position: absolute;
    color: var(--text-color);
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-light i.sun {
    opacity: 0;
    pointer-events: none;
}
.dark-light i.sun:hover{
    color: #007FFF;
}
.dark-light.active i.sun {
    opacity: 1;
    pointer-events: auto;
}

.dark-light.active i.moon {
    opacity: 0;
    pointer-events: none;
}

.icon_github {
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon_github a {
    position: relative;
    font-size: 22px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.1s ease; /* Add this line or modify existing */
}

.top_navbar_text {
    font-family: 'Rubik-Bold';
    font-size: 30px;
    color: var(--text-color); /* Use variable for color */
    position: fixed; /* Fixed positioning ensures it stays in place */
    left: 175px; /* Position from the left edge */
    top: 15px; /* Position from the top edge */
    transition: all 0.3s ease; /* Smooth transition for color changes */
    display: block; /* Ensures the element is displayed */
}

/* ============================= SideBar ================================== */



.sidebar-text {
    font-family: 'Rubik-Bold';
    font-size: 30px;
    color: var(--text-color); /* Use variable for color */
    position: relative; 
    left: -15px;
}
 .sidebar-text {
    color: var(--text-color); /* Ensure text color is white in dark mode */
}

/* ============================= About Section ================================== */
/* Base Styles */
/* Wrapper for content width and padding */
.wrapper {
    width: 1280px;
    max-width: 95%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
header {
    padding: 40px 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Main container for hero section */
.main-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-top: 4rem;
    position: relative; 
    bottom: -125px;
}

/* Keyframes for fade-in and upward movement */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero picture styles with animation */
.main-container .hero-pic {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 15px solid #444;
    box-shadow: 5px 7px 25px rgba(0,0,0,0.5);
    opacity: 0;
    animation: fadeInUp 1s ease-in-out forwards;
}

/* Image hover effect */
.hero-pic img {
    height: 100%;
    width: 100%;
    transition: 0.5s;
}

.hero-pic img:hover {
    transform: scale(1.2);
}

/* Hero text container */
.hero-text {
    max-width: 500px;
    display: flex;
    flex-direction: column;
}

/* Text animations */
.hero-text h5 {
    color: var(--text-color);
    font-size: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease-in-out forwards;
    animation-delay: 0.3s;
}

.hero-text h5 span {
    color: #007FFF;
    font-size: 25px;
}

.hero-text h1 {
    color: #007FFF;
    font-size: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease-in-out forwards;
    animation-delay: 0.6s;
}

.hero-text p {
    font-size: 21.5px;
    opacity: 0;
    animation: fadeInUp 1s ease-in-out forwards;
    animation-delay: 0.9s;
}

/* Button group with animation */
.btn-group {
    margin: 45px 0;
    opacity: 0;
    animation: fadeInUp 1s ease-in-out forwards;
    animation-delay: 1.2s;
}

/* Button styling and hover effects */
.button {
    line-height: 1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    background-color: #007FFF;
    color: #fff;
    border-radius: 10rem;
    font-weight: 600;
    padding: .75rem 1.5rem;
    padding-left: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color .3s;
}

.button__icon-wrapper {
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    position: relative;
    color: #007FFF;
    background-color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.button:hover {
    background-color: #0055AA;
}

.button:hover .button__icon-wrapper {
    color: #0055AA;
}

.button__icon-svg--copy {
    position: absolute;
    transform: translate(-150%, 150%);
}

.button:hover .button__icon-svg:first-child {
    transition: transform .3s ease-in-out;
    transform: translate(150%, -150%);
}

.button:hover .button__icon-svg--copy {
    transition: transform .3s ease-in-out .1s;
    transform: translate(0);
}

/* Social icons with animation */
.social i {
    color: #444;
    font-size: 18px;
    margin-right: 10px;
    transition: 0.5s;
    opacity: 0;
    animation: fadeInUp 1s ease-in-out forwards;
    animation-delay: 1.5s;
}

/* Dark mode for social icons */
.dark .social i {
    color: #e5e5e5;
    font-size: 18px;
    margin-right: 10px;
    transition: 0.5s;
}

.social i:hover {
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.2), 0 0 10px rgba(0, 0, 0, 0.2);
}

.dark .social i:hover {
    color: #FFF;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.4), 0 0 10px rgba(255, 255, 255, 0.8);
}



/* ============================= Services Section ================================== */
/* Wrapper for content width and padding */
.scroll-offset-services{
    position: relative;
    top: 200px; /* Adjust this value to control the offset */
    height: 50px; /* Height should match the top value to maintain space */
  }
.wrapper {
    width: 1280px;
    max-width: 95%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Keyframes for fade-in and upward movement */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Services Title */
.services-title {
    text-align: center;
    font-size: 3vh;
    margin: 0 auto;
    position: relative;
    bottom: -250px;
    opacity: 0;
    animation: fadeInUp 1s ease-in-out forwards;
    animation-delay: 0.3s;
}

.services-title::after {
    content: "";
    display: block;
    width: 120px; /* Fixed width for the underline */
    height: 3px;
    background-color: #007FFF;
    margin: 0.5em auto 0;
}

/* Services Container */
.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    bottom: -300px;
    opacity: 0;
    animation: fadeInUp 1s ease-in-out forwards;
    animation-delay: 0.6s;
}

/* Service Card */
.service {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    flex: 1 1 calc(30% - 40px); /* Default to three items per row */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 12px;
    box-sizing: border-box;
    opacity: 0;
    animation: fadeInUp 1s ease-in-out forwards;
    /* Delay the animation based on the index of the service */
    animation-delay: calc(0.7s + (0.3s * var(--i)));
}

.dark .service {
    background-color: rgba(68, 68, 68, 0.1);
    border: 1px solid #242526;
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.dark .service:hover {
    box-shadow: 0 10px 20px rgba(248, 248, 248, 0.2);
}

/* Service Logo */
.service-logo {
    width: 65px;
    height: 65px;
    margin-bottom: 10px;
}

/* Service Title */
.service-title {
    font-size: 1.2em;
    margin: 10px 0;
}

/* Service Description */
.service-description {
    font-size: 0.9em;
}

/* Learn More Button Container */
.learn-more-container {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    bottom: -300px;
    opacity: 0;
    animation: fadeInUp 1s ease-in-out forwards;
    animation-delay: 1s;
}

/* Learn More Button */
.btn-learn_more {
    --primary-color: #007FFF;
    --secondary-color: #fff;
    --hover-color: #0055AA;
    --arrow-width: 10px;
    --arrow-stroke: 2px;
    border: 0;
    border-radius: 20px;
    color: var(--secondary-color);
    padding: 1em 1.8em;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.6em;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none; /* Ensure no underline on links */
    transition: background 0.2s;
}

.btn-learn_more .arrow-wrapper {
    display: flex;
    align-items: center;
}

.btn-learn_more .arrow {
    margin-top: 1px;
    width: var(--arrow-width);
    height: var(--arrow-stroke);
    background: var(--secondary-color);
    position: relative;
    transition: background 0.2s;
}

.btn-learn_more .arrow::before {
    content: "";
    position: absolute;
    border: solid var(--secondary-color);
    border-width: 0 var(--arrow-stroke) var(--arrow-stroke) 0;
    top: -3px;
    right: 3px;
    padding: 3px;
    transform: rotate(-45deg);
    transition: right 0.2s;
}

.btn-learn_more:hover {
    background-color: var(--hover-color);
}

.btn-learn_more:hover .arrow {
    background: var(--secondary-color);
}

.btn-learn_more:hover .arrow::before {
    right: 0; /* Corrected to animate the arrow */
}

/* Keyframes for fade-in and upward movement */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add a class for triggering the animation */
.animate {
    opacity: 1;
    animation: fadeInUp 1.5s ease-in-out forwards; /* Slow down the animation */
}

/* Initial state before animation */
.services-title,
.services-container,
.learn-more-container {
    opacity: 0; /* Start hidden */
    transition: opacity 0.3s ease-in-out; /* Smooth transition */
}

.services-title,
.services-container,
.learn-more-container {
    position: relative;
    top: 200px; /* Adjust this value to control the offset */
}

.services-title {
    font-size: 3vh;
    margin: 0 auto;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.learn-more-container {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* --- Qualifications Section Styles --- */
.qualifications-wrapper {
    display: flex;
    margin-top: 100px;
        margin-bottom: 400px;

    justify-content: center;
    align-items: center;
    padding: 100px 20px; /* Top and bottom spacing */
    text-align: center;
}

.qualifications-section {
    max-width: 800px;
    width: 100%;
}

.qualifications-title {
    font-size: 2em;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.qualifications-title::after {
    content: "";
    display: block;
    width: 75%;
    height: 3px;
    background-color: #007FFF;
    margin: 0.5em auto 0;
    transition: width 0.3s ease;
    transform-origin: center;
}

.qualifications-title:hover::after {
    width: 90%;
}

.qualifications-description {
    font-size: 1.1em;
    line-height: 1.7em;
    background: #fff;
    color: #333;
    padding: 1.5em;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dark .qualifications-description {
    background: #242526;
    color: #CCC;
}


/* ============================= Portfolio Section ================================== */
.scroll-offset-portfolio{
    position: relative;
    top: -550px; /* Adjust this value to control the offset */
    height: 50px;
}



.portfolio-title {
    position: relative;
    top: -400px; /* Adjusted to 400px from the top */
    text-align: center;
    font-size: 3vh;
    margin: 0 auto;
}

.portfolio-title::after {
    content: "";
    display: block;
    width: 120px; /* Fixed width for the underline */
    height: 3px;
    background-color: #007FFF;
    margin: 0.5em auto 0; /* Center the underline */
}

.portfolio-section {
    padding: 50px 0;
    text-align: center;
    position: relative;
    top: -80px;
}

/* Container for the portfolio items */
.portfolio-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns of equal width */
    gap: 65px; /* Increased space between containers */
    margin: 0 auto; /* Center the container in its parent */
    max-width: 1200px; 
    position: relative;
    top: -300px;/* Limit the width of the container */
}

/* Styling for each portfolio item */
.portfolio-item {
    position: relative; /* Position for overlay or other content */
    height: 300px; /* Height of each container */
    background-color: white;
    border-radius: 15px; /* Smooth edges */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Light shadow */
    overflow: hidden; /* Ensure images do not overflow the container */
    transition: transform 0.3s ease-in-out; /* Smooth transition for hover effect */
}

/* Add responsive image styling */
.portfolio-item img {
    width: 100%; /* Make image fill the container width */
    height: 100%; /* Make image fill the container height */
    object-fit: cover; /* Cover the container while maintaining aspect ratio */
    display: block; /* Remove extra space below images */
    transition: filter 0.3s ease-in-out; /* Smooth transition for blur effect */
}

/* Overlay and view button styling */
.view-button {
    position: absolute;
    bottom: 20px; /* Position at the bottom of the container */
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    padding: 15px 30px; /* Increased padding for a larger button */
    background: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 1rem; /* Font size for the button text */
    font-weight: bold; /* Make button text bold */
    display: flex; /* Use flexbox to align text and arrow */
    align-items: center; /* Center vertically */
    gap: 0.6em; /* Space between text and arrow */
    opacity: 0; /* Hide button by default */
    visibility: hidden; /* Ensure button is not interactable */
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Smooth transition for visibility */
}

/* Align arrow and text in the button */
.view-button .arrow-wrapper {
    display: flex; /* Flex container for arrow */
    align-items: center; /* Center vertically */
}

.view-button .arrow {
    width: var(--arrow-width);
    height: var(--arrow-stroke);
    background: var(--secondary-color);
    position: relative;
    transition: background 0.2s;
}

.view-button .arrow::before {
    content: "";
    position: absolute;
    border: solid var(--secondary-color);
    border-width: 0 var(--arrow-stroke) var(--arrow-stroke) 0;
    top: -3px;
    right: 3px;
    padding: 3px;
    transform: rotate(-45deg);
    transition: right 0.2s;
}

/* Show view button on hover */
.portfolio-item:hover .view-button {
    opacity: 1; /* Show the button */
    visibility: visible; /* Make the button visible */
}

/* Blur effect on hover */
.portfolio-item:hover img {
    filter: blur(4px) brightness(50%);
}




/* ============================= View Button ============================= */
.view-button {
    --primary-color: #007FFF;
    --secondary-color: #fff;
    --hover-color: #0055AA;
    --arrow-width: 10px;
    --arrow-stroke: 2px;
    border: 0;
    border-radius: 20px;
    color: var(--secondary-color);
    padding: 1em 1.8em;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.6em;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none; /* Ensure no underline on links */
    transition: background 0.2s;
}

.view-button .arrow-wrapper {
    display: flex;
    align-items: center;
}

.view-button .arrow {
    margin-top: 1px;
    width: var(--arrow-width);
    height: var(--arrow-stroke);
    background: var(--secondary-color);
    position: relative;
    transition: background 0.2s;
}

.view-button .arrow::before {
    content: "";
    position: absolute;
    border: solid var(--secondary-color);
    border-width: 0 var(--arrow-stroke) var(--arrow-stroke) 0;
    top: -3px;
    right: 3px;
    padding: 3px;
    transform: rotate(-45deg);
    transition: right 0.2s;
}

.view-button:hover {
    background-color: var(--hover-color);
}

.view-button:hover .arrow {
    background: var(--secondary-color);
}

.view-button:hover .arrow::before {
    right: 0; /* Animate the arrow on hover */
}



/* ============================= PORTFOLIO SECTION ================================== */
.scroll-offset-contact{
    position: relative;
    top: -450px; /* Adjust this value to control the offset */
    height: 50px;
}
.contact-title {
    text-align: center;
    font-size: 3vh;
    margin: 0 auto;
    position: relative;
    top: -300px;
}

.contact-title::after {
    content: "";
    display: block;
    width: 120px; /* Fixed width for the underline */
    height: 3px;
    background-color: #007FFF;
    margin: 0.5em auto 0;
}
.container {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    top: -200px;
  }
  
  .form {
    width: 100%;
    max-width: 1066px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px 1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
 .dark .form {
    background-color: #333;
  }
  
  .contact-form {
    background-color: rgba(0, 127, 255, 1);
    position: relative;
  }
  

  .contact-form:before {
    content: "";
    position: absolute;
    width: 26px;
    height: 26px;
    background-color: #007FFF;
    transform: rotate(45deg);
    top: 50px;
    left: -13px;
  }
  
  form {
    padding: 2.3rem 2.2rem;
    z-index: 10;
    overflow: hidden;
    position: relative;
  }
  
  .title {
    color: #fff;
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 0.7rem;
  }
  
  .input-container {
    position: relative;
    margin: 1rem 0;
  }
  
  .input {
    width: 100%;
    outline: none;
    border: 2px solid #fafafa;
    background: none;
    padding: 0.6rem 1.2rem;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-radius: 25px;
    transition: 0.3s;
  }
  
  textarea.input {
    padding: 0.8rem 1.2rem;
    min-height: 150px;
    border-radius: 22px;
    resize: none;
    overflow-y: auto;
  }
  
  .input-container label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    padding: 0 0.4rem;
    color: #fafafa;
    font-size: 0.9rem;
    font-weight: 400;
    pointer-events: none;
    z-index: 1000;
    transition: 0.5s;
  }
  
  .input-container.textarea label {
    top: 1rem;
    transform: translateY(0);
  }
  
  .btn {
    padding: 0.6rem 1.3rem;
    background-color: #fff;
    border: 2px solid #fafafa;
    font-size: 0.95rem;
    color: #007FFF;
    line-height: 1;
    border-radius: 25px;
    outline: none;
    cursor: pointer;
    transition: 0.3s;
    margin: 0;
  }
  
  .btn:hover {
    background-color: transparent;
    color: #fff;
  }
  
  .input-container span {
    position: absolute;
    top: 0;
    left: 25px;
    transform: translateY(-50%);
    font-size: 0.8rem;
    padding: 0 0.4rem;
    color: transparent;
    pointer-events: none;
    z-index: 500;
  }
  
  .input-container span:before,
  .input-container span:after {
    content: "";
    position: absolute;
    width: 10%;
    opacity: 0;
    transition: 0.3s;
    height: 5px;
    background-color: #007FFF;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .input-container span:before {
    left: 50%;
  }
  
  .input-container span:after {
    right: 50%;
  }
  
  .input-container.focus label {
    top: 0;
    transform: translateY(-50%);
    left: 25px;
    font-size: 0.8rem;
  }
  
  .input-container.focus span:before,
  .input-container.focus span:after {
    width: 50%;
    opacity: 1;
  }
  
  .contact-info {
    padding: 2.3rem 2.2rem;
    position: relative;
  }
  
  .contact-info .title {
    color: #007FFF;
  }
  
  .dis-text {
    color: #000;
    margin: 1.5rem 0 2rem 0;
  }
  .dark   .dis-text {
    color: #CCC;
    margin: 1.5rem 0 2rem 0;
  }

  .information {
    display: flex;
    color: #000;
    margin: 0.7rem 0;
    align-items: center;
    font-size: 0.95rem;
  }
  .dark   .information {
    color: #CCC;
  }
  
  /* General styles for the social media icons */
  .social-icons a {
    text-decoration: none;
    color: inherit; /* Inherit color from parent or define specific color */
    transition: color 0.3s, transform 0.3s; /* Smooth transition for color and transform */
  }
  
  
  /* General styles for the images with social information */
  .info .information img {
    transition: transform 0.3s, box-shadow 0.3s; /* Smooth transition for transform and shadow */
  }
  
  /* Hover effect for social information images */
  .info .information img:hover {
    transform: scale(1.1); /* Slightly scale up the image */
    cursor: pointer; /* Pointer cursor on hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional: Add a shadow effect on hover */
  }
  
  .icon {
    width: 28px;
    margin-right: 0.7rem;
  }
  
  .social-media {
    padding: 2rem 0 0 0;
  }
  .dark  .social-media p {
    color: #ccc;
  }
  .social-media p {
    color: #000;
  }
  
  .social-icons {
    display: flex;
    margin-top: 0.5rem;
  }
  
  .social-icons a {
    width: 35px;
    height: 35px;
    border-radius: 5px;
    background: linear-gradient(45deg, #007FFF, #007FFF);
    color: #fff;
    text-align: center;
    line-height: 35px;
    margin-right: 0.5rem;
    transition: 0.3s;
  }
  
  .social-icons a:hover {
    transform: scale(1.05);
  }
  
  .contact-info:before {
    content: "";
    position: absolute;
    width: 110px;
    height: 100px;
    border: 22px solid #007FFF;
    border-radius: 50%;
    bottom: -77px;
    right: 50px;
    opacity: 0.3;
  }
  
  
  .square {
    position: absolute;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(181%, 11%);
    opacity: 0.2;
  }
  
  @media (max-width: 850px) {
    .form {
      grid-template-columns: 1fr;
    }}
    @media (max-width: 850px) {
        .portfolio-container {
          padding: 320px;
        }
  
    .contact-info:before {
      bottom: initial;
      top: -75px;
      right: 65px;
      transform: scale(0.95);
    }
  
    .contact-form:before {
      top: -13px;
      left: initial;
      right: 70px;
    }
  
    .square {
      transform: translate(140%, 43%);
      height: 350px;
    }

  
    .text {
      margin: 1rem 0 1.5rem 0;
    }
  
    .social-media {
      padding: 1.5rem 0 0 0;
    }
  }
  
  @media (max-width: 480px) {
    .container {
      padding: 1.5rem;
    }
  
    .contact-info:before {
      display: none;
    }
    form,
    .contact-info {
      padding: 1.7rem 1.6rem;
    }
  
    .text,
    .information,
    .social-media p {
      font-size: 0.8rem;
    }
  
    .title {
      font-size: 1.15rem;
    }
  
    .social-icons a {
      width: 30px;
      height: 30px;
      line-height: 30px;
      color: #fff;
    }
  
    .icon {
      width: 23px;
    }
  
    .input {
      padding: 0.45rem 1.2rem;
    }
  
    .btn {
      padding: 0.45rem 1.2rem;
    }
  }
  
@media (max-width: 850px) {
    .dark .form {
      grid-template-columns: 1fr;
    }
  
    .dark .contact-info:before {
      bottom: initial;
      top: -75px;
      right: 65px;
      transform: scale(0.95);
    }
  
    .dark .contact-form:before {
      top: -13px;
      left: initial;
      right: 70px;
    }
  
    .dark .square {
      transform: translate(140%, 43%);
      height: 350px;
    }

  
    .dark .text {
      margin: 1rem 0 1.5rem 0;
    }
  
    .dark .social-media {
      padding: 1.5rem 0 0 0;
    }
  }
  
  @media (max-width: 480px) {
    .dark .container {
      padding: 1.5rem;
    }
  
    .dark .contact-info:before {
      display: none;
    }
    form,
    .dark .contact-info {
      padding: 1.7rem 1.6rem;
    }
  
    .dark .text,
    .dark .information,
    .dark .social-media p {
      font-size: 0.8rem;
    }
  
    .dark .title {
      font-size: 1.15rem;
    }
  
    .dark .social-icons a {
      width: 30px;
      height: 30px;
      line-height: 30px;
      color: #fff;
    }
  
    .dark .icon {
      width: 23px;
    }
  
    .dark .input {
      padding: 0.45rem 1.2rem;
    }
  
    .dark .btn {
      padding: 0.45rem 1.2rem;
    }
  }
  /* ============================= Bottom Footer================================== */
/* Footer Base Styles */
/* Base Styles for Footer */
footer {
    width: 100%;
    background: #FFF;
    padding: 1.2em;
    font-size: 1.2rem;
    box-sizing: border-box;
}

.dark footer {
    background: #242526;
    color: #FFF;
}

/* Flex container for footer content */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto; /* Center the content */
}

/* Logo and About Me */
.footer-logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    margin-bottom: 1em;
}

.footer-logo {
    width: 50px;
    height: auto;
}

.footer-logo-section p {
    margin: 0;
    display: flex;
    font-size: 1rem;
    font-weight: 100;
    color: #333;
}

.dark .footer-logo-section p {
    color: #CCC;
}

/* Horizontal Line */
footer .footer-divider {
    width: 100%;
    height: 1px;
    background-color: hsla(0, 0%, 0%, 0.2);
    margin: 1em 0;
}

.dark .footer-divider {
    background-color: hsla(0, 0%, 80%, 0.2);
}

/* Navigation Links */
footer .bottom-nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 0;
}

footer .bottom-nav-links li a {
    padding: 1em;
    text-decoration: none;
    color: #000;
    transition: color 100ms;
    font-size: 1.2rem;
}

.dark .bottom-nav-links li a {
    color: #CCC;
}

footer .bottom-nav-links li a:hover {
    color: #007FFF;
}

/* Social Media Section */
.footer-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1em;
}

.footer-icons {
    display: flex;
    gap: 10px;
}

.footer-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    color: #CCC;
    text-align: center;
    transition: 0.3s;
    text-decoration: none; /* Remove underline from icons */
}

.footer-icons a:hover {
    transform: scale(1.1);
    color: #007FFF;
}

/* Sticky Footer Styling */
body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.sticky-footer {
    margin-top: auto;
    width: 100%;
}

/* Ensure footer is visible over content */
html {
    scroll-behavior: smooth;
}

/* Media Queries for Responsive Design */

/* Adjustments for tablets and smaller desktops */
@media (max-width: 1024px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-logo-section {
        margin-bottom: 0.5em;
        flex-direction: column;
        align-items: center;
    }

    .footer-logo {
        width: 40px;
    }

    .footer-logo-section p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }

    footer .bottom-nav-links {
        gap: 20px;
    }

    footer .bottom-nav-links li a {
        font-size: 1rem;
    }

    .footer-socials {
        margin-top: 1em;
    }

    .footer-icons {
        gap: 10px;
    }

    .footer-icons a {
        width: 35px;
        height: 35px;
    }
}

/* Adjustments for tablets and mobile phones */
@media (max-width: 768px) {
    footer {
        padding: 0.8em;
        font-size: 1rem;
    }

    .footer-content {
        padding: 0.5em;
    }

    .footer-logo-section {
        margin-bottom: 0.5em;
    }

    .footer-logo {
        width: 35px;
    }

    .footer-logo-section p {
        font-size: 0.8rem;
    }

    footer .bottom-nav-links {
        flex-direction: column;
        gap: 15px;
    }

    footer .bottom-nav-links li a {
        font-size: 0.9rem;
    }

    .footer-socials {
        margin-top: 1em;
    }

    .footer-icons a {
        width: 30px;
        height: 30px;
    }
}

/* Adjustments for very small mobile screens */
@media (max-width: 480px) {
    footer {
        padding: 0.5em;
        font-size: 0.9rem;
    }

    .footer-content {
        padding: 0.3em;
    }

    .footer-logo-section {
        margin-bottom: 0.5em;
    }

    .footer-logo {
        width: 30px;
    }

    .footer-logo-section p {
        font-size: 0.7rem;
    }

    footer .bottom-nav-links {
        gap: 10px;
        margin-bottom: 0.5em;
        flex-direction: column;
    }

    footer .bottom-nav-links li a {
        font-size: 0.8rem;
    }

    .footer-socials {
        margin-top: 1em;
    }

    .footer-icons a {
        width: 25px;
        height: 25px;
    }
}

/* ============================= Mobile Section ================================== */

@media (max-width: 1350px) {
    .services-title, .skills-title, .portfolio-title {
        display: block;
    }

    nav .top_navbar .sidebarOpen {
        display: block;
    }

    .sidebar_menu {
        position: fixed;
        height: 100%;
        width: 320px;
        left: -100%;
        top: 0;
        padding: 20px;
        background-color: var(--side-nav);
        z-index: 100;
        transition: all 0.4s ease;
    }

    nav.active .sidebar_menu {
        left: 0;
    }

    nav.active .top_navbar .top_navbar_logo a {
        transition: all 0.3s ease;
    }

    .sidebar_menu .sidebar_logo {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        position: relative;
    }

    .sidebar_logo .siderbarClose {
        color: var(--text-color);
        font-size: 24px;
        cursor: pointer;
    }

    .top_navbar .top_navbar_links {
        flex-direction: column;
        padding-top: 30px;
        position: relative;
        top: -20px;
    }

    .top_navbar_links li a {
        display: block;
        margin-top: 20px;
    }
}

@media (max-width: 1345px) {
    .skills__container {
        margin: 0 auto;
    }
}

.hero-text {
    padding: 40px 0px;
}

@media (max-width: 525px) { 
    .skills__data  {
        max-width: 350px;
    }
}

@media (max-width: 525px) { 
    .skills-title {
        margin-bottom: 120px;
    }
}

@media (max-width: 768px) { 
    .portfolio-container {
        padding: 120px;
        position: relative;
        top: -310px;
        margin-top: 20px;
        margin-bottom: 80px;
    }
}

@media (max-width: 525px) { 
    .portfolio-title {
        margin-bottom: 80px;
    }
}

@media (max-width: 525px) { 
    .qualifications-description  {
        max-width: 390px;
    }
}

@media (max-width: 525px) { 
    .parent-container, .skills__container {
        margin-bottom: 30px;
    }
}

@media (max-width: 525px) { 
    .portfolio-title {
        position: relative;
        top: -300px;
    }
}

@media (max-width: 1320px) {
    .skills__container {
        position: relative;
        bottom: -1000px;
        left: auto;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 1320px) {
    .contact-section {
        position: relative;
        bottom: -500px;
        margin-bottom: 500px;
    }
}

@media (max-width: 1320px) {
    .parent-container {
        display: flex; 
        justify-content: center;
        align-items: center; 
        position: relative; 
        top: -1250px;
        left: auto;
    }
}

@media (max-width: 1320px) {
    .portfolio-section {
        position: relative;
        top: 400px;
        align-items: center;
        margin-bottom: 30px;
    }
}

@media (max-width: 450px) {
    .darkLight-github {
        gap: 2px;
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .wrapper {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .main-container {
        flex-direction: column;
        bottom: -50px;
    }
    .hero-text {
        position: relative;
        bottom: -80px;
    }
    .hero-pic {
        width: 200px;
        height: 200px;
    }
    .hero-text h1 {
        font-size: 2.5rem;
        position: relative;
    }
    .hero-text p {
        font-size: 18px;
    }
}

@media (max-width: 850px) {
    .service {
        flex: 1 1 calc(45% - 40px);
    }
}

@media (max-width: 600px) {
    .service {
        flex: 1 1 calc(100% - 40px);
    }

    .hero-text {
        padding: 20px 10px;
        position: relative;
        bottom: 0;
    }

    .skills__container {
        margin: 0 auto;
        padding-bottom: 60px;
    }

    .portfolio-container {
        padding: 0 20px;
        margin-top: 20px;
        margin-bottom: 60px;
    }

    .contact-section {
        padding: 20px;
        position: relative;
        top: 0;
        margin-bottom: 60px;
    }

    .form {
        width: 90%;
        margin: 0 auto;
    }
/* Tracking Information */
/* Download ID: a98bad450c753d8d156b3072e5d97939 */
/* Username: RealEnjoy */
/* User ID: 400615 */
/* Version: 173364 */
/* Resource ID: 49881 */
    .portfolio-item {
        height: auto;
    }

    .portfolio-title {
        margin-bottom: 40px;
        top: 0;
    }

    .parent-container, .skills__container {
        margin-bottom: 30px;
    }

    .sidebar_menu {
        width: 100%;
        left: -100%;
        transition: all 0.4s ease;
    }

    nav.active .sidebar_menu {
        left: 0;
    }
}

@media (min-width: 601px) and (max-width: 768px) {

    .portfolio-container {
        padding: 0 40px;
        margin-top: 20px;
        margin-bottom: 60px;
    }

    .contact-section {
        padding: 40px;
        position: relative;
        top: 0;
        margin-bottom: 200px;
    }

    .form {
        width: 95%;
    }
}

/* Responsive adjustments */
@media (max-width: 1250px) {
    .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-container {
        grid-template-columns: 1fr;
        padding: 0 60px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        position: relative;
        top: 300px;
    }
}

@media (max-width: 768px) {
    .form {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .portfolio-item {
        height: 250px;
    }
}
@media (max-width: 600px) {
    .contact-section {
        margin-bottom: 200px;
    }
}
