/* CSS Variables for Dark Theme */
:root {
    --background: hsl(0, 0%, 15%);
    --foreground: hsl(0, 0%, 95%);
    --card: hsl(0, 0%, 18%);
    --card-foreground: hsl(0, 0%, 92%);
    --card-border: hsl(0, 0%, 28%);
    --primary: hsl(0, 0%, 95%);
    --primary-foreground: hsl(0, 0%, 8%);
    --secondary: hsl(0, 0%, 22%);
    --secondary-foreground: hsl(0, 0%, 85%);
    --muted: hsl(0, 0%, 20%);
    --muted-foreground: hsl(0, 0%, 70%);
    --muted-border: hsl(0, 0%, 28%);
    --accent: hsl(0, 0%, 25%);
    --accent-foreground: hsl(0, 0%, 85%);
    --border: hsl(0, 0%, 25%);
}

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

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.03) 1px, transparent 0);
    background-size: 20px 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}

section {
    padding: 64px 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* About Section */
.about-section {
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 64px 16px;
    position: relative;
    /* Enable positioning for overlay */
    overflow: hidden;
    /* Ensure overlay doesn't extend beyond section */
}

/* About bottom overlay image */
.about-bottom-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Increased height to show more of the image */
    object-fit: cover;
    object-position: center bottom;
    z-index: -1;
    /* Sits on top of content */
    pointer-events: none;
    /* Allows interaction with content behind */
    opacity: 0.1;
    /* Adjusted for better visibility */
    display: block;
    /* Always display when src is present */
}

/* When overlay image has a src, show it */
.about-bottom-overlay[src]:not([src=""]) {
    display: block !important;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    /* Ensure content has positioning context */
    z-index: 5;
    /* Below overlay but above section background */
}

.profile-image {
    flex-shrink: 0;
    position: relative;
    z-index: 20;
    opacity: 1;
    /* Higher than overlay image */
}

.image-placeholder {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background-color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    color: var(--muted-foreground);
    overflow: hidden;
    position: relative;
    z-index: 20;
    /* Higher than overlay image */
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.about-text {
    flex: 1;
    text-align: center;
}

.about-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #000000;
    /* Full black */
}

.about-text h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 24px;
    color: #000000;
    /* Full black */
}

.about-text p {
    font-size: 1.125rem;
    margin-bottom: 24px;
    color: #000000;
    /* Full black */
    line-height: 1.6;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #000000;
    /* Full black */
    justify-content: center;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 400px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 6px;
    border: 2px solid;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    min-height: 48px;
}

.btn-primary {
    background-color: white;
    color: var(--primary);
    border-color: white;
}

.btn-primary:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Work Experience Section */
.work-experience-section {
    background-color: var(--background);
    padding: 64px 16px;
}

.work-experience-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 48px;
    color: var(--foreground);
}

.experiences {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.experience-card {
    background-color: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 0;
    display: flex;
    gap: 0;
    transition: all 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.company-logo {
    flex-shrink: 0;
    padding: 0px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0px;
    margin-right: 20px;
    margin-left: 10px;
    margin-top: 10px;
    width: 48px;
    height: 48px;
}

.company-logo>div,
.company-logo {
    width: 64px;
    height: 64px;
    background-color: var(--muted);
    border: 1px solid var(--muted-border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    transition: all 0.3s ease;
}

.company-logo-img {
    width: 80%;
    height: 80%;
    object-fit: cover;
}


.experience-content {
    flex: 1;
    padding: 24px;
    padding-left: 0;
}

.experience-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.title-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--card-foreground);
    margin-bottom: 4px;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.duration {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.experience-content p {
    color: var(--card-foreground);
    margin-bottom: 16px;
    line-height: 1.6;
}

.technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-badge {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

/* Projects Section */
.projects-section {
    background-color: var(--muted);
    background-color: rgba(var(--muted), 0.3);
    padding: 64px 16px;
}

.projects-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 48px;
    color: var(--foreground);
}

.projects-slider {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    background-color: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--card-foreground);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.nav-prev {
    left: -120px;
}

.nav-next {
    right: -100px;
}

.nav-btn:hover {
    transform: translateY(-50%) translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.projects-container {
    margin: 0 auto;
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 16px 80px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    max-width: 1300px;
    mask: linear-gradient(to right, transparent 0, black 40px, black calc(100% - 40px), transparent 100%);
    -webkit-mask: linear-gradient(to right, transparent 0, black 40px, black calc(100% - 40px), transparent 100%);
    scroll-padding-left: 68px;
}

.projects-container::-webkit-scrollbar {
    display: none;
}

.project-card {
    background-color: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    width: calc((100% - 160px - 48px) / 2.2);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.project-image {
    height: 200px;
    background-color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.project-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.project-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--card-foreground);
}

.project-date {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--muted-foreground);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.project-content>p {
    color: var(--card-foreground);
    margin-bottom: 24px;
    line-height: 1.6;
    flex: 1;
}

.project-section {
    margin-bottom: 16px;
}

.project-section h4 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--card-foreground);
    margin-bottom: 8px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-outline {
    background-color: transparent;
    color: var(--card-foreground);
    border: 1px solid var(--card-border);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 400;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-badge {
    background-color: var(--foreground);
    color: var(--background);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.skill-badge:hover {
    background-color: hsl(0, 0%, 55%);
}

.project-buttons {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.project-btn {
    background-color: transparent;
    color: var(--card-foreground);
    border: 1px solid var(--card-border);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Disabled button styles */
.project-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background-color: var(--muted);
    color: var(--muted-foreground);
    border-color: var(--muted-border);
}

.project-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Tooltip styles */
.project-btn[title]:disabled {
    position: relative;
}

.project-btn[title]:disabled:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 70%;
    transform: translateX(-50%);
    background-color: var(--card);
    color: var(--card-foreground);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    z-index: 1000;
    margin-bottom: 8px;
}

.project-btn[title]:disabled:hover::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--card-border);
    margin-bottom: 4px;
    z-index: 1000;
}

.progress-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: var(--foreground);
}

.project-counter {
    text-align: center;
    margin-top: 16px;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Skills Section */
.skills-section {
    background-color: var(--background);
    padding: 64px 16px;
}

.skills-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 48px;
    color: var(--foreground);
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.skill-category {
    background-color: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 24px;
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.skill-category h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--card-foreground);
    margin-bottom: 16px;
}

.category-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.skill-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.all-skills {
    text-align: center;
}

.all-skills h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 32px;
}

.all-skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.all-skill {
    background-color: var(--foreground);
    color: var(--background);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.all-skill:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact-section {
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding-top: 64px;
    padding-bottom: 16px;
    padding-left: 16px;
    padding-bottom: 16px;
    text-align: center;
}

.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 24px;
}

.contact-section>p {
    font-size: 1.125rem;
    margin-bottom: 48px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.contact-card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    color: var(--primary-foreground);
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    width: 100%;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 1 8px 25px rgba(0, 0, 0, 0.2);
}

.contact-card:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.contact-card svg {
    margin-bottom: 12px;
}

.contact-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 0.875rem;
    opacity: 0.9;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto 48px;
}

