:root {
    --primary-blue: #1a5b92; /* The blue from your CV */
    --text-dark: #333;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fafafa;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =========================================
   NAVIGATION
   ========================================= */
#navbar {
    background-color: var(--primary-blue);
    color: var(--white);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: auto;
}

#navbar ul {
    display: flex;
}

#navbar ul li a {
    color: var(--white);
    padding: 0.5rem 1rem;
    transition: 0.3s;
    font-weight: 500;
}

#navbar ul li a:hover, 
#navbar ul li a.active {
    background-color: rgba(255,255,255,0.2);
    border-radius: 5px;
}

/* =========================================
   HERO SECTIONS
   ========================================= */
/* Home Page Hero */
/* Home Page Hero with Cover Image */
#hero {
    /* Replace 'assets/cover.jpg' with your actual cover image path */
    background: linear-gradient(rgba(26, 91, 146, 0.85), rgba(26, 91, 146, 0.7)), url('assets/cover.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Creates a cool parallax scrolling effect */
    padding: 150px 5% 100px; /* Increased padding for more height */
    text-align: center;
    min-height: 80vh; /* Takes up 80% of the screen height */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white); /* Forces all text in hero to be white */
}

/* Update text colors specifically for the hero section */
#hero h1, #hero h3, #hero p {
    color: var(--white);
}

#hero .profile-img {
    border: 5px solid var(--white); /* Change border to white to stand out */
    box-shadow: 0 0 20px rgba(0,0,0,0.3); /* Add glow effect */
}

#hero .btn {
    background-color: var(--white);
    color: var(--primary-blue); /* Invert button colors for visibility */
}

#hero .btn:hover {
    background-color: #f0f0f0;
    color: #124068;
}

.hero-content {
    max-width: 800px;
    margin: auto;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid var(--primary-blue);
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Projects Page Header */
.page-header {
    background: var(--primary-blue);
    padding: 120px 5% 60px;
    text-align: center;
    color: var(--white);
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* =========================================
   GENERAL TEXT & BUTTONS
   ========================================= */
h1 {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

h2 {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 40px;
    font-size: 2.2rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 25px;
    margin-top: 20px;
    transition: 0.3s;
    font-weight: bold;
}

.btn:hover {
    background-color: #124068;
    transform: translateY(-2px);
}

/* =========================================
   SECTIONS & LAYOUTS
   ========================================= */
.section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: auto;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Timeline (Education) */
.timeline {
    border-left: 3px solid var(--primary-blue);
    padding-left: 20px;
    margin-left: 20px;
}

.timeline-item {
    margin-bottom: 30px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--primary-blue);
    border-radius: 50%;
    left: -29px;
    top: 5px;
}

/* Update this existing class */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* This centers the boxes */
    gap: 20px;
}

/* Ensure boxes have a consistent width */
.skill-box {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-blue);
    flex: 1 1 300px; /* Grow, shrink, base width 300px */
    max-width: 400px; /* Prevents them from getting too wide */
    text-align: left; /* Keep text aligned left inside the centered box */
}

.skill-box {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-blue);
}

.skill-box ul {
    list-style-position: inside;
}

/* =========================================
   PROJECTS PAGE STYLES
   ========================================= */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.project-list-item {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    padding: 40px;
    border-top: 5px solid var(--primary-blue);
}

.project-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.project-header h3 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 5px;
}

.tech-stack {
    font-size: 0.9rem;
    color: #666;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Project Gallery Grid */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.project-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.project-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Project Documentation Area */
.project-documentation {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
    margin-bottom: 25px;
}

.project-documentation h4 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.project-documentation p {
    margin-bottom: 15px;
    color: #444;
}

.project-documentation ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.project-documentation li {
    margin-bottom: 8px;
}

/* Project Buttons */
.project-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-small {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-small i {
    margin-right: 8px;
}

.btn-small:hover {
    background-color: #124068;
}

/* =========================================
   CONTACT & FOOTER
   ========================================= */
.contact-info {
    text-align: center;
    font-size: 1.2rem;
}

.contact-info p {
    margin: 15px 0;
}

.contact-info a {
    color: var(--primary-blue);
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 30px 20px;
    background: var(--primary-blue);
    color: var(--white);
    margin-top: 50px;
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        padding: 10px;
    }

    #navbar ul {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    h1 {
        font-size: 2rem;
    }

    .project-list-item {
        padding: 20px;
    }

    .project-gallery {
        grid-template-columns: 1fr; /* Stack images on small screens */
    }

    .project-gallery img {
        height: auto;
    }
}

