
/* src/styles.css */

/* General body styles */
body {
    font-family: 'Inter', sans-serif; /* Use Inter font */
    margin: 0;
    padding: 0;
    color: #333;
    height: 100vh; /* Full viewport height */
    background-size: 400% 400%; /* Allow for smooth animation */
    animation: gradientAnimation 10s ease infinite; /* Animation for the gradient */
    position: relative;
    overflow: auto;
    background-color: #f8f8f8;
}

/* Header styles */
header {
    display: flex;
    justify-content: center; /* Space between items */
    align-items: center;
    padding: 20px;
    background-color: #f8f8f8;
}

/* Main title styles */
h1 {
    font-weight: bold;
    font-size: clamp(16px, 2.5vw + 1rem, 18px); /* Responsive font size */
    margin: 0;
}

/* Menu toggle button styles */
.menu-toggle {
    display: block; /* Hidden by default */
    font-size: 28px;
    min-height: 40px;
    cursor: pointer;
    margin-left: auto; /* Push the hamburger menu to the right */
}

/* Close icon styles */
.close-icon {
    display: none; /* Hide close icon by default */
}

/* Navigation styles */
nav {
    display: flex;
    justify-content: space-between; /* Space between items */
    align-items: center;
    justify-content: center; /* Center items vertically */
    height: 100%; /* Full height */
    transition: max-height 0.5s ease-in-out;
}

/* Active navigation styles */
nav.active {
    display: flex; /* Show nav when active */
    animation: reveal 0.5s ease-in-out forwards;
}

nav.active li {
    display: flex;
    justify-content: center;
}

/* Reveal animation keyframes */
@keyframes reveal {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 500px; /* Match this with the max-height in nav.active */
        opacity: 1;
    }
}

/* Navigation title styles */
.nav-title {
    font-weight: bold; /* Make the title bold */
    margin-right: auto; /* Push the title to the left */
    padding-right: 20px; /* Add some space to the right */
}

/* Navigation list styles */
nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center; /* Center the nav items */
}

/* Navigation list item styles */
nav ul li {
    margin: 0 20px; /* Equal margin on both sides */
    display: flex;
    align-items: center;
}

/* Link styles */
#nav-links a {
    text-decoration: none; /* Remove underline */
    font-weight: bold; /* Bold text */
    display: flex;
    align-items: center;
}

#nav-links li .lucide {
    margin-right: 4px;
}

#nav-links a:hover {
    text-decoration: underline;
}

/* Navigation link styles */
nav ul li a {
    text-decoration: none;
    cursor: pointer;
    text-decoration: underline;
}

/* Main content styles */
main {
    max-width: 950px; /* Adjusted width for better alignment */
    margin: 10px auto; /* Center the main content */
    padding: 10px;
}

h3 {
    color: #5683a2;
}

h2,.hi,.devops {
    color: #454545;
}

/* Subheading styles */
h2,h3 {
    font-size: clamp(24px, 3vw + 1rem, 28px); /* Responsive font size */
    margin-top: 0;
    text-align: center; /* Center the name */
}

h2 .lucide {
    width: 32px;
    height: 32px;
}

/* Smaller heading styles */
h3 {
    font-size: clamp(20px, 2.5vw + 1rem, 24px); /* Responsive font size */
}

/* Paragraph styles */
p {
    font-size: clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.455), 18px); /* Responsive font size */
    line-height: 1.4; /* Line height */
}

/* List item styles */
li {
    font-size: clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.455), 20px); /* Responsive font size */
    line-height: 1.4; /* Line height */
}

/* Footer styles */
footer {
    text-align: center;
    padding: 20px;
    background-color: #f8f8f8;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Mobile Styles */
@media (max-width: 768px) {
    nav {
        display: none; /* Hide nav by default */
        flex-direction: column; /* Stack items vertically */
        position: absolute;
        top: 60px; /* Position below the header */
        right: 0;
        background-color: #f8f8f8;
        width: 100%;
        z-index: 1;
        transition: max-height 0.3s ease-in-out; /* Smooth transition */
        overflow: hidden; /* Hide overflow */
        max-height: 0; /* Start with height 0 */
    }

    nav.active {
        display: flex; /* Show nav when active */
        max-height: 200px; /* Set a max height for the expanded menu */
    }

    nav ul {
        flex-direction: column; /* Stack links vertically */
        width: 100%;
    }

    nav ul li {
        margin: 10px 0; /* Space between links */
        text-align: center; /* Center the links */
    }

    .nav-title {
        display: block; /* Ensure title is visible in mobile view */
        text-align: center; /* Center the title */
        padding: 10px 0; /* Add some padding */
    }
}

/* Tablet and Desktop Styles */
@media (min-width: 769px) {
    h1 {
        font-size: clamp(16px, 2.5vw + 1rem, 18px); /* Larger font size for desktop */
    }

    h2 {
        font-size: clamp(28px, 3vw + 1rem, 36px); /* Larger font size for desktop */
    }

    h3 {
        font-size: clamp(24px, 2.5vw + 1rem, 28px); /* Larger font size for desktop */
    }

    p {
        font-size: clamp(16px, 0.875rem + ((1vw - 3.2px) * 0.455), 20px); /* Larger font size for desktop */
    }

    .menu-toggle {
        display: none; /* Hide the hamburger icon on larger screens */
    }
}

/* Custom link styles */
.custom-link {
    color: #0693e3; /* Set link color to sky blue */
    text-decoration: none; /* Remove underline */
    cursor: pointer;
}

/* General link styles */
a {
    /* Set link color */
    /* color: #0693e3; */
    color: #5683a2;
    font-weight: bold;
    text-decoration: none; /* Dotted underline */
    cursor: pointer;
}
a:hover {
    text-decoration: underline;
}

/* Visited link styles */
/* a:visited { */
    /* Keep the same color for visited links */
    /* color: red;  */
/* } */

/* Custom link styles */
.custom-link {
    color: #333;
    text-decoration: none; /* Add underline on hover for better UX */
}
.custom-link:hover {
    text-decoration: underline; /* Add underline on hover for better UX */

    cursor: pointer;
}

/* Avatar styles */
.avatar {
    display: block; /* Center the image */
    margin: 0 auto 20px; /* Center and add space below */
    width: 112px; /* Set a width for the avatar */
    height: 112px; /* Set a height for the avatar */
    border-radius: 0%; /* Make the image rounded */
    object-fit: cover; /* Ensure the image covers the area */
}

/* small {
    color: #3b3b3b;
} */

a.github,a.twitter,a.cks-handbook,a.kubestronaut,a.aws-certified,a.linkedin {
    padding: 0px 5px 0px 5px;
    color: white;
    border-radius: 4px;
}

a.github,a.twitter {
    background-color: #444;
}

a.cks-handbook {
    /* background: linear-gradient(90deg, #a78bfa, #60a5fa); */
    background: linear-gradient(90deg, #a78bfa);
}

a.kubestronaut {
    background-color: #326CE5;
}

a.aws-certified {
    background-color: #FF9900;
}

a.linkedin {
    background-color:  #0A66C2;
}

.heading {
    display: flex;
    justify-content: center;
    align-items: center;
}

.heading img {
    width: 50px;
}

.wave-emoji {
    font-size: 30px;
}
