/* ---------- Base Reset & Layout ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #111827 0, #020617 50%, #000 100%);
    color: #e5e7eb;
    margin: 0;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overflow-x: hidden;
}

/* Background canvas */

#particleCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    display: block;
}

/* Generic containers & sections */

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero,
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 96px 0;
    scroll-snap-align: start;
}

.alt {
    background: radial-gradient(circle at top, rgba(148, 163, 184, 0.05), rgba(15, 23, 42, 0.9));
}

/* ---------- Hero ---------- */

.hero-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.profile {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(129, 140, 248, 0.8);
    box-shadow: 0 0 40px rgba(129, 140, 248, 0.45);
}

.name {
    font-size: 2.6rem;
    letter-spacing: 0.03em;
    font-weight: 700;
}

.tagline {
    font-size: 1.1rem;
    color: #9ca3af;
    margin-bottom: 16px;
}

.buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 24px;
    border-radius: 999px;
    border: 1px solid rgba(129, 140, 248, 0.8);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.85), rgba(129, 140, 248, 0.9));
    color: #f9fafb;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.6);
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s ease-out;
}

.btn.secondary {
    background: transparent;
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.6);
    box-shadow: none;
}

.btn:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.55);
}

.btn.secondary:hover {
    background: rgba(15, 23, 42, 0.9);
}

/* ---------- Section Titles & Text ---------- */

.section-title {
    font-size: 2rem;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin: 10px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #3b82f6, #a855f7, #f97316);
    opacity: 0.9;
}

.section-text {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.02rem;
    line-height: 1.7;
    color: #d1d5db;
    text-align: center;
}

/* ---------- Cards ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.card-grid.small {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(17, 24, 39, 0.95));
    border-radius: 18px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.card p,
.card li {
    font-size: 0.95rem;
    color: #d1d5db;
}

.card ul {
    list-style: none;
    padding-left: 0;
}

.card li::before {
    content: "• ";
    color: #60a5fa;
}

.card.single {
    max-width: 520px;
    margin: 0 auto;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.95);
    border-color: rgba(129, 140, 248, 0.9);
}

/* ---------- Experience ---------- */

.experience-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    margin-top: 24px;
}

.exp-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline-company {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 4px;
}

.company {
    font-size: 1.15rem;
    font-weight: 600;
}

.timeline-company-duration {
    font-size: 0.9rem;
    color: #9ca3af;
}

.company-badge {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #f9fafb;
    background: radial-gradient(circle at 30% 20%, #4f46e5, #0f172a);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.8);
    flex-shrink: 0;
}

.company-badge.esko {
    background: radial-gradient(circle at 30% 20%, #22c55e, #064e3b);
}

.company-badge.infosys {
    background: radial-gradient(circle at 30% 20%, #38bdf8, #0f172a);
}

.exp-role-card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 14px;
    padding: 16px 16px 14px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.8);
}

.exp-role-card h4 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.timeline-duration,
.timeline-location {
    font-size: 0.9rem;
    color: #9ca3af;
}

/* ---------- Contact ---------- */

.contact-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.95rem;
    background: rgba(15, 23, 42, 0.9);
    transition: background 0.15s ease-out, transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.contact-link .icon {
    font-weight: 700;
}

.contact-link:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(129, 140, 248, 0.95));
    box-shadow: 0 18px 40px rgba(30, 64, 175, 0.9);
    transform: translateY(-2px);
}

/* ---------- Down Arrow ---------- */

.down-arrow {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 40px;
    text-decoration: none;
    color: #9ca3af;
    font-size: 1.6rem;
    opacity: 0.85;
    animation: bounce 1.4s ease-in-out infinite;
}

.down-arrow:hover {
    color: #e5e7eb;
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 6px); }
}

/* ---------- Footer ---------- */

footer {
    text-align: center;
    padding: 18px 16px 26px;
    font-size: 0.9rem;
    color: #9ca3af;
}

/* ---------- Mobile Responsive ---------- */

@media screen and (max-width: 768px) {

    .hero,
    .section {
        padding: 72px 0 80px;
        justify-content: flex-start;
    }

    .container {
        padding: 0 18px;
    }

    .profile {
        width: 140px;
        height: 140px;
    }

    .name {
        font-size: 2rem;
    }

    .tagline {
        font-size: 0.98rem;
        margin-bottom: 18px;
    }

    .buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 320px;
    }

    .btn,
    .btn.secondary {
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 18px;
    }

    .section-text {
        font-size: 0.98rem;
        text-align: left;
    }

    .card-grid,
    .card-grid.small {
        grid-template-columns: 1fr !important;
        gap: 16px;
        margin-top: 24px;
    }

    .card {
        padding: 16px 14px 14px;
    }

    .experience-grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
        margin-top: 18px;
    }

    .exp-role-card {
        margin-bottom: 8px;
    }

    .timeline-company {
        gap: 10px;
    }

    .company-badge {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .contact-link {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .down-arrow {
        bottom: 20px;
        font-size: 1.4rem;
    }
}

/* Extra small screens */
@media screen and (max-width: 430px) {
    .name {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.45rem;
    }
}


.fade-section {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-section.in-view {
    opacity: 1;
    transform: translateY(0);
}

