/* Minimalist Portfolio - Exact Match Design */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'IBM Plex Mono', monospace;
}

body {
    
    min-height: 100vh;
    width: 100%;
    position: relative;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.5;
    font-size: 15px;
    font-weight: 400;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        linear-gradient(to right, rgba(229,231,235,0.8) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(229,231,235,0.8) 1px, transparent 1px),
        radial-gradient(circle 500px at 0% 20%, rgba(139,92,246,0.3), transparent),
        radial-gradient(circle 500px at 100% 0%, rgba(59,130,246,0.3), transparent);
    background-size: 48px 48px, 48px 48px, 100% 100%, 100% 100%;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #e0e0e0;
    z-index: 0;
}

.container::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #e0e0e0;
    z-index: 0;
}

/* Decorative Elements */
.section-divider {
    width: calc(100% + 48px);
    height: 20px;
    margin: 24px -24px;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 6px,
        #000000 6px,
        #000000 7px
    );
    opacity: 0.9;
    border-radius: 0;
    position: relative;
}

.section-divider::before,
.section-divider::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #000000;
    opacity: 0.9;
}

.section-divider::before {
    top: -10px;
}

.section-divider::after {
    bottom: -10px;
}

.section-divider.top {
    margin-top: 0;
    margin-bottom: 16px;
}

.section-divider.bottom {
    margin-top: 16px;
    margin-bottom: 0;
}

/* Navigation Header */
.nav-header {
    padding: 32px 0 16px 0;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.nav-link {
    color: #0066cc;
    text-decoration: underline;
    text-decoration-color: transparent;
    padding: 4px 0;
    transition: all 0.2s ease;
    font-weight: 400;
}

.nav-link:hover {
    text-decoration-color: #0066cc;
}

.nav-link.active {
    color: #0066cc;
    text-decoration-color: #0066cc;
}

.nav-separator {
    color: black;
    margin: 0 8px;
    font-weight: 400;
}

/* Main Content */
.main-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.section {
    display: block;
}

/* Profile Header */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 72px;
    gap: 48px;
}

.profile-text {
    flex: 1;
}

/* Responsive Typing Animation */
.typing-animation {
    margin-bottom: 24px;
    width: 100%;
    overflow: hidden;
}

.typing-svg {
    max-width: 100%;
    height: auto;
    display: block;
    width: 100%;
}

