/* ================= Root Colors ================= */
:root {
    --purple: #2F192E;
    --purple-light: #30192d;
    --dark-blue: #012677;
    --blue: #5c65c0;
    --skyblue: hsl(197, 100%, 49%);
    --light-blue: #005bc5;
    --dark-pink: #f64c57;
    --dark-magenta: #e21b5a;
    --light-green: #61e2c2;
    --light-purple: #d9abff;
    --primary-bg: #E6CEAC;
    --primary-light: #f8d9ae;
    --primary-dark: #5c65c0;
    --text-dark: #222;
    --text-light: #fff;
}

/* ================= Reset ================= */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    text-decoration: none;
    font-family: poppins, sans-serif;
}

/* ================= Body ================= */
body {
    overflow-x: hidden;
    background-color: var(--primary-bg);
}

/* ================= Header / Navigation ================= */
header {
    padding: 10px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #f4debf; 
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.highlight-name {
    color: #5c65c0;
}


.logo {
    display: flex;
    align-items: center;
}

.logo-circle {
    height: 45px;
    width: 45px;
    background-color: #6c74d3;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    text-align: center;
}

.logo-text {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-dark);
}

nav .navlinks {
    list-style-type: none;
    display: flex;
    gap: 2rem;
}

nav .navlinks li a {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    padding: 5px 10px;
}

/* Navigation active link highlight */
nav .navlinks li a.active {
    color: var(--text-dark);
    font-weight: 600;
    background-color: #f4debf; 
    border-radius: 5px;
    transition: 0.3s;
}

nav .navlinks li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: var(--blue);
    transition: width .3s;
}

nav .navlinks li a:hover::after {
    width: 100%;
}

/* ================= Sections – Global Padding ================= */
.wrapper, .skills-container, .portfolio-container, .hero-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 40px 40px 40px;
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    .wrapper, .skills-container, .portfolio-container, .hero-header {
        padding: 120px 20px 40px 20px;
    }
}

/* ================= About Section ================= */
.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.about-content {
    display: flex;
    max-width: 1000px;
    width: 100%;
    align-items: center;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;    /* center the image */
}

.about-image img {
    width: 40%;             /* ratio width on desktop */
    aspect-ratio: 1 / 1;    /* keep it square */
    border-radius: 50%;     /* circle */
    object-fit: cover;      /* fill nicely */
    object-position: top;   /* keep top, crop bottom */
}

/* Mobile version */
@media screen and (max-width: 768px) {
    .about-image img {
        width: 50%;      /* 1/2 width on mobile */
    }
}


.about-text {
    flex: 1;
    padding-left: 40px; /* Creates spacing from the image */
}

.about-text h2 {
    margin-bottom: 20px;
}

.about-text p {
    line-height: 1.6;
    font-size: 1rem;
}

/* ================= Hero Section ================= */
.hero-header {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 40px 40px 40px;
}

.hero-text h5 {
    color: var(--text-dark);
    font-size: 25px;
}

.hero-text h5 span {
    color: var(--blue);
    font-size: 2rem;
}

.hero-text h1 {
    color: var(--blue);
    font-size: 2.5rem;
    margin: 10px 0;
}

.hero-text p {
    color: var(--text-dark);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.btn-group {
    margin: 30px 0;
}

.btn {
    color: var(--text-dark);
    background-color: var(--primary-bg);
    padding: 12px 25px;
    margin: 5px 7px 5px 0;
    border-radius: 30px;
    border: 2px solid var(--text-dark);
    box-shadow: 0 10px 10px -8px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.btn:hover {
    background-color: var(--blue);
    color: #fff;
}

/* Social Icons */
.social i {
    color: var(--blue);
    font-size: 25px;
    margin-right: 10px;
    transition: 0.5s;
}

.social i:hover {
    transform: rotate(360deg);
}

/* ================= Skills ================= */
.skills-container {
    max-width: 1000px;
    margin: 60px auto;
    padding: 120px 40px 40px 40px;
}

.skills-category {
    margin-bottom: 2rem;
}

.skills-category h3 {
    color: var(--blue);
    margin-bottom: 1rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    line-height: 2rem;  /* Increase line spacing to avoid overlap */
}

.skill-tag {
    background: var(--primary-light);
    border: 1px solid var(--blue);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--blue);
    transition: 0.2s;
    display: inline-block;
}

.skill-tag:hover {
    background: var(--blue);
    color: #fff;
}

/* ================= Experience / Timeline ================= */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 40px;
    box-sizing: border-box;
}
.timeline-dot {
    width: 60px;               /* smaller size for timeline */
    height: 60px;
    border-radius: 50%;        /* make it circular */
    overflow: hidden;          /* crop image to circle */
    border: 2px solid #ccc;    /* optional border */
    background-color: #fff;    /* fallback background */
    position: absolute;
    left: -30px;               /* center over timeline line */
    top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.timeline-item.right .timeline-dot {
    left: auto;       /* unset left */
    right: -25px;     /* align to the right of timeline */
}


.timeline-dot img {
    width: 100%;               /* fill circle */
    height: 100%;
    object-fit: cover;         /* scale image nicely */
}


.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--blue);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 20px 30px;
    position: relative;
    width: 50%;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--primary-light);
    margin-bottom: 30px;  /* Add spacing between timeline items */
}

.timeline-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.timeline-item.left { left: 0; }
.timeline-item.right { left: 50%; }

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    top: 20px;
    z-index: 1;
    background-color: var(--blue);
}

.timeline-item.left::before { right: -10px; }
.timeline-item.right::before { left: -10px; }

.timeline-item h3 { color: var(--blue); margin-bottom: 5px; }
.timeline-item .job-duration { font-size: 0.9rem; color: #555; margin-bottom: 10px; display: block; }
.timeline-item p, .timeline-item ul li { color: var(--text-dark); line-height: 1.8; } /* Increased line-height for clarity */

.timeline-item ul li {
    margin-bottom: 10px; /* Spacing between bullet points */
}

.timeline-item .skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    line-height: 2rem; /* Avoid tag overlap */
    margin-bottom: 15px;
}

.timeline-item .skills-tags .skill-tag {
    display: inline-block;
    padding: 6px 12px; 
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.4;
}

/* Responsive */
@media screen and (max-width: 768px){
    .timeline::after { left: 20px; }
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 25px;
    }
    .timeline-item.right { left: 0; }
    .timeline-item.left::before, .timeline-item.right::before { left: 0; right: auto; }
}

/* ================= Portfolio ================= */
.portfolio-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 120px 40px 40px 40px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
    gap: 20px;
}

.project-box {
    background: var(--primary-light);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.project-tags {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    line-height: 2rem; /* Avoid overlap */
}

.project-tag {
    background: var(--light-purple);
    color: var(--text-dark);
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 500;
    display: inline-block;
}

/* ================= Certifications ================= */
.cert-group {
    margin-bottom: 2.5rem;
}

.cert-group h3 {
    color: var(--blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.cert-group ul {
    list-style-type: none;
    padding-left: 0;
}

.cert-group ul li {
    margin-bottom: 0.8rem; /* space between items */
}

.cert-group ul li a {
    color: var(--text-dark);
    font-weight: 500;
    background: var(--primary-light);
    padding: 6px 12px;
    border-radius: 12px;
    display: inline-block;
    transition: 0.3s;
    text-decoration: none;
}

.cert-group ul li a:hover {
    background-color: var(--blue);
    color: #fff;
    transform: translateY(-2px);
}


/* ================= Contact ================= */
.wrapper a { color: var(--blue); }
.wrapper a:hover { color: var(--blue); }
