/* ═══════════════════════════════════════════════════════════════
   about.css — Personal Branding Page Styles for Joseph Vijayakumar J
   Extends styles.css — requires it to be loaded first
   ═══════════════════════════════════════════════════════════════ */

/* ─── Nav Active State ─────────────────────────────── */
.nav-active {
    color: var(--primary) !important;
    font-weight: 700 !important;
    position: relative;
}
.nav-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* ─── Background accent shape 3 ────────────────────── */
.about-shape-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 181, 71, 0.12) 0%, rgba(244, 247, 254, 0) 70%);
    bottom: 30%;
    right: -50px;
}

/* ═══════════════════════════════════════════════════════════════
   PROFILE HERO
   ═══════════════════════════════════════════════════════════════ */
.profile-hero {
    padding-top: 130px;
    padding-bottom: 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, rgba(108,93,211,0.04) 0%, var(--bg-page) 100%);
}

.profile-hero-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 64px;
    align-items: center;
}

/* Avatar */
.avatar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
}

.avatar-circle-container {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-ring {
    position: absolute;
    width: 196px;
    height: 196px;
    border-radius: 50%;
    background: conic-gradient(var(--primary), #8B7EF8, #00D2FF, var(--success), var(--secondary), var(--primary));
    animation: rotate-ring 4s linear infinite;
    top: -8px;
    left: -8px;
}

@keyframes rotate-ring {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.avatar-initials {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #8B7EF8, #00D2FF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 60px;
    font-weight: 800;
    color: white;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 50px rgba(108, 93, 211, 0.35);
    letter-spacing: -2px;
}

.avatar-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 18px;
    border-radius: 100px;
    box-shadow: var(--shadow-soft);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    animation: blink-dot 1.5s ease-in-out infinite;
}

@keyframes blink-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Profile Text */
.profile-card-right h1 {
    font-size: 52px;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.profile-tagline {
    font-size: 18px;
    color: var(--text-body);
    max-width: 580px;
    margin-bottom: 28px;
    line-height: 1.7;
}

.profile-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.profile-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: var(--shadow-soft);
}

.profile-meta-chip .material-icons-round {
    font-size: 16px;
    color: var(--primary);
}

.profile-cta-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-outline-profile {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid rgba(0, 119, 181, 0.3);
    color: #0077B5;
    background: rgba(0, 119, 181, 0.05);
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s;
    font-family: 'Outfit', sans-serif;
}

.btn-outline-profile:hover {
    background: #0077B5;
    color: white;
    border-color: #0077B5;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 119, 181, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT ME SECTION
   ═══════════════════════════════════════════════════════════════ */
.about-me-section {
    padding: 80px 0;
    background: white;
}

.about-me-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

.story-card {
    background: var(--bg-page);
    border-radius: var(--radius-lg);
    padding: 48px;
}

.story-icon-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.story-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), #8B7EF8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.story-icon-box .material-icons-round {
    font-size: 28px;
}

.story-icon-header h2 {
    font-size: 28px;
    margin: 0;
}

.story-card p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-body);
}

/* Quick Stats Column */
.quick-stats-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.quick-stat-card {
    background: var(--bg-page);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.quick-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.quick-stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
}

.quick-stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-body);
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   TECH STACK SECTION
   ═══════════════════════════════════════════════════════════════ */
.tech-section {
    padding: 100px 0;
    background: var(--bg-page);
}

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

.tech-category-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s;
}

.tech-category-card:hover {
    transform: translateY(-6px);
}

.tech-cat-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.tech-cat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.tech-cat-icon .material-icons-round {
    font-size: 26px;
}

.tech-cat-header h3 {
    font-size: 20px;
    margin: 0;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    display: inline-flex;
    align-items: center;
    background: var(--bg-page);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(108, 93, 211, 0.12);
    transition: all 0.2s;
}

.tech-tag:hover {
    background: rgba(108, 93, 211, 0.08);
    border-color: rgba(108, 93, 211, 0.3);
    color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════════
   SERVICES SECTION
   ═══════════════════════════════════════════════════════════════ */
.services-section {
    padding: 100px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--bg-page);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    transition: all 0.3s;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary), #8B7EF8);
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover {
    background: white;
    box-shadow: var(--shadow-strong);
    transform: translateY(-8px);
    border-color: rgba(108, 93, 211, 0.1);
}

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

.service-card-highlight {
    background: linear-gradient(135deg, rgba(255,181,71,0.06) 0%, white 100%);
    border: 1px solid rgba(255, 181, 71, 0.25);
}

.service-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
}

.service-icon-box .material-icons-round {
    font-size: 30px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.service-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.service-features .material-icons-round {
    font-size: 18px;
    color: var(--success);
}

/* ═══════════════════════════════════════════════════════════════
   PROJECTS SECTION
   ═══════════════════════════════════════════════════════════════ */
.projects-section {
    padding: 100px 0;
    background: var(--bg-page);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.project-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.04);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.project-card-primary {
    background: linear-gradient(135deg, rgba(108,93,211,0.06) 0%, white 60%);
    border: 1px solid rgba(108, 93, 211, 0.15);
}

.project-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.project-logo-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--bg-page);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.06);
}

