:root {
    --primary-color: #29a598;
    --secondary-color: #394c4a;
    --background-dark: #121212; /* Dark background */
    --background-light: #ffffff;
    --header-height: 100vh;
    --accent-color: #ffbc4b;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Work Sans', Helvetica, sans-serif;
    color: #333; 
    line-height: 1.6;
    background-color: #FFDAB9;
    overflow-x: hidden;
    
}

/* Header Styles */
.header-background {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)),
                url("https://i.imgur.com/XCgZt9f.jpg") center center fixed;
    background-size: cover;
    height: var(--header-height);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--background-light);
    position: relative;
    background-color: #FFE5B4;
}

nav {
    width: 100%;
    position: fixed; /* Fixed navigation bar */
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px 0;
    z-index: 1000; /* Ensure it's above other content */
}

nav ul {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-family: 'Unica One', cursive;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.header-content img {
    max-width: 250px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.header-content h1 {
    font-family: 'Unica One', cursive;
    font-size: 2.5rem;
    margin: 0;
}

.header-content p {
    font-size: 1.2rem;
    margin: 5px 0 0;
}

/* Link Styles (GitHub, LinkedIn, Email, Phone) */
.link-boxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
    text-align: center;
}

.github-link,
.linkedin-link,
.email-link,
.phone-link {
    display: block;
    margin: 0 auto;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid var(--primary-color);
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.github-link:hover,
.linkedin-link:hover,
.email-link:hover,
.phone-link:hover {
    background: var(--primary-color);
    color: white;
}

.phone-link {
    color: #4CAF50; /* Green for phone */
    border: 2px solid #4CAF50;
}

.phone-link:hover {
    background: #4CAF50;
    color: white;
}

/* Section Styles */
section {
    padding: 40px 20px;
    margin: 20px auto;
    max-width: 800px;
    text-align: center;
    background: var(--background-dark); /* Dark background for sections */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h2 {
    color: var(--primary-color);
    font-family: 'Unica One', cursive;
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Button Styles */
.td-btn {
    padding: 10px 20px;
    font-size: 1rem;
    text-transform: uppercase;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.td-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Responsive Styles */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .header-content img {
        max-width: 150px;
    }

    .project {
        width: 140px;
        height: 140px;
        line-height: 140px;
    }

    section {
        padding: 20px 10px;
    }

    .link-boxes {
        grid-template-columns: 1fr; /* Stacks the links in a single column on smaller screens */
    }
}

nav ul li a.download-cv {
    background: #007BFF; /* Blue background */
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Unica One', cursive;
    transition: background 0.3s ease-in-out;
    display: inline-block;
}

nav ul li a.download-cv:hover {
    background: #0056b3; /* Darker blue when hovered */
}

#education {
    background-color: var(--background-dark); /* Dark background for education section */
    padding: 40px 20px;
    margin: 20px auto;
    max-width: 800px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.diploma {
    margin-bottom: 30px;
    padding-bottom: 20px; /* Adds spacing below each diploma */
     border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color); /* Line after each diploma */
}

.diploma-name {
    font-size: 1.5rem; 
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

.school {
    font-size: 1.2rem; /* Smaller font size for school name */
    color: white;
}

.status {
    font-size: 1.2rem; /* Even smaller font size for the status */
    font-style: italic;
    color: white;
}

#skills {
    background-color: var(--background-dark);
    padding: 40px 20px;
    margin: 20px auto;
    max-width: 800px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#skills h2 {
    font-size: 2rem; /* Same size as About Me title */
    color: var(--primary-color); /* Same color as About Me title */
    font-family: 'Unica One', cursive; /* Same font family as About Me title */
    margin-bottom: 30px;
    text-transform: uppercase; /* Same text styling */
}

.skill-category {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color); /* Line after each skill category */
}

.skill-category h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 10px;
}

.skill-category p {
    font-size: 1.2rem;
    color: white;
}

#skills .skills-additional {
    color: #ffffff; /* White text color */
    font-size: 1.1rem; /* Slightly larger than normal text */
    line-height: 1.6;
    margin-top: 20px;
    font-weight: normal;
    text-align: center; /* Center the additional text */
}

.project {
    display: inline-block;
    width: 180px;
    height: 180px;
    margin: 15px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    line-height: 180px;
    font-size: 1rem;
    color: var(--primary-color);
    text-align: center;
    background: #f8f8f8;
    transition: transform 0.3s, background 0.3s;
    padding-bottom: 10px; /* Space for the description */
}

.project:hover {
    transform: translateY(-5px);
    background: var(--primary-color);
    color: white;
}

.project-link {
    text-decoration: none;
    display: block;
    color: var(--primary-color);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
}

.project-description {
    font-size: 0.9rem;
    color: white;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 5px;
}

.project-description:hover {
    color: white; /* Slight color change on hover */
}
