/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* --- CSS Variables (Color Palette) --- */
:root {
    --bg-dark: #121212;
    --bg-light: #FFFFFF;
    --bg-beige: #f2ede6;
    --text-light: #FFFFFF;
    --text-dark: #1C1E21;
    --text-muted-dark: #65676B;
    --text-muted-light: #B0B3B8;
    --skill-pill-bg: #c5d1e0;
    --project-btn-bg: #C5AF93;
    --project-btn-hover: #ab987e;
    --linkedin-blue: #c5d1e0;
    --linkedin-hover: #a9b8cc;
}

/* --- General Reset & Body Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header & Navigation --- */
.main-header {
    background-color: #C5AF93;
    color: var(--text-dark);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 80px;
    height: auto;
    border-radius: 50%;
    padding: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #000000;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--project-btn-bg);
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
}
.btn-primary:hover {
    transform: scale(1.05);
    background-color: var(--project-btn-hover);
}

.btn-linkedin {
    background-color: var(--linkedin-blue);
    color: var(--text-dark);
    font-weight: bold;
    border: 1px solid var(--text-dark);
}
.btn-linkedin:hover {
    background-color: var(--linkedin-hover);
    transform: scale(1.05);
}

.btn-project {
    background-color: var(--project-btn-bg);
    color: var(--text-dark) !important;
    padding: 8px 20px;
    border: 1px solid var(--text-dark);
}
.btn-project:hover {
    background-color: var(--project-btn-hover);
    transform: scale(1.03);
}

.button-wrapper {
    text-align: center;
    margin-top: 30px;
}

/* --- Hero Section (About Me) --- */
#hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    position: relative;
    color: var(--text-light);

    background-image: url('images/backGroundPhoto.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    width: 100%;
    max-width: 900px;
    position: relative;
    z-index: 2;
}

/* New Hero Layout */
.hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.hero-titles-column {
    flex: 2;
    text-align: left;
}
.hero-image-column {
    flex: 1;
    text-align: center;
}
.hero-titles-column h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.hero-titles-column h2,
.hero-titles-column .location {
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.hero-titles-column .location {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 0;
}
.profile-picture {
    max-width: 250px;
    height: auto;
    border-radius: 50%;
    border: 4px solid #FFFFFF;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.hero-separator {
    width: 80%;
    margin: 40px auto;
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.4);
}
.hero-bottom {
    text-align: center;
}
.hero-bottom .about-text {
    color: var(--text-light);
    text-shadow: 0px 1px 3px rgba(0,0,0,0.5);
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Section-Specific Backgrounds --- */
#skills,
#projects,
#contact {
    background-color: var(--bg-dark);
}

#completed-projects,
#education {
    background-color: var(--bg-beige);
    color: var(--text-dark);
}

/* Other sections */
#skills, #projects, #education, #contact, #completed-projects {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

#skills h2, #projects h2, #contact h2 {
    color: var(--text-light);
}
#completed-projects h2, #education h2 {
    color: var(--text-dark);
}


/* --- Completed Projects & GitHub Repositories Sections --- */
#completed-projects h3,
#completed-projects p {
    color: var(--text-dark);
}
#completed-projects .project-card {
    border-bottom-color: #d8d2ca;
}
#projects h3,
#projects p {
    color: var(--text-light);
}
#projects .project-card {
    border-bottom-color: #444;
}

/* STYLES FOR TECH TERM OF THE DAY CARD (INSIDE COMPLETED PROJECTS) */
.tech-term-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 15px;
    overflow: hidden;
    max-width: 650px;
    margin: 20px auto 0 auto;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
#tech-term-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}
.tech-term-content {
    padding: 30px;
}
.tech-term-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.tech-term-content p {
    font-size: 1.1rem;
    line-height: 1.7;
}
.term-date {
    font-style: italic;
    color: var(--text-muted-dark);
    margin-bottom: 15px;
    font-size: 1rem;
}


