:root {
    --mainBackground: #333333;       /* Dark Background */
    --secondaryBackground: #505050;  /* Slightly Lighter Background */
    --siteTxt: #EBFFFF;              /* Primary Text Color */
    --siteTxtHover: #ABABAB;         /* Text Hover Color */
    --mainNavLink: #FFD700;          /* Gold for Navigation Links */
    --hoverColor: #4B0082;           /* Indigo for Hover States */
    --logo-color: #c04f4f;
    --logo-letter-color: #6a737b;
}

/********** Global Styles **********/
body {
    background-color: var(--mainBackground);
    background-image: url('../img/jt-website-BG.png');
    color: var(--siteTxt);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: var(--mainBackground);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    color: var(--logo-color);
    font-size: 1.3rem;
    background-color: rgba(0, 0, 0, 0.2);
}

.logoNameLetters {
    color: var(--logo-letter-color);
}

/********** Main Content Area **********/
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin: 40px 0;
    font-size: 3rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.featured {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-images a {
    border: none;
}

/* Alternative layout using CSS Grid for more control */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px;
}

.featured-images {
    display: flex;
    gap: 10px;
}
/********** Navigation Bar **********/
.navBar {
    display: flex;
    justify-content: flex-end;
}

.navBar ul {
    list-style: none;
    display: flex;
}

.navBar ul li {
    display: flex;
    margin: 0 10px;
}

.nav-link {
    border: 2px solid currentColor;
    border-radius: 3rem;
    color: var(--mainNavLink);
    font-size: 1rem;
    font-weight: 100;
    overflow: hidden;
    padding: 0.5rem 1.5rem;
    position: relative;
    text-decoration: none;
    transition: 0.3s all ease-in-out;
    z-index: 0;
}

.nav-link::after {
    background-color: var(--mainNavLink);
    border-radius: 3rem;
    content: '';
    display: block;
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-100%, 0) rotate(10deg);
    transform-origin: top left;
    transition: 0.3s transform ease-out;
    z-index: -1;
}

.nav-link:hover::after {
    transform: translate(0, 0);
}

.nav-link:hover {
    border: 2px solid transparent;
    color: var(--hoverColor);
    transform: scale(1.05);
}

/********** Portfolio Section **********/
.portfolio-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.portfolio-area_item {
    background-color: var(--secondaryBackground);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-area_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.portfolio-area_item a {
    color: var(--siteTxt);
    text-decoration: none;
}

.portfolio-area_item a:hover {
    color: var(--siteTxtHover);
}

.itemImg img {
    height: 200px;
    width: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.parksAppImg {
    display: flex;
    gap: 10px;
}

/********** CSS-Only Image Modal **********/
/* Hide the modal checkboxes */
.image-modal-toggle {
    display: none;
}

/* Style the clickable images as labels */
.clickable-img {
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.clickable-img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Modal overlay - hidden by default */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Show modal when checkbox is checked */
.image-modal-toggle:checked + .image-modal {
    opacity: 1;
    visibility: visible;
}

/* Modal content */
.modal-background-close {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 0; 
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    z-index: 1;
}

.image-modal img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

/* Close button */
.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--siteTxt);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: none;
    line-height: 1;
}

.image-modal-close:hover {
    color: var(--mainNavLink);
}

/********** Carousel Styles **********/
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Hide the radio buttons */
.carousel-container input[name="image-carousel"] {
    display: none;
}

.carousel-slides {
    width: 100%;
    height: 100%;
}

.carousel-slide {
    display: none; /* Hide all slides by default */
    width: 100%;
    height: 100%;
    text-align: center;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: auto;
    height: auto;
}

/* Show the active slide based on the checked radio button */
#carousel-img1:checked ~ .carousel-slides .carousel-slide:nth-of-type(1),
#carousel-img2:checked ~ .carousel-slides .carousel-slide:nth-of-type(2),
#carousel-img3:checked ~ .carousel-slides .carousel-slide:nth-of-type(3),
#carousel-img4:checked ~ .carousel-slides .carousel-slide:nth-of-type(4),
#carousel-img5:checked ~ .carousel-slides .carousel-slide:nth-of-type(5),
#carousel-img6:checked ~ .carousel-slides .carousel-slide:nth-of-type(6) {
    display: block;
}

