/* Variables - Updated for green and red color scheme */
:root {
    --secondary-color: #2e8b57; /* Sea Green */
    --primary-color: #c23b22; /* Brick Red */
    --dark-color: #2c3e50;
    --light-color: #f4f4f4;
    --neutral-background: #f8f9fa;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--neutral-background);
    padding-top: 70px; /* Account for fixed header */
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 1.0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    position: relative; /* Ensure positioning for the hover effect */
}

.logo-subtitle {
    color: var(--primary-color);
    font-weight: 600;
}

.logo:hover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 110%; /* Position the image to the right of the logo */
    transform: translateY(-50%) scale(0.75); /* Scale the image by 25% in both dimensions */
    width: 100px; /* Adjust width as needed */
    height: 100px; /* Adjust height as needed */
    /*background-image: url('img/jd.png');*/
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--dark-color);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

.section {
    padding: 3rem 0; /* Keep original padding or adjust as needed */
}

/* Alternate Section Backgrounds */
section:nth-of-type(odd) { /* Target 1st (About), 3rd, etc. */
    background-color: #fff; /* White background */
}

section:nth-of-type(even) { /* Target 2nd (Experience), 4th, etc. */
    background-color: var(--neutral-background); /* Light grey background (matches body) */
}

/* About Section Styles */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.about-intro {
    padding-right: 1rem;
}

/* Contact Styles */
.contact-info {
    margin-top: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: white;
    transition: all var(--transition-speed) ease;
}

.social-link:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Skills Styles - Updated for green color scheme */
.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skills-category h3 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background-color: rgba(46, 139, 87, 0.15); /* Light green background */
    color: black; /* Black text as requested */
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    font-size: 0.9rem;
    border: 1px solid rgba(46, 139, 87, 0.3); /* Border for better contrast */
}

/* Experience Section Styles */
.experience-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.experience-card {
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--card-shadow);
    padding: 1.5rem; /* Padding will be on the content wrapper now */
    transition: all var(--transition-speed) ease; /* Keep existing transition */
    position: relative; /* Needed for overlay positioning */
    overflow: hidden; /* Needed to contain overlay */
    background-size: contain; /* Scale logo down to fit */
    background-repeat: no-repeat;
    background-position: center center; /* Center the logo */
    z-index: 0; /* Ensure card is behind positioned content */
}

.experience-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.experience-company {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.experience-card ul {
    padding-left: 1.2rem;
}

.experience-card li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* --- ADD Background Logos and Readability Overlay --- */

#trinity-card { /* TrinityVR */
    background-image: url('../img/trinity.png');
}

#redcandygames-card { /* RedCandy Games */
    background-image: url('../img/redcandy.png');
}

/* Add a semi-transparent overlay */
.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.00); /* White overlay, 0% opaque */
    z-index: 1; /* Overlay is above background */
    border-radius: 6px; /* Match card radius */
    transition: background-color var(--transition-speed) ease; /* Optional: transition overlay */
}

/* Optional: Slightly fade overlay on hover */
.experience-card:hover::before {
     background-color: rgba(255, 255, 255, 0.95); /* Make overlay slightly more transparent */
}

/* Ensure all direct text content is above the overlay */
.experience-card > h3,
.experience-card > div, /* Catches the company name div */
.experience-card > ul {
    position: relative; /* Allow z-index */
    z-index: 2; /* Text content is above overlay */
}
/* --- End Background Logos section --- */


/* Project Tags - Updated for red color scheme */
.project-tag {
    background-color: rgba(194, 59, 34, 0.15); /* Light red background */
    color: black; /* Black text as requested */
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    border: 1px solid rgba(194, 59, 34, 0.3); /* Border for better contrast */
    display: inline-block;
    margin: 0.2rem 0.2rem 0.2rem 0;
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}


/* Add to styles.css */
/* Base transition for elements */
.experience-card, .skill-tag, .project-tag, .social-link {
    transition: background-color var(--transition-speed) ease,
                color var(--transition-speed) ease,
                box-shadow var(--transition-speed) ease,
                filter var(--transition-speed) ease,
                border-color var(--transition-speed) ease;
}

.experience-card .experience-text {
    opacity: 0; /* Initially invisible */
    transition: opacity var(--transition-speed) ease; /* Optional: smooth transition */
}

#oracle-card .experience-text,
#achronix-card .experience-text {
    opacity: 1; /* Initially visible */
}

.experience-card:hover .experience-text {
  opacity: 1; /* Show on hover */
}

/* Experience Card Hover */
.experience-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Slightly enhance shadow */
    filter: brightness(97%); /* Optional: subtle darkening */
}

/* Skill Tag Hover */
.skill-tag:hover {
    background-color: var(--secondary-color); /* Use theme green */
    color: white;
    border-color: var(--secondary-color);
}

/* Project Tag Hover */
.project-tag:hover {
    background-color: var(--primary-color); /* Use theme red */
    color: white;
    border-color: var(--primary-color);
}

/* Social Link Hover - Keep background change, ensure color stays white */
.social-link:hover {
    background-color: var(--secondary-color); /* Use theme green */
    color: white;
    /* Removed the rotate effect */
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .experience-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .about-content,
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .navbar {
        position: relative;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        width: 250px;
        background-color: white;
        flex-direction: column;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        display: none;
        z-index: 100;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0.5rem 0;
        margin-left: 0;
    }
    
    .hamburger {
        display: block;
    }
}