.project-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.project-logo-xplit {
    background: linear-gradient(135deg, #2B3674, #6C5DD3);
}

.project-card-header h3 {
    font-size: 22px;
    margin: 0 0 6px;
}

.project-badge {
    display: inline-block;
    background: rgba(5, 205, 153, 0.12);
    color: var(--success);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    border: 1px solid rgba(5, 205, 153, 0.25);
}

.project-badge-accent {
    background: rgba(108, 93, 211, 0.1);
    color: var(--primary);
    border-color: rgba(108, 93, 211, 0.2);
}

.project-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 20px;
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tech-tag-sm {
    display: inline-flex;
    background: var(--bg-page);
    color: var(--text-main);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid rgba(108, 93, 211, 0.12);
}

.project-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.project-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary), #8B7EF8);
    color: white;
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
}

.project-link-btn .material-icons-round {
    font-size: 16px;
}

.project-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 93, 211, 0.35);
}

.project-link-ghost {
    background: transparent;
    color: var(--primary);
    border: 2px solid rgba(108, 93, 211, 0.3);
}

.project-link-ghost:hover {
    background: rgba(108, 93, 211, 0.08);
    box-shadow: none;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT PRO SECTION
   ═══════════════════════════════════════════════════════════════ */
.contact-pro-section {
    padding: 100px 0;
    background: white;
}

.contact-pro-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info-pro {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-page);
    padding: 20px 22px;
    border-radius: var(--radius-md);
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-info-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-soft);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-info-icon .material-icons-round {
    font-size: 22px;
}

.contact-info-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.contact-info-value {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    word-break: break-all;
}

a.contact-info-value {
    transition: color 0.2s;
}

a.contact-info-value:hover {
    color: var(--primary);
}

/* Services Quick List */
.services-quick-list {
    background: linear-gradient(135deg, rgba(108,93,211,0.06), rgba(108,93,211,0.02));
    border: 1px solid rgba(108, 93, 211, 0.15);
    border-radius: var(--radius-md);
    padding: 24px;
}

.services-quick-list h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
}

.services-quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sq-tag {
    display: inline-flex;
    background: white;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(108, 93, 211, 0.2);
    transition: all 0.2s;
    cursor: default;
}

.sq-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Contact Form */
.contact-form-pro {
    background: var(--bg-page);
    border-radius: var(--radius-lg);
    padding: 44px;
}

.contact-form-pro h3 {
    font-size: 26px;
    margin-bottom: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Spin animation for submit button */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}



/* ═══════════════════════════════════════════════════════════════
   EDUCATION SECTION
   ═══════════════════════════════════════════════════════════════ */
.education-section {
    padding: 100px 0;
    background: white;
}

.education-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 860px;
    margin: 0 auto;
}

.education-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--bg-page);
    border-radius: 20px;
    padding: 32px 28px;
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid rgba(0,0,0,0.04);
}

.education-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.education-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.education-icon-box .material-icons-round {
    font-size: 26px;
}

.education-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.education-degree {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
}

.education-school {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.education-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.education-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

.education-meta .material-icons-round {
    font-size: 14px;
    color: var(--text-light);
}

/* ═══════════════════════════════════════════════════════════════
   EXPERIENCE TIMELINE
   ═══════════════════════════════════════════════════════════════ */
.experience-section {
    padding: 100px 0;
    background: var(--bg-page);
}

.timeline {
    position: relative;
    max-width: 860px;
    margin: 60px auto 0;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    height: 100%;
    width: 2px;
    background: rgba(0,0,0,0.06);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 13px;
    top: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--text-light);
    box-shadow: 0 0 0 4px var(--bg-page);
    z-index: 2;
    transition: all 0.3s;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    border-color: var(--primary);
}

.timeline-dot.timeline-dot-primary {
    border-color: var(--primary);
}

.timeline-dot.timeline-dot-accent {
    border-color: #8B7EF8;
}

.timeline-content {
    background: white;
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

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

.timeline-role {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 4px 0;
}

.timeline-company {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
}

.timeline-period {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    background: rgba(0,0,0,0.03);
    padding: 6px 12px;
    border-radius: 100px;
    white-space: nowrap;
}

.timeline-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
    font-weight: 500;
}

.timeline-location .material-icons-round {
    font-size: 16px;
}

.timeline-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeline-bullets li {
    position: relative;
    padding-left: 20px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-body);
}

.timeline-bullets li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 968px) {
    .profile-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .profile-card-right h1 {
        font-size: 38px;
    }

    .profile-meta-row {
        justify-content: center;
    }

    .profile-cta-group {
        justify-content: center;
    }

    .about-me-grid {
        grid-template-columns: 1fr;
    }

    .quick-stats-col {
        grid-template-columns: repeat(4, 1fr);
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-pro-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .education-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        padding-left: 64px;
    }

    .timeline-content {
        padding: 22px 24px;
    }
}

@media (max-width: 640px) {
    .profile-hero {
        padding-top: 110px;
    }

    .avatar-circle-container {
        width: 140px;
        height: 140px;
    }

    .avatar-initials {
        width: 140px;
        height: 140px;
        font-size: 48px;
    }

    .avatar-ring {
        width: 156px;
        height: 156px;
    }

    .profile-card-right h1 {
        font-size: 28px;
        word-break: break-word;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .quick-stats-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .story-card {
        padding: 28px 24px;
    }

    .contact-form-pro {
        padding: 28px 24px;
    }

    .profile-meta-row {
        gap: 8px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-dot {
        left: 9px;
        width: 20px;
        height: 20px;
    }

    .timeline-item {
        padding-left: 48px;
    }

    .timeline-content {
        padding: 18px 20px;
    }

    .timeline-header {
        flex-direction: column;
        gap: 8px;
    }
}
