:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --text-color: #333;
    --light-text: #666;
    --background: #fff;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --accent-color: #1abc9c;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --primary-color-rgb: 52, 152, 219; /* RGB value for primary color */
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    display: none;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section with Background Image */
#hero {
    padding: 260px 0 160px; /* Increased from 180px 0 100px to 220px 0 160px */
    background-color: var(--light-bg);
    position: relative;
    background-image: url('../assets/header-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

/* Add overlay to make text readable */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

#hero .container {
    position: relative;
    z-index: 2;
}

/* Update text colors for better contrast */
.hero-text h1 {
    color: white;
}

.hero-text h2 {
    color: rgba(255, 255, 255, 0.9);
}

.hero-text p {
    color: rgba(255, 255, 255, 0.8);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    cursor: pointer;
}

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

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

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

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

.small-btn {
    padding: 8px 16px;
    font-size: 14px;
}

/* Resume button styling */
.resume-btn {
    background-color: #27ae60; /* A different color to distinguish it */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.resume-btn:hover {
    background-color: #219653; /* Darker green on hover */
    color: white;
    transform: translateY(-2px);
}

.resume-btn i {
    font-size: 14px;
}

.profile-img-container {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 5px solid white;
}

#profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Styling */
section {
    padding: 100px 0; /* Reduced from 100px to 70px */
}

.section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 60px; /* Reduced from 60px to 40px */
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background-color: var(--primary-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.8;
}

.personal-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item i {
    color: var(--primary-color);
    font-size: 18px;
}

/* Timeline for Experience and Education */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

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

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-date {
    position: absolute;
    width: calc(50% - 40px);
    text-align: right;
    padding-right: 30px;
    left: 0;
    top: 0;
    color: var(--light-text);
    font-weight: 500;
}

.timeline-content {
    width: calc(50% - 40px);
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    position: relative;
    box-shadow: var(--card-shadow);
    right: calc(-50% - 40px);
}

.timeline-content h3 {
    margin-bottom: 10px;
    font-size: 22px;
    color: var(--primary-color);
}

.timeline-content h4 {
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--light-text);
}

.timeline-content ul {
    margin-left: 20px;
    margin-top: 15px;
}

.timeline-content ul li {
    margin-bottom: 8px;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    background-color: white;
    padding: 20px;
    height: 100%;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.skill-category h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 20px;
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.skill-pills span {
    background-color: rgba(var(--primary-color-rgb), 0.1); /* Match project tag background */
    color: var(--primary-color); /* Match project tag text color */
    padding: 6px 14px;
    border-radius: 8px; /* Match project link button corner rounding */
    font-size: 14px;
    transition: var(--transition);
}

/* Remove hover effect for skill pills */
.skill-pills span:hover {
    color: var(--primary-color); /* Keep original color on hover */
    background-color: rgba(var(--primary-color-rgb), 0.1); /* Keep original background on hover */
}

.skill-details p {
    margin-bottom: 10px;
    color: var(--text-color);
}

/* Responsive design for skills section */
@media (max-width: 1200px) {
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: 1fr;
    }
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 350px));
    gap: 30px;
    justify-content: center;
}

/* Project search bar */
.project-search-container {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.project-search-input {
    width: 100%;
    padding: 12px 20px;
    padding-right: 40px; /* Add space for clear button */
    border-radius: 30px;
    border: 1px solid var(--border-color);
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.project-search-input:focus {
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.search-clear-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
    display: none;
    z-index: 2;
    height: 28px;
    width: 28px;
    line-height: 28px;
    text-align: center;
    padding: 0;
    margin: 0;
    border-radius: 50%;
}

.search-clear-btn:hover {
    color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.05);
}

.search-info {
    margin-top: 10px;
    font-size: 14px;
    color: var(--light-text);
}

.project-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.project-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    min-height: 340px; /* Minimum height for cards */
}

.project-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
    height: 50px;
    color: var(--primary-color);
}

.project-meta {
    color: var(--light-text);
    font-size: 14px;
    margin-bottom: 5px;
}

