/* -------------------------------------------------------------------------- */
/* 1. CSS Reset & Base Styles
    -------------------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto Condensed', sans-serif;
    background-color: #222222; /* Original dark grey */
    color: #f8f9fa; /* Light text for contrast */
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #42a5f5; /* A more vibrant blue */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #64b5f6; /* Lighter blue on hover */
}

/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/* 2. Variables
    -------------------------------------------------------------------------- */

:root {
    /* Color Palette */
    --primary-color: #0771cb; /* Original header blue */
    --secondary-color: #fe9900; /* Original accent orange */
    --bg-light: #333333; /* Slightly lighter grey */
    --bg-dark: #222222; /* Original dark grey */
    --text-light: #f2f2f2; /* Original light text */
    --text-dark: #cccccc; /* Slightly darker light text */
    --border-color: #555555; /* Original darker border */

    /* Typography */
    --font-family: 'Roboto Condensed', sans-serif;
    --heading-font-weight: 700;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* Shadows & Borders */
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    --border-radius: 8px;
}

/* -------------------------------------------------------------------------- */
/* 3. Layout
    -------------------------------------------------------------------------- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

.content-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 1480px;
    margin: 0 auto;
    padding: var(--spacing-lg) 0;
}

/* 4. Side Ads
    -------------------------------------------------------------------------- */

.ad-left,
.ad-right {
    width: 160px;
    height: 600px;
    position: sticky;
    top: var(--spacing-lg);
    display: none; /* Hide ads for now */
}

.ad-left {
    margin-right: var(--spacing-md);
}

.ad-right {
    margin-left: var(--spacing-md);
}

/* 5. Header
    -------------------------------------------------------------------------- */

header {
    background-color: var(--primary-color);
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--box-shadow);
}

header h1,
header h2,
h3 {
    text-align: center;
    color: var(--text-light);
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: var(--spacing-sm);
    font-weight: var(--heading-font-weight);
}

header h2 {
    font-size: 1.1rem;
    font-weight: 400;
}

/* 6. Navigation
    -------------------------------------------------------------------------- */

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin: 0 var(--spacing-md);
}

nav a {
    color: var(--text-light);
    font-weight: bold;
    padding: calc(var(--spacing-unit) / 2) var(--spacing-unit);
    transition: background-color 0.3s ease;
    border-radius: var(--border-radius);
}

nav a:hover {
    background-color: var(--secondary-color);
    color: var(--bg-dark);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #333333;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    min-width: 200px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: calc(var(--spacing-unit) / 2) var(--spacing-unit);
    color: var(--text-light);
}

.dropdown-content a:hover {
    background-color: var(--secondary-color);
    color: var(--bg-dark);
}

/* -------------------------------------------------------------------------- */
/* 7. Sections - General
    -------------------------------------------------------------------------- */

section {
    padding: var(--spacing-lg) 0;
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
}

section:last-child {
    border-bottom: none;
}

section h2 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    text-align: left;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: var(--spacing-sm);
    font-weight: var(--heading-font-weight);
}

/* -------------------------------------------------------------------------- */
/* 8. Home Page Styles (index.html)
    -------------------------------------------------------------------------- */

/* 8.1 Welcome Section */

.welcome {
    text-align: center;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.welcome .intro-text {
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    font-size: 1.1rem;
}

.welcome .intro-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xl);
    margin: var(--spacing-lg) auto;
    max-width: 1000px;
}

.welcome .profile-img {
    max-width: 250px;
    height: auto;
    border-radius: 50%;
    border: 4px solid var(--secondary-color);
    box-shadow: var(--box-shadow);
}

.welcome .bio {
    max-width: 600px;
    text-align: left;
    color: var(--text-light);
    font-size: 1rem;
}

/* 8.2 Highlights Section */

.highlights {
    background-color: var(--bg-dark);
}

