/* --- Global Styles & Variables --- */
:root {
    --primary-color: #0a66c2; 
    --secondary-color: #0073b1;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --text-color: #333;
    --border-color: #dee2e6;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --font-sans: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; 
    
}

body {
    font-family: var(--font-sans);
    line-height: 1.7;
    background-color: #fff;
    color: var(--text-color);
    
}

.container {
    width: 90%;
    /* max-width: 1100px; */
    /* margin: 0 auto; */
    margin: 0 auto;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    text-align: center;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 1.2rem;
    color: var(--dark-color);
    font-weight: 600;
    margin-top: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.content-section {
    padding: 4rem 0;
}

.content-section:nth-of-type(odd) {
    background-color: var(--light-color);
}


/* --- Header & Navigation --- */
header {
    background-color: #ffffff;
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

/* Hamburger Menu (Mobile/Tablet) */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.hamburger-menu .line {
    width: 2rem;
    height: 0.2rem;
    background: var(--dark-color);
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

.hamburger-menu.is-active .line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.hamburger-menu.is-active .line:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.is-active .line:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Nav Menu (Mobile/Tablet) */
.main-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    right: -100%; /* Hidden by default */
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    transition: right 0.3s ease-in-out;
}

.main-nav.is-open {
    right: 0;
}

.main-nav ul {
    list-style: none;
    text-align: center;
}

.main-nav li {
    margin: 1.5rem 0;
}

.main-nav a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.nav-social-link {
    display: none; /* Hide social link in mobile menu, show on desktop */
}


/* --- Main Content --- */
main {
    padding-top: 80px; /* Push content below fixed header */
}

/* About Section */
.about-content {
    display: flex
;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: center;

}

/* .aboueme-text{
  display: flex;
  align-items: center;
} */



.about-content h4:hover{
    
    background-color: #b6d4f1; /* Invert colors on hover */
    color: #ffffff;
    transform: translateY(-3px); /* Makes the tag "lift" up slightly */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow */
    cursor: default; /* Keeps the cursor as a pointer */ 
    border-radius: 20px;
    margin: 1%;

}



.resume{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #195591;
  background-color: #cde9f7;
  border-radius: 10px;
  /* border-color: hsl(201, 55%, 85%);
  border-style: ridge;
  box-shadow: #d6e3e9;
  border-width: .2cap; */
  
}
/* .container a{
  background-color: #daf1fd;
  
  /* text-justify: auto; */
  /* flex-wrap: wrap; */
  /* padding: 0.5rem 1rem; */
  /* padding: 20px; */
/* }  */ 

.resume :hover{
   background-color: #0d3e6b; /* Invert colors on hover */
    color: #ffffff;
    transform: translateY(-3px); /* Makes the tag "lift" up slightly */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow */
    cursor: default; /* Keeps the cursor as a pointer */ 
}

.about-image {
    max-width: 250px;
    flex-shrink: 0;
}
.about-image img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 15px;
}
.timeline-item {
    padding: 10px 40px 30px 50px;
    position: relative;
    /* background-color: #dcf6fb; */
    border-radius: 10px;
}
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 15px;
    left: 6px;
    z-index: 1;
}
.timeline-subheading {
    font-style: italic;
    color: #555;
    margin-bottom: 1rem;
    background-color: #cde5ef;
    border-radius: 10px;
    
}
.timeline-item ul {
    padding-left: 20px;
    background-color: #dfecf3;
    border-radius: 10px;
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.project-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
    transition: transform 0.3s, box-shadow 0.3s;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Skills Section */
.skills-list p {
    background-color: var(--light-color);
    padding: 0.75rem;
    border-radius: 5px;
}

/* The <ul> container holding the skill tags */
.skills-container {
    list-style: none; /* Removes the default bullet points */
    padding: 0;
    display: flex; /* Aligns the skills in a row */
    flex-wrap: wrap; /* Allows skills to wrap to the next line on smaller screens */
    gap: 0.75rem; /* Creates space between the tags */
}
/* The individual <li> skill tag */
.skills-container li {
    background-color: #eaf1f8; /* A light, professional blue-gray */
    color: #0a66c2; /* A strong blue for the text, matching LinkedIn's theme */
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem; /* Vertical and horizontal padding */
    border-radius: 20px; /* This creates the "pill" shape */
    border: 1px solid #d1e0ee;
    transition: all 0.3s ease; /* Smooth transition for hover effects */
}

/* Interactive hover effect for the tags */
.skills-container li:hover {
    background-color: #0a66c2; /* Invert colors on hover */
    color: #ffffff;
    transform: translateY(-3px); /* Makes the tag "lift" up slightly */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow */
    cursor: default; /* Keeps the cursor as a pointer */
}


/* Contact Section */
#contact { text-align: center; }
.contact-links {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}
.contact-button {
    text-decoration: none;
    color: white;
    background-color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    transition: background-color 0.3s;
    display: inline-block;
}
.contact-button:hover {
    background-color: var(--secondary-color);
}
.contact-button i {
    margin-right: 0.5rem;
}

/* --- Footer --- */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 4rem;
}


/* --- Media Queries for Responsiveness --- */

/* Tablet Styles */
@media (min-width: 768px) {
    h2 { font-size: 2.8rem; }
    
    .about-content {
        flex-direction: row;
        text-align: left;
    }
    
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-links {
        flex-direction: row;
        justify-content: center;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .hamburger-menu {
        display: none;
    }
    
    .main-nav {
        position: static;
        flex-direction: row;
        height: auto;
        width: auto;
        background: none;
        backdrop-filter: none;
    }
    
    .main-nav ul {
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    
    .main-nav li {
        margin: 0 0 0 1.5rem;
    }
    
    .main-nav a {
        font-size: 1rem;
        font-weight: 500;
    }

    .nav-social-link {
        display: block; /* Show LinkedIn icon on desktop nav */
    }
    .nav-social-link a {
        font-size: 1.5rem;
    }

    .project-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
