/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #0D1117;
    color: #E6EDF3;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header */
header {
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    background: #fff;
    color: #0D1117;
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 20px 0;
}

.hero .text {
    max-width: 600px;
}

h1 {
    font-size: 36px;
}

.highlight {
    color: #3a7bec;
}

.avatar {
    font-size: 60px;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.avatar {
    width: 250px;  
    height: 250px; 
    border-radius: 50%; 
    overflow: hidden; 
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Technologies Section */
.technologies {
    width: 90%;
    max-width: 1200px;
    margin-top: 40px;
}

/* Pages Section */
.pages {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
    width: 90%;
    max-width: 800px;
    margin-top: 40px;
}

.card {
    background: #161B22;
    padding: 20px;
    border-radius: 10px;
    transition: 0.3s;
}

.card:hover {
    background: #1F2937;
}

/* Technologies Section */
.technologies {
    width: 90%;
    max-width: 1200px;
    margin-top: 40px;
}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.tech-card {
    position: relative; /* Needed for tooltip positioning */
    display: flex;
    align-items: center;
    background: #161B22;
    padding: 12px 16px;
    border-radius: 8px;
    gap: 10px;
    width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease-in-out;
    cursor: pointer;
}

.tech-card:hover {
    background: #1F2937;
}

.tech-card img {
    width: 24px;
    height: 24px;
}

.tech-card span {
    color: #E6EDF3;
    font-size: 16px;
    font-weight: 500;
}

/* Tooltip styling */
.tech-card .tooltip {
    visibility: hidden;
    width: 240px;
    background-color: #0D1117; /* matches dark theme */
    color: #E6EDF3;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Show above the card */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
    border: 1px solid #30363D;
}

/* Tooltip arrow */
.tech-card .tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #0D1117 transparent transparent transparent;
}

/* Show tooltip on hover */
.tech-card:hover .tooltip {
    visibility: visible;
    opacity: 1;
}


/* Projects Section */
.projects {
    width: 90%;
    max-width: 1200px;
    margin-top: 40px;
}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.projects-card {
    background: #161B22;
    padding: 300px;
    text-align: center;
    border-radius: 5px;
}

/* Technology Card Styling */
.projects-card {
    display: flex;
    align-items: center;
    background: #161B22; 
    padding: 12px 70px;
    border-radius: 8px;
    gap: 10px;
    width: 400px; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease-in-out;
}

.projects-card:hover {
    background: #1F2937; 
}

.projects-card img {
    width: 300px;
    height: 300px;
}

.projects-card span {
    color: #E6EDF3;
    font-size: 16px;
    font-weight: 500;
}

/* certifications Section */
.certifications {
    width: 90%;
    max-width: 1200px;
    margin-top: 40px;
}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.certifications-card {
    background: #161B22;
    padding: 15px;
    text-align: center;
    border-radius: 5px;
}
/* contact Card Styling */
.certifications-card {
    display: flex;
    align-items: center;
    background: #161B22;
    padding: 12px 16px;
    border-radius: 8px;
    gap: 10px;
    width: 200px; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease-in-out;
}

.certifications-card:hover {
    background: #1F2937; 
}

.certifications-card img {
    width: 24px; 
    height: 24px;
}

.certifications-card span {
    color: #E6EDF3;
    font-size: 16px;
    font-weight: 500;
}

/* Contact Section */
.contact {
    width: 90%;
    max-width: 1200px;
    margin-top: 40px;
}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.contact-card {
    background: #161B22;
    padding: 15px;
    text-align: center;
    border-radius: 5px;
}

/* contact Card Styling */
.contact-card {
    display: flex;
    align-items: center;
    background: #161B22;
    padding: 12px 16px;
    border-radius: 8px;
    gap: 10px;
    width: 200px; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease-in-out;
    margin-bottom: 100px;
}

.contact-card:hover {
    background: #1F2937; 
}

.contact-card img {
    width: 24px; 
    height: 24px;
}

.contact-card span {
    color: #E6EDF3;
    font-size: 16px;
    font-weight: 500;
}

/* Links */
.projects-card-link {
    text-decoration: none;
}

.certifications-card-link {
    text-decoration: none;
}

.contact-card-link {
    text-decoration: none;
}
