
/* ============================================
   MAIN SECTIONS
   ============================================ */

/* ===== SECTIONS ===== */
.section {
    padding: 5rem clamp(10rem, 10rem, 10rem);
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}



/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
}

.about-text {
    color: var(--text-dark);
}

.about-text .lead {
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    font-weight: var(--font-regular);
    font-size: 1.1rem;
}

.about-text h3 {
    color: var(--primary-color);
    margin: 3rem 0 1.5rem;
    font-size: 1.6rem;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.expertise-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-style: italic;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.expertise-item {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    transition: border-color 0.2s ease;
    border: 1px solid var(--border-color);
}

.expertise-item:hover {
    border-color: var(--primary-color);
}

.expertise-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.expertise-item h4 {
    color: var(--title-color);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.expertise-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-dark);
}


.about-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-self: flex-start;
    z-index: 10;
    transition: all 0.3s ease;
}

.about-profile-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: border-color 0.2s ease;
    border: 1px solid var(--border-color);
}

.about-profile-card:hover {
    border-color: var(--primary-color);
}



.profile-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: border-color 0.2s ease;
    border: 1px solid var(--border-color);
}

.profile-card:hover {
    border-color: var(--primary-color);
}

.profile-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
}

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

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    padding: 1.5rem 1rem;
    background: transparent;
    color: var(--text-dark);
    border-top: 1px solid var(--border-color);
}

.stat-item {
    padding: 0.5rem;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.75rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== SKILLS SECTION ===== */
.skills-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.skills-category {
    margin-bottom: var(--mb-3);
}

.skills-category h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: var(--mb-1-5);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.skills-category h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--mb-2);
    margin-bottom: var(--mb-2);
}

.skill-item {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: var(--mb-2);
    transition: border-color 0.2s ease;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.skill-item:hover {
    border-color: var(--primary-color);
}

.skill-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--mb-1);
}

.skill-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--mb-1);
    font-size: 1.5rem;
    flex-shrink: 0;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.skill-item h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: var(--font-semi-bold);
}

.skill-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: var(--mb-1-5);
}

.skill-level-container {
    position: relative;
    margin: var(--mb-1-5) 0 var(--mb-0-5);
}

.skill-level {
    height: 6px;
    background: #f1f3f5;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.skill-percentage {
    position: absolute;
    top: -1.5rem;
    right: 0;
    font-size: 0.9rem;
    font-weight: var(--font-semi-bold);
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
    text-align: right;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
    transition: width 1s ease-in-out;
}

/* ===== EXPERIENCE SECTION ===== */
.experience-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(2rem, 8vw, 6rem);
    box-sizing: border-box;
}

.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.experience-item {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 0;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
}

.experience-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 0 8px rgba(0, 136, 100, 0.3);
}

.experience-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.experience-content {
    padding: 2.5rem;
    position: relative;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.experience-title-group {
    flex: 1;
}

.experience-header h3 {
    color: var(--title-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    font-weight: 600;
}

.experience-header .company {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: var(--font-semi-bold);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.experience-header .company::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.experience-header .duration {
    background: white;
    color: var(--primary-color);
    font-weight: var(--font-semi-bold);
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgb(185, 255, 175);
    white-space: nowrap;
}

.experience-header .duration i {
    font-size: 0.9rem;
}

.experience-details {
    position: relative;
}

.experience-details ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.experience-details li {
    background: rgba(0, 136, 100, 0.02);
    border: 1px solid rgba(0, 136, 100, 0.1);
    border-radius: var(--border-radius);
    padding: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.experience-details li:hover {
    border-color: var(--primary-color);
    background: rgba(0, 136, 100, 0.05);
    transform: translateY(-1px);
}

.experience-details li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.experience-details li:hover::before {
    opacity: 1;
}

/* ===== NEW EDUCATION TIMELINE ===== */
.education-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: 1.5rem 0;
}

/* Central vertical line */
.education-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    transform: translateX(-50%);
    z-index: 1;
    box-shadow: 0 0 8px rgba(0, 136, 100, 0.3);
}

/* Timeline item container */
.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    width: 100%;
    display: flex;
    align-items: center;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Left side positioning */
.timeline-left {
    justify-content: flex-start;
}

.timeline-left .timeline-content {
    text-align: left;

}

/* Right side positioning */
.timeline-right {
    justify-content: flex-end;
}

.timeline-right .timeline-content {
    text-align: right;
}

/* Timeline dot */
.timeline-dot {
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--primary-color), 0 2px 8px rgba(0, 136, 100, 0.4);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    transition: all 0.3s ease;
}

.timeline-dot:hover {
    transform: translateX(-50%) scale(1.1);
}

/* Content box */
.timeline-content {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    max-width: 220px;
    min-height: 120px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.timeline-content:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Content text styles */
.timeline-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--title-color);
    line-height: 1.3;
}

