:root {
    --primary-color: #569fe4; /* BlueViolet */
    --secondary-color: #340058; /* Indigo */
    --text-color: #ffffff;
    --background-gradient: linear-gradient(135deg, #460080, #4e1fa5);
    --card-background: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background-gradient);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

main {
    padding-top: 80px;
}

section {
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#hero {
    min-height: 100vh;
    text-align: center;
}

.hero-text h1 {
    font-size: 4rem;
}

.hero-text p {
    font-size: 2rem;
}

.typed {
    color: var(--primary-color);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

h2 .fas {
    margin-right: 10px;
    color: var(--primary-color);
}

p {
    max-width: 800px;
    text-align: center;
    margin-bottom: 2rem;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    width: 80%;
}

.skill {
    width: 30%;
    text-align: center;
}


.projects-container  {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}

.articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}

.project-card, .article-card {
    background: var(--card-background);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover, .article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info, .article-info {
    padding: 1.5rem;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-color);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    margin-top: 1rem;
}

.btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.download-btn {
    background: #5a3e8e;
    margin-left: 10px;
}

#load-more-projects {
    margin-top: 2rem;
}

.certifications-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.certification-item img{
    
  display: block; /* Converts the image to a block-level element */
  margin: auto;   /* Centers the image horizontally by setting equal left/right margins */
  width: 50%;     /* Example: Set a specific width for the image */
}
    
    
    

#contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

#contact-form input, #contact-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid transparent;
    padding: 1rem;
    border-radius: 5px;
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.3s;
}

#contact-form label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    transition: all 0.3s ease;
}

#contact-form input:focus, #contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

#contact-form input:focus + label, 
#contact-form textarea:focus + label,
#contact-form input:valid + label, 
#contact-form textarea:valid + label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.8rem;
    color: var(--primary-color);
    background: #6a1b9a;
    padding: 0 5px;
}

footer {
    text-align: center;
    padding: 2rem 0;
    background: rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        height: 92vh;
        top: 8vh;
        background: var(--secondary-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .burger {
        display: block;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-text p {
        font-size: 1.5rem;
    }

    .skill {
        width: 100%;
    }
}