html {
    scroll-behavior: smooth; /* Enables smooth scrolling */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Add styles for the navigation bar */
.navbar {
    display: flex;
    justify-content: center; /* Center the navigation items */
    background-color: #333; /* Dark background for contrast */
    padding: 10px 0; /* Padding for the navigation bar */
    position: sticky; /* Makes the navigation sticky */
    top: 0; /* Sticks to the top of the viewport */
    z-index: 99; /* Ensures it stays above other content */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional shadow for depth */
}


.navbar a {
    color: #fff; /* White text */
    text-decoration: none; /* Remove underline */
    padding: 10px 20px; /* Padding around links */
    transition: background-color 0.3s, color 0.3s; /* Smooth transitions */
}

.navbar a:hover {
    background-color: #575757; /* Darker background on hover */
    color: #ffd700; /* Change text color on hover */
    border-radius: 5px; /* Rounded corners on hover */
}

/* Optional: Add media query for responsiveness */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column; /* Stack items on smaller screens */
    }
    .navbar a {
        padding: 15px; /* Increase padding on smaller screens */
    }
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #F4EEE0;
}

header {
    text-align: center;
    padding: 2em;
    background-color: #000;
    color: #fff;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 0.2em;
}

header p {
    font-size: 1.2em;
    font-weight: 300;
    margin-bottom: 0.5em;
}

header nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 1em;
    font-size: 1em;
}

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

section {
    padding: 2em 5%;
    max-width: 1000px;
    margin: auto;
}

#about,
#projects,
#contact {
    margin-bottom: 2em;
}

h2 {
    font-size: 2em;
    margin-bottom: 0.5em;
    color: #333;
}

.gallery {
    display: block;
    flex-wrap: wrap;
    width: 100%;
    gap: 20px;
}

.project-card {
    width: 100%;
    max-width: 800px; /* Optional: set a max-width to limit card width on larger screens */
    background-color: #fff;
    padding: 1.5em;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 0.5em;
    position: relative;
}

.project-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1em;
}

.project-card video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1em;
}

/* Style for the slideshow images */
.slideshow-container {
    position: relative;
    width: 100%;
}

.slide {
    width: 100%;
    border-radius: 8px;
    display: none;
}

/* Custom style for smaller images in project cards */
.small-slide {
    width: 10%; /* Adjust width to control size */
    height: auto;
    margin: 0 auto; /* Center the image */
    display: block;
}


.slide:first-of-type {
    display: block;
}

/* Style for the navigation buttons */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 8px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}


.project-card h3 {
    font-size: 1.5em;
    margin-bottom: 0.5em;
}

.project-card p {
    font-size: 1em;
    color: #666;
}

footer {
    text-align: center;
    padding: 1em;
    background-color: #000;
    color: #fff;
}

footer p {
    font-size: 0.9em;
}

.github-button {
    position: relative; /* Change to relative */
    top: -15px; /* Adjust this value as needed */
    right: 0px; /* Keep right for positioning */
    background-color: #333; 
    color: white; 
    border-radius: 50%;
    width: 36px; 
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s;
    z-index: 10; /* Ensure it's above everything else */
}


.github-button:hover {
    background-color: #555; /* Darker on hover */
}

.github-button i {
    font-size: 16px; /* Icon size */
}

.skills-container {
    display: flex;
    flex-wrap: wrap; /* Wraps items to the next line */
    justify-content: center; /* Centers items */
    margin: 20px 0; /* Space around the container */
}

.skill {
    text-align: center; /* Centers text under the icon */
    margin: 15px; /* Spacing between skill items */
    width: 100px; /* Set width for each skill */
}

.skill i {
    font-size: 40px; /* Size of the icon */
    display: block; /* Block display for stacking */
    margin-bottom: 5px; /* Space between icon and text */
}

.skill p {
    margin: 0; /* Removes default margin from paragraphs */
}

.skill .fa-html5 {
    color: #e34c26; /* HTML5 orange */
}

.skill .fa-css3-alt {
    color: #264de4; /* CSS3 blue */
}

.skill .fa-js {
    color: #f0db4f; /* JavaScript yellow */
}

.skill .fa-react {
    color: #61DBFB; /* React cyan */
}

.skill .fa-node-js {
    color: #3C873A; /* Node.js green */
}

.skill .fa-python {
    color: #306998; /* Python blue */
}

.skill .fa-java {
    color: #f89820; /* Java orange */
}

.skill .fa-git-alt {
    color: #f34f29; /* Git orange */
}

.skill .fa-linux {
    color: #fcc624; /* Linux yellow */
}

.skill .fa-database {
    color: #336791; /* SQL blue */
}

.skill .fa-brain {
    color: #f39c12; /* AI yellow */
}

.skill .fa-microchip {
    color: #4d4d4d; /* Hardware gray */
}

.skill .fa-paint-brush {
    color: #2db940; /* Design yellow */
}

.skill .fa-wordpress {
    color: #21759b; /* WordPress blue */
}

.skill .fa-shopify {
    color: #7ab55c; /* Shopify green */
}

.skill .fa-figma {
    color: #f24e1e; /* Figma orange */
}

.skill .fa-chart-line {
    color: #00c853; /* Analytics green */
}

.skill .fa-aws {
    color: #ff9900; /* AWS orange */
}

