/* Profile Section */
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 3rem;
}

.profile-img {
    width: 20%;
    height: auto;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
    object-position: center 50%;
}

.title {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.profile p {
    max-width: 600px;
    margin: 0 auto;
}

/* Professional Milestones */
.milestones-section {
    margin: 4rem 0;
    text-align: center;
}

.milestones-section h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 3rem;
}

.milestones-list {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.milestone-item {
    display: flex;
    gap: 2rem;
    align-items: baseline;
    margin-bottom: 1.2rem;
    padding: 0.3rem 0;
}

.milestone-year {
    color: var(--secondary-text);
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 50px;
    flex-shrink: 0;
}

.milestone-text {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Style milestone links with a subtle arrow */
.milestone-text a {
    color: var(--secondary-text);  /* keep your current style */
    text-decoration: none;
    position: relative;
    font-weight: 500; /* makes them a bit stronger */
}

.milestone-text a::after {
    content: "↗";
    font-size: 0.7em;         /* smaller than text */
    margin-left: 4px;         /* space between text & arrow */
    vertical-align: super;    /* lift it up */
    opacity: 0.7;             /* softer look */
}

.milestone-text a:hover {
    color: var(--text-color); /* highlight on hover */
    text-decoration: underline;
}

.milestone-text a:hover::after {
    opacity: 1; /* arrow brightens on hover */
}


/* Professional Certifications */
.certs {
    padding: 3rem 0;
    text-align: center;
}

.certs h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    margin-top: 3rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.cert-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
    min-height: 180px;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.cert-card:hover::before {
    opacity: 1;
}

.cert-header {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.cert-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px;
}

.cert-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.2;
    margin-bottom: 0.2rem;
}

.cert-issuer {
    color: var(--secondary-text);
    font-size: 0.75rem;
    font-weight: 500;
}

.cert-year {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--text-color);
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: none;
}

.cert-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
    pointer-events: none;
}

.cert-skills {
    margin-top: 1.5rem;
}

.cert-skills h4 {
    font-size: 0.85rem;
    color: var(--secondary-text);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    color: var(--text-color);
    padding: 0.3rem 0.8rem;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Certification pointer events */
.cert-card .cert-title,
.cert-card .cert-issuer,
.cert-card .cert-skills,
.cert-card .cert-skills h4,
.cert-card .skill-tag,
.cert-card .cert-header,
.cert-card .cert-logo {
    pointer-events: none;
}

/* Tech Stack Section */
.tech-stack-section {
    margin: 4rem 0;
    text-align: center;
}

.tech-stack-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.tech-stack-container {
    overflow: hidden;
    position: relative;
    width: 100vw;
    height: 90px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.tech-stack-scroll {
    display: flex;
    align-items: center;
    gap: 4rem;
    height: 80px;
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
}

.tech-logo, .custom-logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.tech-logo {
    object-fit: contain;
}

.custom-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-text);
    border-radius: 6px;
    color: var(--bg-color);
    font-size: 12px;
    font-weight: bold;
}

.tech-logo:hover, .custom-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.custom-logo:hover {
    background: var(--text-color);
}

/* Dark/Light theme adjustments */
[data-theme="dark"] .cert-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: #374151;
}

[data-theme="dark"] .cert-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #4b5563;
}

[data-theme="dark"] .cert-logo {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .cert-card {
    background: #f8fafc;
    border-color: var(--text-color);
}

[data-theme="light"] .cert-card:hover {
    background: white;
    border-color: #cbd5e1;
}

[data-theme="light"] .cert-logo {
    background: white;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .milestone-item {
        gap: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .milestone-year {
        min-width: 45px;
        font-size: 0.85rem;
    }
    
    .milestone-text {
        font-size: 0.9rem;
    }

    .certs {
        padding: 2rem 0;
    }

    .cert-year {
        top: 1.2rem;
        right: 1.2rem;
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .cert-card {
        padding: 1.2rem;
        min-height: 200px;
    }
    
    .cert-header {
        gap: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .cert-logo {
        width: 40px;
        height: 40px;
    }

    .tech-stack-container {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }
    
    .tech-logo, .custom-logo {
        width: 36px;
        height: 36px;
    }
    
    .tech-stack-scroll {
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    .cert-year {
        top: 1rem;
        right: 1rem;
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }

    .cert-card {
        min-height: auto;
    }
    
    .cert-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .cert-logo {
        width: 48px;
        height: 48px;
    }
}