/* General Styles */
:root {
    --primary-green: #00FF00; /* New accent color for binary */
    --dark-grey: #333333; /* Dark background */
    --medium-grey: #555555; /* Secondary dark */
    --light-grey: #e0e0e0; /* For text and lighter backgrounds */
    --white: #ffffff;
    --black: #000000;
    --primary-blue: #0000FF; /* Re-introducing a blue color */
}

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

body {
    font-family: 'Roboto', sans-serif; /* Changed font */
    line-height: 1.6;
    color: var(--light-grey);
    background-color: var(--dark-grey);
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

/* Header and Navigation */
.header {
    background-color: var(--black);
    color: var(--white);
    padding: 1rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: auto;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-green);
}

/* Hero Section */
.hero-section {
    background-color: var(--dark-grey);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
    height: 100vh; /* Make it full height */
}

.hero-background-binary {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/landing.png'); /* Use the new landing image as background */
    background-size: cover;
    background-position: center;
    opacity: 0.2; /* Adjust opacity as needed */
    z-index: 0;
}

.hero-content {
    text-align: left;
    z-index: 1;
    padding-left: 10%;
    flex: 1;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 5px;
    color: var(--light-grey);
}

.hero-content p.devsecop {
    font-size: 1.2rem;
    color: var(--light-grey);
    margin-bottom: 30px;
}

.hero-image-container {
    z-index: 1;
    padding-right: 10%;
}

.hero-image-container img {
    width: 350px; /* Adjust size as needed */
    height: 350px; /* Adjust size as needed */
    object-fit: cover;
    border-radius: 50%; /* Make it circular */
    border: 5px solid var(--primary-green); /* Green border */
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-block;
    width: 40px; /* Larger icons */
    height: 40px;
    background-color: var(--light-grey);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-green);
}

.social-links img {
    width: 25px;
    height: 25px;
}

/* About Section */
.about-section {
    padding: 50px 0;
    text-align: center;
    background-color: var(--light-grey);
    color: var(--dark-grey);
}

.about-section h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--dark-grey);
}

.about-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--medium-grey);
}

.btn-explore {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 50px;
    transition: background-color 0.3s ease;
}

.btn-explore:hover {
    background-color: #00cc00;
}

.services-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
}

.service-item {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    padding: 20px;
    border: 1px solid var(--medium-grey);
    text-align: center;
    background-color: var(--white);
    color: var(--dark-grey);
}

.service-item h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-green);
}

.service-item p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
    color: var(--medium-grey);
}

/* Skills Section */
.skills-section {
    padding: 50px 0;
    text-align: center;
    background-color: var(--dark-grey);
}

.skills-section h3,
.skills-section h4 {
    color: var(--light-grey);
    margin-bottom: 20px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100px;
}

.skill-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.skill-item span {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--light-grey);
}

.languages-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.language-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 120px;
}

.language-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.language-item span {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--light-grey);
}

/* Portfolio Section */
.portfolio-section {
    background-image: url('../img/Portfolio.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 100px 0;
    position: relative;
    background-color: var(--dark-grey); /* Fallback */
}

.portfolio-section .container {
    z-index: 1;
    position: relative;
}

.portfolio-section h3 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    display: inline-block; /* To allow background and padding */
    padding: 10px 30px; /* Adjust padding as needed */
    border: 2px solid var(--light-grey); /* Border from the image */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    color: var(--white); /* Text color */
}

.portfolio-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 30px;
}

.portfolio-nav-item {
    color: var(--light-grey);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 5px 10px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.portfolio-nav-item.active,
.portfolio-nav-item:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.portfolio-item {
    margin-top: 30px;
    display: flex;
    justify-content: center; /* Center the image */
}

.portfolio-item img {
    max-width: 800px; /* Adjust max-width to match resume.png scale */
    width: 90%; /* Responsive width */
    height: auto;
    border: 5px solid var(--light-grey);
    margin-bottom: 20px;
}

.btn-portfolio {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.btn-portfolio:hover {
    background-color: #00cc00;
}

/* Contact Section */
.contact-section {
    background-color: var(--light-grey); /* Changed background */
    color: var(--dark-grey);
    padding: 50px 0;
    text-align: center;
}

.contact-section h3 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--dark-grey);
}

.contact-buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 600px;
    margin: auto;
}

.contact-item-wrapper {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border: 1px solid var(--medium-grey);
    border-radius: 5px;
    padding: 10px 20px;
    width: 100%;
    max-width: 400px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.contact-item-wrapper:hover {
    background-color: var(--white); /* Keep background white on hover */
    border-color: var(--dark-grey); /* Keep border dark on hover */
}

.contact-item-wrapper:hover .contact-text {
    color: var(--primary-green); /* Change text to green on hover */
}

.contact-icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; /* Consistent size for clickable area */
    height: 40px; /* Consistent size for clickable area */
    margin-right: 15px;
    text-decoration: none;
    background-color: var(--dark-grey); /* Dark background for clickable icon area */
    border-radius: 5px; /* Optional: adds rounded corners to the background */
    transition: background-color 0.3s ease; /* Add transition for smooth hover */
}

.contact-icon-button:hover {
    background-color: var(--primary-blue); /* Blue background on hover */
}

.contact-icon-button img {
    width: 25px; /* Same size as footer LinkedIn */
    height: 25px; /* Same size as footer LinkedIn */
    filter: invert(100%); /* Invert colors for white icons on dark background */
}

.contact-text {
    font-size: 1.1rem;
    color: var(--dark-grey);
    flex-grow: 1;
    text-align: left;
}

/* Footer */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 20px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: auto;
}

.social-links-footer a img {
    width: 25px;
    height: 25px;
    margin-left: 15px;
    filter: invert(100%); /* Invert colors for dark background */
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }

    .nav-links {
        margin-top: 10px;
    }

    .nav-links li {
        margin: 0 10px;
    }

    .hero-section {
        flex-direction: column-reverse;
        height: auto;
        padding: 30px 0;
    }

    .hero-content {
        padding: 20px;
        text-align: center;
    }

    .hero-image-container {
        padding: 20px;
    }

    .hero-image-container img {
        width: 200px;
        height: 200px;
    }

    .social-links {
        justify-content: center;
    }

    .services-grid {
        flex-direction: column;
        align-items: center;
    }

    .service-item {
        max-width: 90%;
    }

    .skills-grid, .languages-grid {
        gap: 20px;
    }

    .skill-item, .language-item {
        width: 80px;
    }

    .skill-item img, .language-item img {
        width: 40px;
        height: 40px;
    }

    .portfolio-section {
        padding: 50px 0;
    }

    .portfolio-nav {
        flex-direction: column;
        gap: 15px;
    }

    .contact-form {
        width: 90%;
    }

    .contact-buttons-container {
        width: 90%;
    }

    .contact-item-wrapper {
        flex-direction: row;
        text-align: left;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .social-links-footer {
        margin-top: 10px;
    }

    .social-links-footer a {
        margin: 0 5px;
    }
}

.language-selector {
    margin-top: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.lang-button {
    background-color: var(--white);
    color: var(--black);
    padding: 10px 20px;
    border: 1px solid var(--black);
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.lang-button:hover,
.lang-button.active {
    background-color: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
} 