.contact-btn-primary,
.contact-btn-secondary {
    padding: 12px 24px;
    border-radius: 6px;
    border: 2px solid;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    min-height: 48px;
}

.contact-btn-primary {
    background-color: white;
    color: var(--primary);
    border-color: white;
}

.contact-btn-primary:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
}

.contact-btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.contact-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer p {
    font-size: 0.875rem;
    opacity: 0.8;
}

.hover-regular-border {
    border: 1px solid var(--card-border);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Colorful Border Effects */
.hover-colorful-border {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--card-border);
}

.hover-color-purple {
    border-color: hsl(280, 100%, 70%) !important;
    box-shadow: 0 0 0 2px hsla(280, 100%, 70%, 0.3) !important;
}

.hover-color-blue {
    border-color: hsl(200, 100%, 70%) !important;
    box-shadow: 0 0 0 2px hsla(200, 100%, 70%, 0.3) !important;
}

.hover-color-green {
    border-color: hsl(120, 100%, 70%) !important;
    box-shadow: 0 0 0 2px hsla(120, 100%, 70%, 0.3) !important;
}

.hover-color-yellow {
    border-color: hsl(60, 100%, 70%) !important;
    box-shadow: 0 0 0 2px hsla(60, 100%, 70%, 0.3) !important;
}

.hover-color-pink {
    border-color: hsl(340, 100%, 70%) !important;
    box-shadow: 0 0 0 2px hsla(340, 100%, 70%, 0.3) !important;
}

.hover-color-orange {
    border-color: hsl(30, 100%, 70%) !important;
    box-shadow: 0 0 0 2px hsla(30, 100%, 70%, 0.3) !important;
}

.hover-color-cyan {
    border-color: hsl(180, 100%, 70%) !important;
    box-shadow: 0 0 0 2px hsla(180, 100%, 70%, 0.3) !important;
}

.hover-color-red {
    border-color: hsl(0, 100%, 70%) !important;
    box-shadow: 0 0 0 2px hsla(0, 100%, 70%, 0.3) !important;
}

/* Achievements Section */
.achievements-section {
    background-color: var(--background);
    padding: 64px 16px;
}

.achievements-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 48px;
    color: var(--foreground);
}

/* Achievement Cards Styles */
.achievements {
    margin-top: 0;
}

.achievements-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 72px;
}

.achievement-card {
    background-color: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 0;
    display: flex;
    gap: 0;
    transition: all 0.3s ease;

}

.achievement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.achievement-content {
    flex: 1;
    padding: 24px;
    padding-right: 8px;
}

.achievement-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.achievement-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--card-foreground);
    margin: 0;
}

.achievement-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.achievement-date svg {
    width: 14px;
    height: 14px;
}

.achievement-content p {
    color: var(--card-foreground);
    line-height: 1.6;
    margin: 0;
}

.achievement-logo {
    flex-shrink: 0;
    padding: 0px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0px;
    margin-right: 8px;
    margin-left: 4px;
    margin-top: 10px;
    width: 48px;
    height: 48px;
}

.achievement-logo>div,
.achievement-logo {
    width: 200px;
    height: 200px;
    background-color: var(--muted);
    border: 1px solid var(--muted-border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    transition: all 0.3s ease;
}

.achievement-logo-img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

/* Responsive Design */
@media (min-width: 768px) {
    .about-content {
        flex-direction: row;
        text-align: left;
    }

    .about-text {
        text-align: left;
    }

    .contact-info {
        flex-direction: row;
        justify-content: flex-start;
    }

    .buttons {
        flex-direction: row;
    }

    .experience-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .contact-buttons {
        flex-direction: row;
        max-width: 800px;
    }

    .about-text h1 {
        font-size: 4rem;
    }

    .image-placeholder {
        width: 192px;
        height: 192px;
    }
}

@media (max-width: 1024px) {
    .project-card {
        min-width: calc((100% - 160px - 24px) / 1.5);
        width: calc((100% - 160px - 24px) / 1.5);
    }
}

@media (max-width: 767px) {
    .project-card {
        min-width: calc(100% - 32px);
        width: calc(100% - 32px);
    }

    .nav-btn {
        display: none;
    }

    .projects-container {
        padding: 16px 0;
        overflow-x: auto;
    }

    .skills-categories {
        grid-template-columns: 1fr;
    }
}