/* --- Global Styles & Variables --- */
:root {
    --bg-color: #0d1b2a; /* Vibrant Dark Blue */
    --primary-text: #e0e0e0;
    --secondary-text: #a0a0b0;
    --accent-color: #00f5c8; /* Bright Cyan/Teal for pop */
    --glass-bg: rgba(26, 43, 78, 0.5); /* Bluish Glass */
    --glass-border: rgba(255, 255, 255, 0.15);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--primary-text);
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at top left, #1a294a, var(--bg-color) 40%);
    margin: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Navigation Bar UPDATED --- */
.navbar {
    background: rgba(13, 27, 42, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0; /* Adjusted padding for logo */
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-logo {
    height: 50px; /* Control the height of your logo */
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
    transform: scale(1.1);
}


.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color);
}

.linkedin-icon a {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}
.linkedin-icon a:hover {
    transform: scale(1.2);
}

/* --- Hero Section --- */
.hero {
    padding: 120px 0;
    text-align: center;
    position: relative;
    color: #fff;
    background-image: linear-gradient(rgba(13, 27, 42, 0.7), rgba(13, 27, 42, 0.7)), url('assets/images/header-background.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 800;
    background: linear-gradient(90deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero .subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: var(--primary-text); 
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #0d1b2a;
    box-shadow: 0 4px 15px rgba(0, 245, 200, 0.2);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 245, 200, 0.3);
}

/* --- Glass Card Style --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 245, 200, 0.5);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* --- General Section Styling --- */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 50px;
    color: var(--primary-text);
}

.section-title i {
    color: var(--accent-color);
    margin-right: 10px;
}

/* --- Resume Page & Infographic Timeline --- */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--glass-border);
}

.timeline-item {
    margin-bottom: 30px;
    position: relative;
    transition: transform 0.3s ease;
}
.timeline-item:hover {
    transform: translateX(5px);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 2px solid var(--bg-color);
    transition: transform 0.3s ease;
}
.timeline-item:hover::before {
    transform: scale(1.3);
}

.timeline-item h4 { margin: 0 0 5px 0; color: var(--primary-text); font-size: 1.2rem; }
.timeline-item .timeline-period { color: var(--secondary-text); font-weight: 500; margin-bottom: 10px; display: block; }
.timeline-item ul { padding-left: 20px; color: var(--secondary-text); }


.resume-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 992px) { .resume-grid { grid-template-columns: 1fr 2fr; } }
.resume-sidebar .glass-card { position: sticky; top: 120px; }
.resume-sidebar h3 { color: var(--accent-color); margin-top: 0; }
.skills-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.skills-list li { background-color: rgba(0, 245, 200, 0.1); color: var(--accent-color); padding: 5px 12px; border-radius: 20px; font-size: 0.9rem; font-weight: 500; }

/* --- Courses Page, Case Studies, & Infographic Grids --- */
.grid-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.course-card h3, .infographic-kpi h3 { color: var(--accent-color); margin: 0; }
.course-card .provider, .infographic-kpi p { color: var(--secondary-text); font-weight: 500; margin-top: 5px; }
.infographic-kpi h3 { font-size: 2.5rem; }

/* --- Infographic Charts --- */
.chart-container {
    height: 350px;
    padding: 20px;
}

/* --- Footer --- */
.footer {
    background: transparent;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid var(--glass-border);
    color: var(--secondary-text);
}
.footer a { color: var(--accent-color); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* --- Additions for the updated Resume Page --- */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
}

.metric-item .metric-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
}

.metric-item .metric-label {
    color: var(--secondary-text);
    font-size: 0.9rem;
}

.gallery-item {
    overflow: hidden; /* Ensures zoom effect stays within rounded corners */
    border-radius: 10px;
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item h4 {
    margin: 10px 0 0 0;
    color: var(--primary-text);
    font-weight: 500;
}

/* --- Style for the Adventures Page Gallery --- */
.adventures-gallery-item {
    overflow: hidden; 
    border-radius: 10px;
}

.adventures-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.adventures-gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.project-image {
    height: 200px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensures image stays inside rounded corners */
    padding: 0; /* Removes any padding */
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes the image fill the whole area */
    display: block;
}