/* IMPORT FONT */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* GLOBAL RESET / BASE */
* {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #213555;
    --secondary: #F5EFE7;
    --bold: #0D1164;
}

.primary {
    color: var(--primary) !important;
}

.primary-bg {
    background-color: var(--primary) !important;
}

.active {
    color: var(--bold) !important;
}

/* ===========================
   HERO (centered content)
   =========================== */

.hero {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.9) 0%, rgba(62, 88, 121, 0.15) 60%),
        linear-gradient(180deg, white, #3E5879);
    position: relative;
    min-height: 100vh;
    color: white;

    /* Stack children vertically */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* make navbar container inside hero full width */
.hero > .container {
    width: 100%;
}

/* HERO CONTENT — perfectly centered block */
.hero-content {
    flex: 1; /* occupy remaining space */
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertical centering */
    align-items: center; /* horizontal centering */
    padding-top: 6rem; /* spacing under fixed navbar */
    padding-bottom: 4rem;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    text-align: center;
}

.hero-title {
    font-size: clamp(2rem, 1vw + 2rem, 2.75rem);
    color: #0D1164;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 0.4vw + 1rem, 1.25rem);
    color: #213555;
}

.hero-desc {
    color: #1a1a1a;
    font-size: 1rem;
    line-height: 1.6;
}

/* STAT CHIPS */
.hero-stats {
    gap: 1rem;
    max-width: 800px;
}

.stat-chip {
    background: rgba(33, 53, 85, 0.8);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    min-width: 180px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.stat-label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
}

.stat-text {
    display: block;
    font-size: .75rem;
    font-weight: 400;
    color: rgba(255,255,255,0.8);
    line-height: 1.2;
    margin-top: .25rem;
}

/* glowing orb (optional) */
.hero-orb {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(13,17,100,0.6) 0%, rgba(33,53,85,0) 70%);
    filter: blur(40px);
    right: 10%;
    bottom: 15%;
    z-index: 1;
    opacity: 0.4;
}

/* navbar on scroll */
.navscrolled {
    background-color: white !important;
    border-bottom: var(--primary) solid 1px;
}

/* cursor color for Typed.js */
.typed-cursor {
    color: var(--primary);
}

/* rounded profile images */
.circle {
    border-radius: 300px;
}

/* experience callout in About section */
.exp-card {
    position: relative;
    left: 50%;
    transform: translate(95%, -170%);
    bottom: 0;
    background-color: #fff;
}

/* rotating hobby icon block */
.rotate {
    background-color: var(--secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: rotate(45deg);
    color: var(--primary);
    transition: .5s;
    width: 15px !important;
    height: 15px !important;
}

.rotate i {
    transform: rotate(-45deg);
}

.rotate:hover {
    color: white;
    background-color: var(--primary);
}

.hover:hover .rotate {
    color: white;
    background-color: var(--primary);
}

/* sections with gray bg */
#experience,
#blogs {
    background-color: #F9FAFB;
}

/* ===========================
   TIMELINE
   =========================== */

.timeline {
    position: relative;
    margin: 50px 0;
    padding: 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    border-left: #ddd dashed 2px;
    transform: translateX(-50%);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 3px dashed var(--bold);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

/* ===========================
   PROJECT CARD HOVER OVERLAY
   =========================== */

.wrapper {
    position: relative;
}

.content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(13, 17, 100, .8);
    color: #fff;
    visibility: hidden;
    opacity: 0;
    transition: opacity .7s, visibility .3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
}

.wrapper:hover .content {
    visibility: visible;
    opacity: 1;
}

/* link hover on "Read more" etc. */
.link-hover {
    transition: .8s;
}

.link-hover:hover {
    color: var(--bold) !important;
}

/* hide unused old hero items */
.divider,
.hero-img,
.hero-img::before,
.floating-card,
.floating-card > #c1,
.floating-card > #c2 {
    display: none !important;
}

/* ===========================
   RESPONSIVE
   =========================== */

/* phones */
@media only screen and (max-width: 600px) {

    /* Timeline line moves to the left on mobile */
    .timeline::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: -10%;
        width: 2px;
        background: #ddd;
        border-left: none;
        transform: none;
    }

    .timeline-item::before {
        content: '';
        position: absolute;
        left: -13.5%;
        width: 20px;
        height: 20px;
        background: #fff;
        border: 3px dashed var(--bold);
        border-radius: 50%;
        transform: translateX(0%);
        z-index: 1;
    }

    .exp-card {
        position: relative;
        left: 50%;
        transform: translate(50%, -170%);
        bottom: 0;
    }

    .hero-content {
        padding-top: 5rem;
        padding-bottom: 3rem;
        max-width: 90%;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .stat-chip {
        min-width: 140px;
        text-align: center;
    }
}

/* tablets */
@media (min-width: 768px) and (max-width:992px) {

    .exp-card {
        position: relative;
        left: 50%;
        transform: translate(50%, -170%);
        bottom: 0;
    }

    .hero-content {
        max-width: 90%;
    }

    .stat-chip {
        min-width: 160px;
        text-align: center;
    }
}

/* small desktops */
@media (min-width: 993px) and (max-width:1200px) {

    .exp-card {
        position: relative;
        left: 50%;
        transform: translate(95%, -170%);
        bottom: 0;
    }

    .stat-chip {
        min-width: 170px;
    }
}