/* --- Navigation --- */
.carousel-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Make container non-clickable */
}

/* Hide all nav labels by default */
.carousel-nav label {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 20px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    pointer-events: auto; /* Make labels clickable */
    user-select: none;
    z-index: 10;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.carousel-nav label.prev {
    left: 10px;
}
.carousel-nav label.prev::before {
    content: '‹';
}

.carousel-nav label.next {
    right: 10px;
}
.carousel-nav label.next::before {
    content: '›';
}

/* Show the nav for the active slide */
#carousel-img1:checked ~ .carousel-nav label:nth-of-type(1),
#carousel-img1:checked ~ .carousel-nav label:nth-of-type(2),
#carousel-img2:checked ~ .carousel-nav label:nth-of-type(3),
#carousel-img2:checked ~ .carousel-nav label:nth-of-type(4),
#carousel-img3:checked ~ .carousel-nav label:nth-of-type(5),
#carousel-img3:checked ~ .carousel-nav label:nth-of-type(6),
#carousel-img4:checked ~ .carousel-nav label:nth-of-type(7),
#carousel-img4:checked ~ .carousel-nav label:nth-of-type(8),
#carousel-img5:checked ~ .carousel-nav label:nth-of-type(9),
#carousel-img5:checked ~ .carousel-nav label:nth-of-type(10),
#carousel-img6:checked ~ .carousel-nav label:nth-of-type(11),
#carousel-img6:checked ~ .carousel-nav label:nth-of-type(12) {
    display: block;
}

/********** Read More Toggle **********/
.modal-toggle {
    display: none; /* Hide the checkbox */
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: var(--mainNavLink);
    text-decoration: underline;
    cursor: pointer;
    position: relative;
}

.read-more::after {
    content: "Read More";
}

.modal-toggle:checked + .read-more::after {
    content: "Close";
}

.portfolio-area_item-description {
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: opacity 1s ease-in-out, max-height 1s ease-in-out;
}

.modal-toggle:checked ~ .portfolio-area_item-description {
    opacity: 1;
    visibility: visible;
    max-height: 1000px; /* Arbitrary large value to allow the content to be fully visible */
}

/* Optional: Add styling for the Close link */
.modal-close {
    display: inline-block;
    margin-top: 20px;
    color: var(--mainNavLink);
    text-decoration: underline;
    cursor: pointer;
}

.mailMe,
.mailMe:visited,
.mailMe:active {
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}

.mailMe:hover {
  color: AccentColor;
}

/********** Testing/Experimental **********/
#button-container {
	display: grid;
	grid-template-columns: repeat(3, minmax(300px, 1fr));
	gap: 10px;
	margin-bottom: 20px;
}

.parkBtn {
	box-shadow: 0px 10px 14px -7px #276873;
	background:linear-gradient(to bottom, #599bb3 5%, #408c99 100%);
	background-color:#599bb3;
	border-radius:8px;
	display:inline-block;
	cursor:pointer;
	color:#ffffff;
	font-family:Arial;
	font-size:20px;
	font-weight:bold;
	padding:13px 32px;
	text-decoration:none;
	text-shadow:0px 1px 0px #3d768a;
}
.parkBtn:hover {
	background:linear-gradient(to bottom, #408c99 5%, #599bb3 100%);
	background-color:#408c99;
}
.parkBtn:active {
	position:relative;
	top:1px;
}

/* Add your styling here to make it look visually appealing */
#data-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 20px;
}

.item {
    border: 1px solid #ccc;
    padding: 15px;
	border-radius: 5px;
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.item > h3 {
	margin-top: 0;
	color: #333;
}

.item p {
	margin: 5px 0;
}

.item strong {
	font-weight: bold;
}

.error {
	text-align: center;
	color: red;
}

.resume-link {
    color: var(--mainNavLink);
    color: inherit;
    text-decoration: none;
}

/********** Footer **********/
.footer {
    background-color: #292929;
    padding: 20px;
    text-align: center;
    color: var(--siteTxt);
    width: 100%;
    margin-top: auto;
}

/********** Responsive Design **********/
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-link {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .parksAppImg {
        flex-direction: column;
    }
    
    .image-modal-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .image-modal-close {
        top: -30px;
        font-size: 30px;
    }
}