:root {
    --primary-color: #4f46e5;
    /* Slightly deeper indigo for better contrast on light */
    --secondary-color: #ec4899;
    /* Pink */
    --bg-color: #f8fafc;
    /* Very light slate */
    --card-bg: #ffffff;
    /* White cards */
    --text-color: #1e293b;
    /* Slate 800 */
    --text-muted: #64748b;
    /* Slate 500 */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-color);
    font-size: 1.15rem;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Constants */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 2rem;
}

.section-header .line {
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 0.5rem auto;
    border-radius: 2px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 1rem;
}

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

/* Navbar */
.header {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(rgba(248, 250, 252, 0.9), rgba(248, 250, 252, 0.9)), url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    position: relative;
    color: var(--text-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    z-index: 1;
}

.greeting {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero h2 {
    font-size: 2rem;
    color: var(--text-muted);
    font-weight: 400;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin: 1.5rem 0 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.about-text {
    flex: 3;
}

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

.about-stats {
    flex: 1;
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
}

.stat-item {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    min-width: 150px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Experience Section (Timeline) */
/* Experience Section (Timeline) */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 50px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 60px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 60px;
}

.timeline-dot {
    width: 24px;
    height: 24px;
    background-color: #fff;
    border: 4px solid var(--primary-color);
    position: absolute;
    border-radius: 50%;
    top: 20px;
    right: -12px;
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

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

.timeline-item:nth-child(even) .timeline-dot {
    left: -12px;
}

.timeline-date {
    font-size: 0.95rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.timeline-content {
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: left;
}

/* Arrows */
.timeline-content::after {
    content: " ";
    position: absolute;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    right: -10px;
    border-left: 10px solid var(--card-bg);
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -10px;
    border-right: 10px solid var(--card-bg);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.timeline-content.collapsible {
    cursor: pointer;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.2rem;
}

.timeline-header h3 {
    margin-bottom: 0;
}

.toggle-icon {
    font-size: 1.1rem;
    color: var(--primary-color);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.experience-details {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(-10px);
}

.timeline-item.expanded .experience-details {
    max-height: 1000px;
    opacity: 1;
    transform: translateY(0);
    padding-top: 1rem;
}

.timeline-item.expanded .toggle-icon {
    transform: rotate(180deg);
}

.timeline-item.expanded .timeline-content {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    color: var(--text-color);
    margin-bottom: 0;
}

.timeline-content h4 {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-content ul {
    list-style: disc;
    margin-left: 1.5rem;
}

.timeline-content li {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

/* Clari Group Styling */
.clari-group .timeline-dot {
    width: 48px;
    height: 48px;
    background-color: #fff;
    border: 3px solid var(--primary-color);
    top: 8px;
    right: -24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('assets/clari_logo.jpeg');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.timeline-item:nth-child(even).clari-group .timeline-dot {
    left: -24px;
}

/* Hover effect for Clari dots */
.clari-group:hover .timeline-dot {
    background-color: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

/* ServiceNow Group Styling */
.servicenow-group .timeline-dot {
    width: 48px;
    height: 48px;
    background-color: #fff;
    border: 3px solid var(--primary-color);
    top: 8px;
    right: -24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('assets/servicenow_logo.jpeg');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.timeline-item:nth-child(even).servicenow-group .timeline-dot {
    left: -24px;
}

/* Mobile adjustment for Clari dots */
@media (max-width: 768px) {
    .clari-group .timeline-dot {
        left: 10px;
        /* Center of the 4px line is at 31px (left: 31px line). Width 48. Center 24. 31+2 = 33 center. Left = 33-24 = 9px approx */
        right: auto;
    }

    .timeline-item:nth-child(even).clari-group .timeline-dot {
        left: 10px;
    }
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.skill-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-tags span {
    background-color: #f1f5f9;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.education-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-left-width: 4px;
}

.education-card h4 {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.edu-date {
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer */
footer {
    background-color: #f1f5f9;
    padding: 2rem 0 1rem;
    text-align: center;
    color: var(--text-color);
}

.social-links {
    margin: 1rem 0;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 0 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
}

.location {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.copyright {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-links {
        position: fixed;
        background: var(--bg-color);
        height: 100vh;
        width: 100%;
        top: 0;
        left: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        clip-path: circle(100px at 90% -10%);
        transition: all 1s ease-out;
        pointer-events: none;
    }

    .nav-links.open {
        clip-path: circle(1000px at 90% -10%);
        pointer-events: all;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        text-align: left;
    }

    .timeline-dot {
        left: 22px;
        right: auto;
    }

    .timeline-item:nth-child(even) .timeline-dot {
        left: 22px;
    }

    /* Fix arrows for mobile */
    .timeline-item:nth-child(odd) .timeline-content::after {
        right: auto;
        left: -10px;
        border-left: 10px solid transparent;
        border-right: 10px solid var(--card-bg);
    }
}