.highlights h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
    font-weight: var(--heading-font-weight);
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.highlight-item {
    text-align: center;
    padding: var(--spacing-md);
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.highlight-item h3 {
    margin-bottom: var(--spacing-md);
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: var(--heading-font-weight);
}

.highlight-item p {
    margin-bottom: var(--spacing-lg);
    color: var(--text-light);
    font-size: 1rem;
}

.book-covers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.cover-img {
    max-width: 150px;
    height: auto;
    display: block;
    border: 3px solid var(--secondary-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* 8.3 Sponsors Section */

.sponsors {
    background-color: var(--bg-dark);
}

.sponsors h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
    font-weight: var(--heading-font-weight);
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.sponsor-item .btn {
    display: block;
    padding: 15px;
    text-align: center;
    background-color: var(--secondary-color);
    color: var(--bg-dark);
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.sponsor-item .btn:hover {
    background-color: #e68a00;
    transform: scale(1.05);
}

.sponsor-item .sponsor-img {
    max-width: 100px;
    height: auto;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.sponsor-item h3 {
    margin: 10px 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: var(--heading-font-weight);
}

.sponsor-item p {
    font-size: 0.9em;
    color: var(--text-light);
}

/* -------------------------------------------------------------------------- */
/* 9. Resume Page Styles (resume.html)
    -------------------------------------------------------------------------- */

.resume-page {
    padding: var(--spacing-lg) 0;
}

.resume-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.resume-header h1 {
    font-size: 2.2rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.resume-header .contact-info {
    font-size: 1.1rem;
    color: var(--text-light);
}

.resume-section {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.resume-section h2 {
    font-size: 1.6rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
    text-align: left;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: var(--spacing-sm);
    font-weight: var(--heading-font-weight);
}

.resume-section h3 {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-md);
    text-align: left;
    color: var(--text-light);
    font-weight: var(--heading-font-weight);
}

.resume-section h4 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    text-align: left;
    color: var(--text-light);
    font-size: 1.1rem;
}

.resume-section h5 {
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    text-align: left;
    color: var(--text-light);
}

.certifications-list {
    list-style-type: disc;
    margin-left: var(--spacing-lg);
    color: var(--text-light);
    font-size: 1rem;
}

.experience-item {
    margin-bottom: var(--spacing-lg);
}

/* -------------------------------------------------------------------------- */
/* 19. About Page Specific Styles (about.html)
    -------------------------------------------------------------------------- */

.about-page {
    padding: var(--spacing-lg) 0;
}

.about-intro {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.about-intro h2 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
    font-weight: var(--heading-font-weight);
}

.about-intro .intro-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xl);
}

.about-intro .profile-img {
    max-width: 250px;
    height: auto;
    border-radius: 50%;
    border: 4px solid var(--secondary-color);
    box-shadow: var(--box-shadow);
}

.about-intro .bio-text {
    max-width: 600px;
    text-align: left;
    color: var(--text-light);
    font-size: 1.1rem;
}

.about-section {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about-section h2 {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
    text-align: left;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: var(--spacing-sm);
    font-weight: var(--heading-font-weight);
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.strength-item {
    text-align: left;
    padding: var(--spacing-md);
    background-color: var(--neutral-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.strength-item h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: var(--heading-font-weight);
}

.strength-item p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 1rem;
}

.about-summary {
    text-align: left;
    margin-bottom: var(--spacing-xl);
}

.about-summary h2 {
    font-size: 1.6rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
    font-weight: var(--heading-font-weight);
}

.about-summary p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.about-cta {
    text-align: left;
}

.about-cta h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: var(--spacing-sm);
    font-weight: var(--heading-font-weight);
}

.cta-list {
    list-style-type: none;
    padding: 0;
}

.cta-list li {
    margin-bottom: 10px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.cta-list a {
    color: var(--secondary-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

.cta-list a:hover {
    color: #000000;
}

/* -------------------------------------------------------------------------- */
/* 18. Projects Page Specific Styles (projects.html)
    -------------------------------------------------------------------------- */

.projects-page {
    padding: var(--spacing-lg) 0;
}

.projects-intro {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.projects-intro h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
    font-weight: var(--heading-font-weight);
}

.projects-intro .intro-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.projects-intro .contact-button {
    margin-top: var(--spacing-md);
}

.project-section {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.project-section h2 {
    font-size: 1.6rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
    text-align: center; /* Center the project titles */
    font-weight: var(--heading-font-weight);
}

.project-details {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items vertically */
}

.project-logo {
    max-width: 100%; /* Ensure logos don't exceed container */
    max-height: 100px; /* Limit logo height */
    width: auto;
    height: auto;
    margin-bottom: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.project-description {
    color: var(--text-light);
    font-size: 1.1rem;
    text-align: left;
    margin-bottom: var(--spacing-md);
}

.project-list {
    list-style-type: disc;
    margin-left: var(--spacing-lg);
    color: var(--text-light);
    font-size: 1rem;
    text-align: left;
}

.project-list li {
    margin-bottom: var(--spacing-sm);
}

.project-conclusion {
    color: var(--text-light);
    font-size: 1.1rem;
    text-align: left;
    margin-top: var(--spacing-md);
}