/* about.css - Enhanced styles for the About page */

/* About Section - Enhanced */
.about-section {
    padding: 7rem 0 3rem;
    overflow: hidden;
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(113, 117, 120, 0.03);
    z-index: -1;
}

.about-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    overflow: hidden;
}

.about-text {
    flex: 2;
    background-color: #717578;
    padding: 3rem;
    color: white;
    position: relative;
    border-radius: 0 0 0 20px;
    transition: all 0.3s ease;
}

.about-text:hover {
    background-color: #65696c;
}

.about-title {
    font-family: "Jomhuria", serif;
    font-size: 5.5rem;
    text-align: right;
    letter-spacing: 7px;
    margin-bottom: 2.5rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 0;
    width: 100px;
    height: 3px;
    background-color: #F8F4E8;
    border-radius: 3px;
}

.about-description {
    font-family: "Jomolhari", serif;
    font-size: 1.1rem;
    line-height: 1.9;
    text-align: justify;
    position: relative;
}

.about-description p {
    position: relative;
    z-index: 1;
}

.about-description::before {
    content: '"';
    position: absolute;
    top: -50px;
    left: -20px;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.05);
    font-family: serif;
    z-index: 0;
}

.about-image {
    flex: 1;
    background-color: #F8F4E8;
    padding: 3rem 1.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 20px 0;
    transition: all 0.3s ease;
}

.about-image:hover {
    background-color: #f0ece0;
}

.me-title {
    font-family: "Jomhuria", serif;
    font-size: 5.5rem;
    letter-spacing: 10px;
    color: #717578;
    margin-bottom: 2.5rem;
    position: relative;
}

.me-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #717578;
    border-radius: 3px;
}

.profile-image {
    max-width: 100%;
    border-radius: 50px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    position: relative;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 70%;
    height: 70%;
    border: 3px solid rgba(113, 117, 120, 0.1);
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-image:hover .profile-image::before {
    opacity: 1;
}

.profile-image:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Education Section - Enhanced */
.education-section {
    background-color: #F8F4E8;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.education-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    z-index: 0;
}

.education-container {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.education-card {
    flex: 1;
    padding: 3rem;
    text-align: center;
    position: relative;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.education-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.education-card:first-child::after {
    content: '';
    position: absolute;
    right: -1.5rem;
    top: 10%;
    height: 80%;
    width: 3px;
    background-color: #717578;
    border-radius: 3px;
}

.school-name, .school-major {
    font-family: "Jomolhari", serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #717578;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.education-card:hover .school-name,
.education-card:hover .school-major {
    color: #5d6063;
}

.school-year {
    width: 220px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #717578;
    color: white;
    border-radius: 45px;
    margin: 2rem auto;
    font-size: 1.3rem;
    font-weight: 500;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.school-year:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background-color: #5d6063;
}

/* Tools & Skills Section - Enhanced */
.tools-section {
    background-color: #717578;
    padding: 5rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.tools-section::before {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.03);
    z-index: 0;
}

.tools-section .section-title {
    color: white;
    margin-bottom: 3.5rem;
}

.tools-section .section-title::after {
    background-color: #F8F4E8;
}

.tools-container {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.tools-card, .skills-card {
    flex: 1;
    padding: 3rem;
    text-align: center;
    background-color: rgba(155, 153, 153, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.tools-card:hover, .skills-card:hover {
    transform: translateY(-10px);
    background-color: rgba(155, 153, 153, 0.08);
}

.tools-card {
    position: relative;
}

.tools-card::after {
    content: '';
    position: absolute;
    right: -1.5rem;
    top: 10%;
    height: 80%;
    width: 3px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.tools-title, .skills-title {
    font-family: "Jomolhari", serif;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

.tools-title::after, .skills-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #F8F4E8;
    border-radius: 3px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.tool-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: all 0.3s ease;
}

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

.tool-item img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.5s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tool-item:hover img {
    transform: scale(1.08);
}

.tool-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 10px;
}

.tool-item:hover::before {
    opacity: 1;
}

.skills-list {
    margin-top: 3.5rem;
}

.skill-item {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.7;
    position: relative;
    padding-left: 2rem;
    text-align: left;
}

.skill-item::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #F8F4E8;
    font-size: 1.5rem;
}

/* Timeline Section - New */
.timeline-section {
    padding: 6rem 0;
    background-color: #f9f9f9;
    position: relative;
}

.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    z-index: 0;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
    z-index: 1;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: #717578;
    border-radius: 4px;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

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

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background-color: white;
    transform: rotate(45deg);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -10px;
}

.timeline-date {
    width: 120px;
    height: 40px;
    background-color: #717578;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -20px;
    left: 20px;
    border-radius: 20px;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-marker {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: #F8F4E8;
    border: 4px solid #717578;
    border-radius: 50%;
    z-index: 1;
}

.timeline-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.timeline-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Media Queries */
@media (max-width: 992px) {
    .about-title, .me-title {
        font-size: 4.5rem;
    }
    
    .about-description {
        font-size: 1rem;
    }
    
    .school-name, .school-major {
        font-size: 1.4rem;
    }
    
    .tools-title, .skills-title {
        font-size: 2rem;
    }
    
    .timeline-container {
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
    }
    
    .about-text, .about-image {
        border-radius: 0;
    }
    
    .about-text {
        border-radius: 20px 20px 0 0;
    }
    
    .about-image {
        border-radius: 0 0 20px 20px;
    }
    
    .about-title, .me-title {
        text-align: center;
    }
    
    .about-title::after, .me-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .education-container {
        flex-direction: column;
    }
    
    .education-card:first-child::after {
        display: none;
    }
    
    .education-card:first-child {
        border-bottom: 1px solid #717578;
        padding-bottom: 3rem;
    }
    
    .tools-container {
        flex-direction: column;
    }
    
    .tools-card {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 3rem;
    }
    
    .tools-card::after {
        display: none;
    }
    
    .timeline-line {
        left: 30px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
    }
    
    .timeline-content::before,
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -10px;
        right: auto;
    }
    
    .timeline-marker {
        left: 30px;
    }
}

@media (max-width: 576px) {
    .about-title, .me-title {
        font-size: 4rem;
        letter-spacing: 5px;
    }
    
    .about-text, .about-image {
        padding: 2rem;
    }
    
    .education-card {
        padding: 2rem;
    }
    
    .school-year {
        width: 200px;
        height: 80px;
        font-size: 1.1rem;
    }
    
    .tools-card, .skills-card {
        padding: 2rem;
    }
    
    .tools-grid {
        gap: 1rem;
    }
    
    .skill-item {
        font-size: 1.1rem;
    }
}