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

html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

body {
    font-family: sans-serif;
    line-height: 1.6;
    background-color: #fdfdfd;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.button {
    margin-left: auto;
    padding: 7px 28px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    transition: background-color 0.3s ease;
    display: inline-block;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.button:hover {
    background-color: #0056b3;
    transform: scale(1.1);
    transition: transform 0.4s ease, color 0.4s ease;
}

.white-text {
    color: white;
}

.blue-text {
    color: rgb(0, 85, 255);
    font-weight: bold;
}

h1, h2, h3 {
    margin: -5px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 40px;
}

/* Header */
.header-wrapper {
    background-color: #007bff;
    padding-top: 5px;
    padding-bottom: 60px;
}

.header-nav {
    text-align: center;
    line-height: 2;
}

header {
    background-color: #fff;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 90%;
    margin: 25px auto;
    overflow: hidden;
    padding: 0px 10px;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
}

.nav-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
    min-height: 80px;
    flex-wrap: wrap;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: 0;
    padding: 0;
}

nav ul li {
    font-weight: bold;
    font-size: 1.5rem;
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #555;
    transition: color 0.3s ease;
}

.nav-button {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    padding: 7px 28px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    transition: background-color 0.3s ease;
    display: inline-block;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

nav ul li a:hover {
    color: rgb(0, 85, 255);
    transform: scale(1.3);
    transition: transform 0.6s ease, color 0.4s ease;
    display: inline-block;
}

/* Experience Section */
.experience {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.experience-header {
    color: black;
    padding: 40px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.experience-icon i {
    font-size: 2.5rem;
    color: #007bff;
}

.experience h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: #222;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.experience-item {
    display: block;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.experience-item h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #222;
    margin-top: 10px;
    margin-bottom: 0;
    text-decoration: none;
    padding-bottom: 5px;
}

.experience-item p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* My Stack Page */
.my-stack {
    padding: 80px 0;
}

.stack-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.stack-table th, .stack-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.stack-table th {
    background-color: #f4f4f4;
    color: #333;
}

.stack-table tr:hover {
    background-color: #f9f9f9;
}

.my-stack-stats {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.my-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-left: 40px;
    margin-right: 40px;
    justify-content: center;
}

.proficiency-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}
.proficiency-dot.advanced {
    background: #28a745;
}
.proficiency-dot.intermediate {
    background: #ffc107;
}
.proficiency-dot.beginner {
    background: #dc3545;
}

.stat-item {
    text-align: center;
    margin-bottom: 2rem;
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1rem;
    opacity: 0.8;
}

.stat-item .fa-solid {
    color: #007bff;
}

.stack-text {
    flex: 2;
}

.stack-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.stack-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Certificates Section */
.certificates-section {
    padding: 60px 0;
    background: #f9f9f9;
}
.certificate-category {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-top: 20px;
    margin-bottom: 10px;
}
.certificate-category h2 {
    margin-bottom: 16px;
}
.cert-scroll-row {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #007bff #f4f4f4;
}
.cert-scroll-row::-webkit-scrollbar {
    height: 8px;
}
.cert-scroll-row::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
}
.certificate-thumb {
    flex: 0 0 auto;
    width: 180px;
    height: 130px;
    border-radius: 2px;
    border: 1px solid #ddd;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: #fff;
    cursor: pointer;
    transition: transform 0.2s;
}
.certificate-thumb:hover {
    transform: scale(1.05);
}
.certificate-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Modal Styles */
.cert-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}
.cert-modal-content {
    max-width: 90vw;
    max-height: 80vh;
    margin: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.cert-modal-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}
@media (max-width: 600px) {
    .certificate-thumb {
        width: 120px;
        height: 80px;
    }
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

footer .container {
    padding: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    font-size: 1.8rem;
    color: #007bff;
    transition: color 0.3s ease, transform 0.5s ease;
}

.social-links a:hover {
    color: #0056b3;
    transform: scale(1.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    header .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 0;
        margin: 0;
    }

    nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
    }
}