:root {
    --primary-color: #00ff00;
    /* Bright Green */
    --secondary-color: #0d0d0d;
    /* Near Black */
    --background-color: #000000;
    /* Black */
    --text-color: #00ff00;
    /* Bright Green */
    --card-background: #1a1a1a;
    /* Dark Gray */
    --transparent-background: rgba(0, 0, 0, 0.7);
    --shadow: 0 4px 6px rgba(0, 255, 0, 0.1);
    --border-radius: 0px;
}

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

body {
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.6;
    background: url('../img/background.png') no-repeat center center/cover;
    background-attachment: fixed;
    color: var(--text-color);
    scroll-behavior: smooth;
}

header {
    background-color: var(--background-color);
    color: var(--primary-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--primary-color);
}

nav {
    background-color: var(--background-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}

nav .logo a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    background-color: transparent;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #008000;
    /* Darker Green */
}

main {
    padding-top: 60px;
    /* Adjust for fixed header */
    padding-bottom: 80px;
    /* Adjust for fixed footer */
    background-color: transparent;
}

section {
    padding: 4rem 2rem;
    text-align: center;
    background-color: var(--transparent-background);
}

section:last-of-type {
    border-bottom: none;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
}

#hero {
    position: relative;
    /* Needed for overlay */
    color: var(--primary-color);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    /* Ensures graphic doesn't spill */
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: var(--transparent-background); */
    /* Removed for full transparency */
    z-index: 1;
    /* Ensures overlay is above background but below content */
}

#hero .hero-content {
    position: relative;
    /* Ensures content is above overlay */
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    /* Add some padding for the "frame" effect */
    background-color: var(--transparent-background);
    /* Semi-transparent background for the content frame */
    border: 2px solid var(--primary-color);
    /* Frame border */
    box-shadow: 0 0 20px var(--primary-color);
    /* Glow effect for the frame */
}

#hero .hero-content {
    max-width: 800px;
}

#hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--primary-color);
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: transparent;
    color: var(--primary-color);
    padding: 1rem 2rem;
    text-decoration: none;
    border: 1px solid var(--primary-color);
    transition: background-color 0.3s, color 0.3s;
}

.cta-button:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
}

#about .about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

#about img {
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary-color);
    border: 2px solid var(--primary-color);
    opacity: 0.7;
}




#projects .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: var(--transparent-background);
    border: 1px solid var(--primary-color);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 15px var(--primary-color);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--primary-color);
}

.project-card h3 {
    font-size: 1.5rem;
    margin: 1rem;
    color: var(--primary-color);
}

.project-card p {
    padding: 0 1rem 1rem;
}

.project-card a {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 1rem 1rem;
    background-color: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border: 1px solid var(--primary-color);
    transition: background-color 0.3s, color 0.3s;
}

.project-card a:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
}



footer {
    background-color: var(--background-color);
    color: var(--primary-color);
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid var(--primary-color);
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 0.5rem 1rem;
    text-decoration: none;
    display: none;
    transition: opacity 0.3s;
    border: 1px solid var(--primary-color);
}

.back-to-top:hover {
    background-color: #008000;
}

#certifications img {
    width: 150px;
    /* Adjust size as needed */
    height: 150px;
    /* Adjust size as needed */
    border: 1px solid var(--primary-color);
    padding: 10px;
    background-color: var(--transparent-background);
}

footer .social-media-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

footer .social-media-icons a {
    display: inline-block;
    transition: transform 0.3s;
}

footer .social-media-icons a:hover {
    transform: translateY(-5px);
}

footer .social-media-icons img {
    width: 30px;
    height: 30px;
    filter: invert(1);
    /* Invert color to make them visible on black background */
}

/* Mobile Responsiveness */
/* Tablet and below (768px) */
@media (max-width: 768px) {

    /* Navigation */
    nav {
        width: 95%;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    nav ul li {
        margin-left: 0;
    }

    /* Hero section */
    #hero h1 {
        font-size: 2.5rem;
    }

    #hero p {
        font-size: 1rem;
    }

    /* Section headings */
    section h2 {
        font-size: 2rem;
    }

    /* Reduce padding */
    section {
        padding: 2rem 1rem;
    }

    /* Footer icons - make smaller */
    footer .social-media-icons {
        gap: 1rem;
    }

    footer .social-media-icons img {
        width: 24px;
        height: 24px;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    #hero h1 {
        font-size: 2rem;
    }

    nav .logo a {
        font-size: 1.2rem;
    }

    section h2 {
        font-size: 1.5rem;
    }
}