:root {
    --primary: #1b4332;   /* Deep Forest Green */
    --secondary: #081c15; /* Darker Background */
    --accent: #52b788;    /* Professional Mint Green */
    --text: #d8f3dc;      /* Off-white/Greenish text */
}

/* 1. Professional Engineering Grid Background */
body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--secondary);
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 30px 30px;
    color: var(--text);
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    padding: 80px 20px;
    text-align: center;
    border-bottom: 3px solid var(--accent);
}

/* 2. Optimized Small CV Button */
.cv-container {
    margin-top: 25px;
}

.download-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: transparent; 
    color: #ffffff; 
    border: 1.5px solid var(--accent);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease-in-out; 
}

.download-btn:hover {
    background-color: var(--accent);
    color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(82, 183, 136, 0.3);
}

/* 3. Smooth Social Icon Animations */
.socials {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 25px;
    align-items: center;
}

.socials a {
    color: #ffffff;
    font-size: 1.4rem;
    transition: all 0.3s ease-in-out;
}

.socials a:hover {
    color: var(--accent);
    transform: translateY(-3px) scale(1.1);
}

/* 4. Privacy Blur Effect */
.blur-text {
    filter: blur(5px);
    transition: filter 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.blur-text:hover {
    filter: blur(0);
    user-select: auto;
}

/* 5. "Eco-Glow" Project & Publication Cards */
.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(82, 183, 136, 0.1);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: scale(1.02);
    border-color: var(--accent);
    background: rgba(82, 183, 136, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

h1, h2, h3 { color: var(--accent); }
p { color: #b7e4c7; }

.footer {
    text-align: center;
    padding: 40px;
    font-size: 0.9rem;
    opacity: 0.7;
}
/* Update the Card Effect for ALL sections */
.work-card, .res-card, .timeline-item, .skill-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(82, 183, 136, 0.1);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease-in-out;
}

/* Hover effect for all cards */
.work-card:hover, .res-card:hover, .timeline-item:hover, .skill-category:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: var(--accent);
    background: rgba(82, 183, 136, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Specific Gold border for your Award */
.res-card.gold {
    border: 1.5px solid #ffca3a;
}
.res-card.gold:hover {
    box-shadow: 0 10px 30px rgba(255, 202, 58, 0.2);
}

/* Ensure the background grid is applied to the body */
body {
    background-color: var(--secondary);
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 30px 30px;
}
/* Navigation Styling */
nav {
    background: var(--secondary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(82, 183, 136, 0.2);
    display: flex;
    justify-content: space-around;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex; /* This puts them in one line properly */
    gap: 25px;     /* This adds space between buttons */
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff !important; /* Forces it to stay white, not blue */
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Fixes the blue color after clicking */
nav ul li a:visited {
    color: #ffffff;
}

nav ul li a:hover {
    color: var(--accent) !important; /* Turns green on hover */
}

.logo {
    font-weight: bold;
    color: var(--accent);
    font-size: 1.2rem;
    letter-spacing: 1px;
}
/* Global Link Fix */
a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.3s;
}

a:visited {
    color: var(--accent); /* Stops links from turning purple/blue */
}

a:hover {
    opacity: 0.8;
}