/* --- Mobile Nav, Gallery, Other --- */
.mobile-nav-toggle { display: none; background: transparent; border: none; cursor: pointer; z-index: 9999; }
.hamburger-line { display: block; width: 25px; height: 3px; background-color: var(--text-dark); margin: 5px 0; transition: transform 0.3s ease, opacity 0.3s ease; }
.mobile-nav-toggle.is-open .hamburger-line { background-color: var(--text-light); }
.mobile-nav-toggle.is-open .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-nav-toggle.is-open .hamburger-line:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.is-open .hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-nav-links { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.95); display: flex; justify-content: center; align-items: center; transform: translateX(100%); transition: transform 0.4s ease-in-out; z-index: 9998; }
.mobile-nav-links.is-open { transform: translateX(0); }
.mobile-nav-links ul { list-style: none; text-align: center; }
.mobile-nav-links li { margin: 30px 0; }
.mobile-nav-links a { color: var(--text-light); text-decoration: none; font-size: 2rem; }
.project-images { display: flex; justify-content: center; gap: 15px; margin-top: 25px; margin-bottom: 10px; }
.project-images img { max-width: 32%; height: auto; border-radius: 8px; border: 1px solid #ddd; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.skills-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.skill-pill { background-color: var(--skill-pill-bg); color: var(--text-dark); padding: 12px 25px; border-radius: 50px; font-weight: 400; }
.project-card { text-align: center; max-width: 650px; margin: 0 auto 50px auto; padding-bottom: 40px; border-bottom: 1px solid; }
.project-card:last-child { border-bottom: none; padding-bottom: 0; }
.project-status { font-weight: 300; font-style: italic; color: #0A66C2; }
.education-item { margin-bottom: 30px; text-align: center; }
#education h3 { font-size: 1.5rem; font-weight: 600; }
#education p { color: var(--text-muted-dark); }
.footer-content { text-align: center; }
.copyright { color: var(--text-light); }

/* --- Styles for Footer Buttons --- */
.footer-buttons {
    display: flex;
    justify-content: center;
    gap: 15px; /* Creates space between the buttons */
    margin-bottom: 40px; /* Keeps the space between buttons and copyright text */
}

.btn-github {
    background-color: #333; /* Dark GitHub color */
    color: var(--text-light);
    border: 1px solid var(--text-light);
}

.btn-github:hover {
    background-color: #555;
    transform: scale(1.05);
}

/* 
  This overrides the old rule that was pushing 
  the buttons apart from each other vertically.
*/
.footer-content .btn {
    margin-bottom: 0;
}
/* --- Styles for Font Awesome Icon Buttons --- */

/* Base style for all icon buttons */
.fa {
  padding: 15px; /* Adjust padding to control the size */
  font-size: 20px; /* Controls the icon size */
  width: 50px; /* Defines a fixed width */
  height: 50px; /* Defines a fixed height */
  text-align: center;
  text-decoration: none;
  border-radius: 50%; /* This makes the buttons round */
  display: inline-block; /* Ensures proper layout */
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Hover effect for all icons */
.fa:hover {
  opacity: 0.9;
  transform: scale(1.1); /* Slightly enlarge on hover */
}

/* Specific style for the LinkedIn icon */
.fa-linkedin {
  background: #0077B5; /* Official LinkedIn blue */
  color: white;
}

/* Specific style for the GitHub icon */
.fa-github {
  background: #333; /* Dark GitHub color */
  color: white;
}
/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-links, .desktop-only { display: none; }
    .mobile-nav-toggle { display: block; }
    .logo { width: 60px; }
    .hero-titles-column h1 { font-size: 2.5rem; }
    .hero-titles-column h2, .hero-titles-column .location { font-size: 1.2rem; }
    section { padding: 60px 20px; }
    .project-images { flex-direction: column; align-items: center; }
    .project-images img { max-width: 90%; }
    .hero-top { flex-direction: column; }
    .hero-titles-column { text-align: center; }
    .hero-image-column { order: -1; margin-bottom: 30px; }
}