.project-content p {
    margin-bottom: 20px;
    color: var(--text-color);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 10; /* Limit to approximately 5 lines */
    -webkit-box-orient: vertical;
    max-height: 200px; /* Fixed height for description */
}

/* Container for both links and tags */
.project-footer {
    margin-top: auto;
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Project tags - moved up in order */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 5px; /* Add space below tags */
}

/* Project links - moved below tags */
.project-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px; /* Add spacing between tags and links */
}

.project-links a.btn {
    background-color: var(--primary-color);
    color: white;
    padding: 6px 16px;
    font-size: 14px;
    border-radius: 8px; /* More square corners */
    text-align: center;
    transition: var(--transition);
    border: none;
}

.project-links a.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-tag {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    transition: var(--transition);
}

.project-tag:hover {
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--light-text);
    font-size: 18px;
}

/* Contact Section */
.contact-content {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    min-width: 200px;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-item p {
    color: var(--text-color);
}

/* Footer */
footer {
    background-color: var(--light-bg);
    padding: 30px 0;
    text-align: center;
    color: var(--light-text);
}

/* Media Queries */
@media screen and (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .profile-img-container {
        width: 250px;
        height: 250px;
        margin-bottom: 30px;
    }

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

    .timeline-dot {
        left: 40px;
    }

    .timeline-date {
        width: 100%;
        text-align: left;
        padding-left: 80px;
        padding-right: 0;
    }

    .timeline-content {
        width: calc(100% - 80px);
        right: auto;
        left: 80px;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        clip-path: circle(0% at top right);
        transition: var(--transition);
    }

    .nav-links.active {
        clip-path: circle(150% at top right);
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hamburger {
        display: block;
    }

    section {
        padding: 50px 0; /* Reduced from 70px to 50px for mobile */
    }

    .section-title {
        font-size: 28px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-text h2 {
        font-size: 20px;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (max-width: 576px) {
    .profile-img-container {
        width: 200px;
        height: 200px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

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

    .timeline-dot {
        left: 20px;
    }

    .timeline-date {
        padding-left: 60px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        left: 60px;
    }

    .personal-info {
        flex-direction: column;
        align-items: center;
    }
}

/* Side Navigation - Updated Style */
.side-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: block;
    background-color: transparent; /* Remove background */
    border-radius: 20px;
    padding: 10px;
    box-shadow: none; /* Remove box shadow */
}

.side-nav-inner {
    display: flex;
    align-items: center;
}

.side-nav-dots {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.side-nav-dots::before {
    content: '';
    width: 2px;
    background-color: rgba(var(--primary-color-rgb), 0.3);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

.side-nav-item {
    position: relative;
    margin: 15px 0;
    display: flex;
    align-items: center;
    cursor: pointer;
    z-index: 10; /* Ensure it's above other elements */
}

.side-nav-dot {
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    transition: var(--transition);
    cursor: pointer; /* Explicit cursor */
}

.side-nav-label {
    position: absolute;
    right: 25px;
    margin-right: 10px;
    padding: 5px 10px;
    background-color: transparent; /* Remove background */
    border-radius: 4px;
    font-size: 12px; /* Smaller font size */
    color: var(--light-text); /* Lighter color when inactive */
    white-space: nowrap;
    transition: var(--transition);
    opacity: 1; /* Always visible */
    pointer-events: auto; /* Ensure clickable */
    box-shadow: none; /* Remove box shadow */
    cursor: pointer; /* Explicit cursor */
    z-index: 11; /* Higher z-index than parent */
}

/* Core Values Section */
.core-values {
    margin: 30px 0; /* Reduced from 50px to 30px */
}

.values-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.values-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.value-card {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.value-icon {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.value-card h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-align: center;
}

.value-card p {
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.7;
    text-align: left;
}

/* Responsive adjustments for core values */
@media screen and (max-width: 768px) {
    .values-container {
        grid-template-columns: 1fr;
    }
    
    .value-card {
        padding: 25px;
    }
}