.publication-card {
    width: 100%;
    max-width: 800px; /* Optional: set a max-width to limit card width on larger screens */
    background-color: #fff;
    padding: 1.5em;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 0.5em;
    position: relative;
}

.publication-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1em;
}

.social-buttons {
    display: flex;
    gap: 30px; /* Space between icons */
    justify-content: center; /* Center-align icons */
    margin-top: 10px; /* Space above the buttons */
    margin-bottom: 0.5em;
    position: relative;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center; /* Center-align icons */
    width: 36px; /* Size of the button */
    height: 36px;
    border-radius: 50%; /* Makes the button round */
    color: #fff;
    transition: background-color 0.3s;
    text-decoration: none;
}

.social-btn i {
    font-size: 25px;
}

/* Hover effects */
.social-btn.linkedin:hover {
    background-color: #005582;
}

.social-btn.github:hover {
    background-color: #2b205c;
}

.social-btn.stackoverflow:hover {
    background-color: #d46918;
}

.social-btn.email:hover {
    background-color: #f32929;
}

/* Back-to-Top Button */
#backToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none; /* Hidden by default */
    width: 50px;
    height: 50px;
    background-color: #333; /* Dark background color */
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Slight shadow for depth */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Hover effect for button */
#backToTopBtn:hover {
    background-color: #555; /* Darker background on hover */
    transform: scale(1.1); /* Slightly larger on hover */
}

/* Show the button when scrolled down */
.show {
    display: block;
}

.email-dropdown {
    display: none; /* Initially hidden */
    position: absolute; /* Position relative to the closest positioned ancestor */
    background-color: #f3f3f3; /* Background color of the bubble */
    color: white; /* Text color */
    border: 1px solid #ccc; /* Border color */
    border-radius: 8px; /* Rounded corners */
    padding: 10px; /* Padding inside the bubble */
    z-index: 100; /* Ensure it is above other elements */
    width: max-content; /* Width adjusts to the content */
    top: 45px; /* Position above the button (adjust as necessary) */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional shadow for depth */
}

.email-dropdown::after {
    content: ''; /* Creates an arrow effect */
    position: absolute;
    left: 96%; /* Center the arrow */
    transform: translateX(-100%); /* Center the arrow */
    bottom: 100%; /* Position above the bubble */
    border-width: 5px; /* Size of the arrow */
    border-style: solid;
    border-color: transparent transparent white transparent; /* Triangle effect pointing down */
}


/* Show the email dropdown when active */
.show-email {
    display: block;
    top: 35px; /* Adjust the vertical position */
    left: 48.4%; /* Center it under the icon */
    transform: translateX(-50%); /* Center the dropdown */
}

.copy-email-btn {
    background-color: #f3f3f3; /* Dark background color */
    color: black; /* Text color */
    border: none; /* Remove border */
    border-radius: 4px; /* Rounded corners */
    padding: 8px 12px; /* Padding inside the button */
    cursor: pointer; /* Cursor on hover */
    transition: background-color 0.3s; /* Smooth transition */
}

.copy-email-btn:hover {
    background-color: #d8d3d3; /* Darker background on hover */
}

.phone-dropdown {
    display: none; /* Initially hidden */
    position: absolute; /* Position relative to the closest positioned ancestor */
    background-color: #f3f3f3; /* Background color of the bubble */
    color: white; /* Text color */
    border: 1px solid #ccc; /* Border color */
    border-radius: 8px; /* Rounded corners */
    padding: 10px; /* Padding inside the bubble */
    z-index: 100; /* Ensure it is above other elements */
    width: max-content; /* Width adjusts to the content */
    top: 45px; /* Position above the button (adjust as necessary) */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional shadow for depth */
}

.phone-dropdown::after {
    content: ''; /* Creates an arrow effect */
    position: absolute;
    left: 96%; /* Center the arrow */
    transform: translateX(-100%); /* Center the arrow */
    bottom: 100%; /* Position above the bubble */
    border-width: 5px; /* Size of the arrow */
    border-style: solid;
    border-color: transparent transparent white transparent; /* Triangle effect pointing down */
}


/* Show the email dropdown when active */
.show-phone {
    display: block;
    top: 35px; /* Adjust the vertical position */
    left: 55%; /* Center it under the icon */
    transform: translateX(-50%); /* Center the dropdown */
}

.copy-phone-btn {
    background-color: #f3f3f3; /* Dark background color */
    color: black; /* Text color */
    border: none; /* Remove border */
    border-radius: 4px; /* Rounded corners */
    padding: 8px 12px; /* Padding inside the button */
    cursor: pointer; /* Cursor on hover */
    transition: background-color 0.3s; /* Smooth transition */
}

.copy-phone-btn:hover {
    background-color: #d8d3d3; /* Darker background on hover */
}

.cv-card {
    width: 100%;
    max-width: 800px; /* Optional: set a max-width to limit card width on larger screens */
    background-color: #fff;
    padding: 1.5em;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 0.5em;
    position: relative;
}

.cv-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1em;
}

.gallery-certificates {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 20px;
}

.certificate-card {
    width: 25%;
    max-width: 800px; /* Optional: set a max-width to limit card width on larger screens */
    background-color: #fff;
    padding: 1.5em;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 0.5em;
    position: relative;
}

.certificate-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1em;
}

@media (max-width: 768px) {
    .certificate-card {
        width: 100%; /* Adjust width for smaller screens */
    }
}