.timeline-subtitle {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    line-height: 1.3;
    font-weight: 400;
}

.timeline-date {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.5rem;
    background: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 12px;
    width: fit-content;
}

.timeline-right .timeline-date {
    margin-left: 0;
}

.timeline-left .timeline-date {
    margin-left: auto;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
    background: transparent;
    border-radius: var(--border-radius-lg);
    padding: 5rem var(--container-padding);
    margin: var(--mb-3) 0;
    position: relative;
    overflow: hidden;
}

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0 auto var(--mb-2);
    justify-content: center;
    padding: 0.5rem 1.25rem;
    max-width: 100%;
    position: relative;
}

.filter-btn {
    padding: 0.7rem 1.4rem;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-light);
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.filter-btn:hover {
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.filter-btn.active {
    color: var(--primary-color);
    background: transparent;
    border-color: var(--primary-color);
    font-weight: var(--font-semi-bold);
}

.filter-btn i {
    font-size: 0.9rem;
    opacity: 0.8;
}

.portfolio-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--mb-2);
}

.filter-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: var(--mb-1-5) 0;
    color: var(--text-light);
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    height: 0;
    overflow: hidden;
}

.filter-loading.visible {
    opacity: 1;
    height: auto;
}

.loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(75, 85, 99, 0.2);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin: 2.5rem 0;
    padding: 0 var(--mb-2);
    align-items: stretch;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.contact-info {
    padding: 2.5rem;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    height: fit-content;
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
    box-sizing: border-box;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: var(--mb-1-5);
    font-size: 1.5rem;
    font-weight: var(--font-bold);
}

.contact-item {
    margin-bottom: var(--mb-1-5);
    display: flex;
    align-items: center;
    gap: var(--mb-1);
    padding: var(--mb-1);
    border-radius: var(--border-radius);
    transition: border-color 0.2s ease;
    border: 1px solid var(--border-color);
}

.contact-item:hover {
    border-color: var(--primary-color);
}

.contact-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

/* ===== NOTABLE PROJECTS SECTION ===== */
#notable-projects {
    background-color: #f9fafb;
    padding: var(--mb-4) 0;
    position: relative;
    overflow: hidden;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--mb-3);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--mb-2);
}

.modern-project {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: border-color 0.2s ease;
    border: 1px solid var(--border-color);
}

.modern-project:hover {
    border-color: var(--primary-color);
}

.project-cover {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.project-cover .cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-title {
    font-size: 2rem;
    color: var(--title-color);
    margin: 0 0 0.5rem 0;
    font-weight: var(--font-bold);
    line-height: 1.2;
}

.project-features {
    margin: var(--mb-2) 0;
}

.project-features h4 {
    font-size: 1.25rem;
    color: var(--title-color);
    margin-bottom: var(--mb-1);
    font-weight: var(--font-semi-bold);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.features-list li i {
    position: absolute;
    left: 0;
    top: 0.25rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.project-description-image {
    margin: 2.5rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s ease;
}

.project-description-image:hover {
    border-color: var(--primary-color);
}

.project-description-image .description-image {
    width: 100%;
    height: auto;
    display: block;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: var(--mb-2);
    padding-top: var(--mb-1-5);
    border-top: 1px solid #f0f0f0;
}

.project-tags .tag {
    background: #f5f7fa;
    color: var(--text-dark);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: var(--font-medium);
    transition: all 0.2s ease;
}

.project-tags .tag:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-1px);
}