.profile-name {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.profile-description {
    color: #000000;
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 400;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.social-link {
    color: #0066cc;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #0052a3;
    text-decoration-color: #0052a3;
}

.social-separator {
    color: #000000;
    margin: 0 4px;
    font-weight: 400;
}

.cta-button {
    background-color: #f0f0f0;
    color: #1a1a1a;
    border: 1px solid #e0e0e0;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.cta-button:hover {
    background-color: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.15);
}

.profile-image {
    flex-shrink: 0;
    margin-left: -20px;
    margin-top: 20px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e0e0e0;
}

/* Section Content */
.section-content {
    margin-bottom: 64px;
}

.about-header {
    margin-bottom: 32px;
}

.about-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0;
    letter-spacing: -0.02em;
    text-decoration: underline;
    text-decoration-color: #1a1a1a;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
    text-decoration: underline;
    text-decoration-color: #1a1a1a;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}

/* Experience */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.experience-item {
    padding: 0;
}

.experience-item:last-child {
    border-bottom: none;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.company-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.company-logo {
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    flex-shrink: 0;
    border: 1px solid #e5e5e5;
}

.owasp-logo svg {
    width: 20px;
    height: 20px;
}

.dotpro-logo svg {
    width: 20px;
    height: 20px;
}

.experience-details {
    flex: 1;
}

.position-title {
    font-size: 15px;
    font-weight: 500;
    color: #0066cc;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.position-arrow {
    color:#0052a3;
    font-size: 16px;
    font-weight: 400;
}

.position-role {
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
}

.experience-duration {
    color: #333;
    font-size: 14px;
    white-space: nowrap;
    font-weight:600;
}

/* Projects */
.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    gap: 24px;
}

.project-filters {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    padding: 6px 12px;
    font-family: inherit;
    font-weight: 400;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.filter-btn:hover {
    background-color: #e8e8e8;
    color: #1a1a1a;
}

.filter-btn.active {
    background-color: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-item {
    padding: 12px 0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.project-item:hover {
    transform: translateX(2px);
}

.project-header {
    display: flex;
    flex-direction: row;
    gap: 4px;
}

.project-name {
    font-size: 15px;
    font-weight: 400;
    color: #0066cc;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.2s ease;
}

.project-item:hover .project-name {
    text-decoration-color: none;
}

.project-arrow {
    color:#0052a3;
    font-size: 18px;
    font-weight: 400;
}

.project-description {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    margin-top: 2px;
}

/* Skills */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.skill-tag {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 50%, #ffffff 100%), 
                radial-gradient(circle at 25% 25%, rgba(0,0,0,0.08) 1px, transparent 1px),
                radial-gradient(circle at 75% 75%, rgba(0,0,0,0.06) 1px, transparent 1px),
                radial-gradient(circle at 50% 10%, rgba(0,0,0,0.04) 1px, transparent 1px),
                radial-gradient(circle at 10% 90%, rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 100% 100%, 4px 4px, 6px 6px, 8px 8px, 5px 5px;
    border: 1.8px solid #000000;
    border-radius: 0;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    min-height: 36px;
    cursor: pointer;
    position: relative;
    /* width:auto for desktop for compact tags; becomes 100% inside mobile grid */
    box-sizing: border-box;
    line-height: 1;
    justify-content: flex-start;
}

.skill-tag:hover {
    border-color: #000;
    background: linear-gradient(135deg, #f9fafb 0%, #f0f1f2 50%, #f9fafb 100%), 
                radial-gradient(circle at 25% 25%, rgba(0,0,0,0.1) 1px, transparent 1px),
                radial-gradient(circle at 75% 75%, rgba(0,0,0,0.08) 1px, transparent 1px),
                radial-gradient(circle at 50% 10%, rgba(0,0,0,0.06) 1px, transparent 1px),
                radial-gradient(circle at 10% 90%, rgba(0,0,0,0.07) 1px, transparent 1px);
    background-size: 100% 100%, 4px 4px, 6px 6px, 8px 8px, 5px 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.skill-tag:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    font-weight: 600;
    flex: 0 0 20px;
}

/* Normalize SVG/icon sizing inside skill tags */
.skill-icon svg,
.skill-icon img {
    width: 20px;
    height: 20px;
    display: block;
}

.skill-name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0; /* allow flex child to shrink for ellipsis */
}

/* Skills section subtitles */
.skills-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 16px 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Specific skill colors */
.javascript .skill-icon {
    background-color: #f7df1e;
    color: black;
    border-radius: 2px;
    padding: 2px 4px;
    font-size: 12px;
    font-weight: 700;
}

.typescript .skill-icon {
    background-color: #3178c6;
    color: white;
    border-radius: 2px;
    padding: 2px 4px;
    font-size: 12px;
    font-weight: 700;
}

.react .skill-icon {
    color: #61dafb;
    font-size: 18px;
}

.nextjs .skill-icon {
    background-color: black;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.express .skill-icon {
    background-color: white;
    color: black;
    border: 1px solid #ccc;
    border-radius: 2px;
    padding: 2px 4px;
    font-size: 12px;
    font-weight: 700;
}

.nodejs .skill-icon {
    color: #68a063;
    font-size: 18px;
}

.python .skill-icon {
    background-color: transparent;
    padding: 0;
    font-size: 20px;
}

/* .langchain .skill-icon {
    background-color: white;
    color: black;
    border: 1px solid #ccc;
    border-radius: 2px;
    padding: 2px 4px;
    font-size: 14px;
} */

/* .langgraph .skill-icon {
    background-color: white;
    color: black;
    border: 1px solid #ccc;
    border-radius: 2px;
    padding: 2px 4px;
    font-size: 14px;
} */

/* .postgres .skill-icon {
    background-color: #336791;
    color: white;
    border-radius: 2px;
    padding: 2px 4px;
    font-size: 12px;
} */

/* .prisma .skill-icon {
    background-color: black;
    color: white;
    border-radius: 2px;
    padding: 2px 4px;
    font-size: 12px;
} */

/* .c .skill-icon {
    background-color: #00599c;
    color: white;
    border-radius: 2px;
    padding: 2px 4px;
    font-size: 12px;
    font-weight: 700;
} */

.java .skill-icon {
    background-color: transparent;
    padding: 0;
    font-size: 20px;
}

.colab .skill-icon {
    background-color: transparent;
    padding: 0;
    font-size: 20px;
}

.mongodb .skill-icon {
    background-color: transparent;
    padding: 0;
    font-size: 20px;
}

/* .docker .skill-icon {
    color: #0db7ed;
    font-size: 16px;
} */

/* .kubernetes .skill-icon {
    background-color: #326ce5;
    color: white;
    border-radius: 2px;
    padding: 2px 4px;
    font-size: 14px;
} */

/* .aws .skill-icon {
    background-color: #ff9900;
    color: black;
    border-radius: 2px;
    padding: 2px 4px;
    font-size: 10px;
    font-weight: 700;
} */

.git .skill-icon {
    color: #f14e32;
    font-size: 16px;
}

.vercel .skill-icon {
    background-color: transparent;
    padding: 0;
    font-size: 20px;
}

.tailwind .skill-icon {
    background-color: transparent;
    padding: 0;
    font-size: 20px;
}

.opencv .skill-icon {
    background-color: transparent;
    padding: 0;
    font-size: 20px;
}

.tensorflow .skill-icon {
    background-color: transparent;
    padding: 0;
    font-size: 20px;
}

.jupyter .skill-icon {
    background-color: transparent;
    padding: 0;
    font-size: 20px;
}

/* Blogs */
.blogs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    gap: 24px;
}

.blog-filters {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.blogs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog-item {
    padding: 12px 0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.blog-item:hover {
    transform: translateX(2px);
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.blog-title {
    font-size: 15px;
    font-weight: 400;
    color: #0066cc;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    line-height: 1.4;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.2s ease;
}

.blog-item:hover .blog-title {
    text-decoration-color: none;
}

.blog-arrow {
    color: #0e58e1;
    font-size: 19px;
    font-weight: 400;
}

.blog-date {
    color: #333;
    font-size: 14px;
    white-space: nowrap;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .nav-header {
        padding: 20px 0 16px 0;
        margin-bottom: 40px;
    }

    .typing-svg {
        width: 100%;
        max-width: 400px;
        height: auto;
    }

    .profile-header {
        flex-direction: column;
        gap: 32px;
        margin-bottom: 60px;
        text-align: center;
        align-items: center;
    }

    .profile-text {
        order: 2;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .profile-image {
        order: 1;
        align-self: center;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

    .profile-name {
        font-size: 28px;
    }

    .profile-description {
        font-size: 15px;
        text-align: left;
    }

    .social-links {
        justify-content: center;
        gap: 12px;
    }

    .cta-button {
        padding: 12px 20px;
        font-size: 15px;
        align-self: center;
        min-width: 180px;
        margin: 16px auto 0 auto;
        display: block;
        text-align: center;
    }

    .projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .project-filters {
        gap: 16px;
        flex-wrap: wrap;
    }

    .blogs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .blog-filters {
        gap: 16px;
        flex-wrap: wrap;
    }

    .experience-header {
        flex-direction: column;
        gap: 8px;
    }

    .experience-duration {
        align-self: flex-start;
    }

    .project-header,
    .blog-header {
        flex-direction: column;
        gap: 8px;
    }

    .blog-date {
        align-self: flex-start;
    }

    .skills-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }
    .skills-grid .skill-tag { width: 100%; }

    .skill-tag {
        padding: 6px 10px;
        font-size: 12px;
    }

    .section-content {
        margin-bottom: 60px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .typing-svg {
        width: 100%;
        max-width: 320px;
        height: auto;
    }

    .profile-name {
        font-size: 24px;
    }

    .profile-description {
        font-size: 14px;
    }

    .cta-button {
        padding: 14px 20px;
        font-size: 15px;
        width: calc(100% - 8px);
        min-height: 52px;
        margin: 20px auto 0 auto;
        display: block;
        text-align: center;
        border-radius: 8px;
        box-sizing: border-box;
        align-self: center;
    }

    .section-title {
        font-size: 18px;
    }

    .nav-links {
        font-size: 13px;
    }

    .project-filters {
        gap: 12px;
    }

    .filter-btn {
        font-size: 13px;
    }

    .blog-filters {
        gap: 12px;
    }

    .skills-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    .skills-grid .skill-tag { width: 100%; }
}

/* Animation for section transitions */
.section {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Project filtering animation */
.project-item {
    transition: all 0.3s ease;
}

.project-item.hidden {
    display: none;
}

.project-item.show {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus styles for accessibility */
.nav-link:focus,
.social-link:focus,
.cta-button:focus,
.filter-btn:focus,
.project-item:focus,
.blog-item:focus {
    outline: none;
}

/* Extra small devices */
@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }

    .typing-svg {
        width: 100%;
        max-width: 280px;
        height: auto;
    }

    .profile-description {
        font-size: 13px;
    }

    .section-title,
    .about-title {
        font-size: 18px;
    }
}

/* Print styles */
@media print {
    .nav-header {
        display: none;
    }

    .profile-header {
        margin-bottom: 40px;
    }

    .section {
        display: block !important;
        break-inside: avoid;
    }

    .section-content {
        margin-bottom: 40px;
    }
}