/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

main {
    padding: 20px;
}

/* Header and Navigation */
header {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;


    .hero-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover; /* Ensure images cover the section */
        background-position: center;
        opacity: 0; /* Start fully transparent */
        transition: opacity 1s ease-in-out; /* Smooth fade effect */
    }
    
    .hero-image.show {
        opacity: 1; /* Fade in the image */
    }
    
}#hero {
    position: relative;
    height: 100vh; /* Full viewport height */
    background-size: cover; /* Ensure the images cover the section */
    background-position: center; /* Center the images */
    transition: background-image 1s ease-in-out; /* Smooth transition */
}

.fade-out {
    animation: fadeOut 1s ease-in-out; /* Fade-out animation */
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}


@keyframes fade {
    from { opacity: 0.5; }
    to { opacity: 1; }
}


nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    background-color: #444;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ff6600;
    text-decoration: underline;
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh; /* Full viewport height */
    background-size: cover; /* Ensure the images cover the section */
    background-position: center; /* Center the images */
    animation: fade 1.5s ease-in-out; /* Optional fade effect */
}

@keyframes fade {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

.hero-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

#hero h2 {
    animation: slideIn 1.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Image Credit */
.image-credit {
    position: absolute; /* Ensures it overlays the image */
    bottom: 10px; /* Aligns at the bottom */
    right: 10px; /* Aligns to the right */
    font-size: 12px; /* Subtle text size */
    color: #FFD700; /* Yellow color (golden shade) */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background for readability */
    padding: 5px; /* Adds spacing around text */
    border-radius: 5px; /* Softens edges */
    z-index: 10; /* Places it above other content */
    text-align: right;
    margin-top: -15px; /* Position close to the image */
}

/* Target Sections */
.target {
    margin: 20px 0;
    padding: 15px;
    background-color: #f1f1f1;
    border-left: 5px solid #ff6600;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.target h2 a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.target h2 a:hover {
    color: #ff6600;
}

.target p {
    margin: 10px 0 0;
    color: #555;
    font-size: 1em;
}

/* Button Links */
.target-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.target-links .button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff6600;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.target-links .button:hover {
    background-color: #cc5200;
    transform: scale(1.05);
}

/* Gallery */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    padding: 20px;
}

.gallery-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.gallery-container img:hover {
    transform: scale(1.05);
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animations */
.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

.hidden.show {
    opacity: 1;
    transform: translateY(0);
}

section {
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Footer */
footer {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: #fff;
    margin-top: 20px;
}

/* Hover Effects for Links */
a:hover {
    color: #ff6600;
    text-decoration: underline;
    transition: all 0.3s ease-in-out;
}

/* External Projects Links */
#external-projects a {
    color: #ff6600;
    text-decoration: none;
    font-weight: bold;
}

#external-projects a:hover {
    color: #cc5200;
    text-decoration: underline;
}
