/* Enhanced Education Section Styles - 2025 Modern Design */

/* Main Container Layout */
.education-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
}

/* Timeline Styling */
.education-timeline {
    position: relative;
}

.education-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

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

/* Timeline Line */
.education-timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    height: calc(100% - 50px);
    background: linear-gradient(to bottom, var(--secondary-color), var(--accent-color));
    left: 90px;
    top: 30px;
    border-radius: 4px;
    opacity: 0.6;
}

/* Education Year Column */
.education-year {
    width: 120px;
    position: relative;
    flex-shrink: 0;
    z-index: 10;
}

.year-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--secondary-color);
    background-color: white;
    padding: 8px 12px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: inline-block;
    margin-bottom: 10px;
    position: relative;
    transition: all 0.3s ease;
}

body.dark-mode .year-text {
    background-color: #1d2d3e;
    color: #58a6ff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.education-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 4px solid white;
    position: absolute;
    left: 80px;
    box-shadow: 0 0 0 4px rgba(45, 164, 78, 0.3);
    z-index: 5;
}

body.dark-mode .education-dot {
    border-color: #0d1117;
    box-shadow: 0 0 0 4px rgba(45, 164, 78, 0.4);
}

.education-dot::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        transform: translate(-50%, -50%) scale(0.7);
        opacity: 1;
    }
    70% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.7);
        opacity: 1;
    }
}

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

/* Education Content Area */
.education-content {
    flex-grow: 1;
    padding-left: 40px;
}

/* Education Card */
.education-card {
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

body.dark-mode .education-card {
    background-color: #161b22;
    border-color: #30363d;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.education-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.education-card::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 40%;
    background: linear-gradient(to bottom, var(--secondary-color), var(--accent-color));
    left: 0;
    top: 30%;
    border-radius: 0 3px 3px 0;
    opacity: 0.8;
}

/* Education Card Header */
.education-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 12px;
}

.education-header h3 {
    font-size: 1.4rem;
    color: var(--heading-color);
    margin: 0;
    line-height: 1.3;
    position: relative;
    padding-bottom: 8px;
}

.education-header h3::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 0;
    border-radius: 2px;
}

/* Education Status */
.education-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.education-status.current {
    background-color: #e6f7ee;
    color: #1b7a44;
}

.education-status.completed {
    background-color: #e7f5ff;
    color: #1971c2;
}

/* University Logo Styling */
.university-logo {
    display: inline-flex;
    align-items: center;
    margin-right: 12px;
}

.university-logo img {
    width: 100px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 5px solid var(--border-color);
    background-color: white;
    padding: 5px;
    transition: all 0.3s ease;
}

body.dark-mode .university-logo img {
    border-color: #30363d;
    background-color: #21262d;
}

.university-logo img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.dark-mode .university-logo img:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* School/University */
.education-school {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.education-school i {
    color: var(--secondary-color);
    font-size: 1.15rem;
}

/* Education Details */
.education-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.education-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    background: var(--hover-bg);
    padding: 8px 15px;
    border-radius: 8px;
}

body.dark-mode .education-detail {
    background-color: #21262d;
    color: #c9d1d9;
}

.education-detail i {
    color: var(--accent-color);
}

.education-detail .highlight {
    font-weight: 700;
    color: var(--secondary-color);
}

/* Course/Subject Lists */
.education-courses h4,
.education-achievements h4 {
    font-size: 1.1rem;
    color: var(--heading-color);
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.education-courses h4::before,
.education-achievements h4::before {
    content: '';
    width: 4px;
    height: 18px;
    background-color: var(--accent-color);
    border-radius: 2px;
    display: inline-block;
}

.courses-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.course-tag {
    display: inline-flex;
    padding: 6px 14px;
    background-color: var(--hover-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

body.dark-mode .course-tag {
    background-color: #21262d;
    border-color: #30363d;
    color: #c9d1d9;
}

.course-tag:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}

/* Achievements List */
.achievements-list {
    list-style-type: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.achievements-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 15px;
    background-color: var(--hover-bg);
    border-radius: 8px;
    transition: all 0.3s ease;
}

body.dark-mode .achievements-list li {
    background-color: #21262d;
}

.achievements-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.achievements-list li i {
    color: #f59f00;
    margin-top: 3px;
}

/* Education Stats Sidebar */
.education-sidebar {
    margin-top: 30px;
}

.education-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

body.dark-mode .stat-card {
    background-color: #161b22;
    border-color: #30363d;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-bg);
    font-size: 1.5rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

body.dark-mode .stat-icon {
    background-color: #21262d;
    color: #58a6ff;
}

.stat-info h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: var(--heading-color);
}

.stat-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Hover Effects & Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.education-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.education-item:nth-child(1) .education-card {
    animation-delay: 0.1s;
}

.education-item:nth-child(2) .education-card {
    animation-delay: 0.3s;
}

.education-item:nth-child(3) .education-card {
    animation-delay: 0.5s;
}

.stat-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.stat-card:nth-child(1) {
    animation-delay: 0.7s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.9s;
}

.stat-card:nth-child(3) {
    animation-delay: 1.1s;
}

/* Responsive Design for Education Section */
@media (max-width: 992px) {
    .education-container {
        grid-template-columns: 1fr;
    }
    
    .education-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .education-timeline::before {
        left: 22px;
    }
    
    .education-year {
        width: 55px;
    }
    
    .year-text {
        font-size: 0.9rem;
        padding: 5px 8px;
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        text-align: center;
        margin-left: 0;
    }
    
    .education-dot {
        left: 20px;
        width: 16px;
        height: 16px;
        border-width: 3px;
    }
    
    .education-content {
        padding-left: 20px;
    }
    
    .education-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .education-details {
        flex-direction: column;
        gap: 10px;
    }
    
    .education-item:hover .year-text {
        transform: rotate(180deg);
    }
}

@media (max-width: 576px) {
    .courses-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .education-sidebar {
        grid-template-columns: 1fr;
    }
    
    .education-school {
        font-size: 1rem;
    }
    
    .education-header h3 {
        font-size: 1.2rem;
    }
    
    .education-card {
        padding: 18px;
    }
}

/* Enhanced Join Me section styles */
.section-header-special {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.connection-overview {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.availability-indicator {
    text-align: center;
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 1rem 2rem;
    box-shadow: var(--card-shadow);
    max-width: 500px;
}

.availability-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background-color: #4CAF50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.availability-text {
    font-weight: 600;
    color: #4CAF50;
}

.availability-details {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-header i {
    font-size: 2rem;
    color: var(--accent-color);
}

.card-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.contact-pitch {
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.6;
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
    font-style: italic;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.best-time, .response-time, .timezone {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.preferred-projects {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.project-tag {
    background-color: var(--tag-bg);
    color: var(--tag-text);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.project-tag:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.contact-social {
    margin-top: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 1.2rem;
    color: var(--text-primary);
    box-shadow: var(--button-shadow);
}

.social-link:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

/* Form enhancements */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    transition: all 0.3s;
}

.contact-form select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.2);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-checkbox label {
    font-size: 0.9rem;
    margin: 0;
}

/* Collaboration cards */
.collaboration-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.collab-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--card-shadow);
}

.collab-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.collab-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent-light);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.collab-card h3 {
    margin-bottom: 1rem;
}

.collab-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Testimonials */
.testimonials-preview {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.testimonial-quote {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    position: relative;
    max-width: 800px;
    box-shadow: var(--card-shadow);
}

.testimonial-quote i {
    font-size: 1.5rem;
    color: var(--accent-color);
    opacity: 0.3;
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.testimonial-quote blockquote {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    font-style: italic;
    padding-left: 2rem;
}

.testimonial-quote cite {
    display: block;
    text-align: right;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Final CTA */
.cta-final {
    margin-top: 3rem;
    text-align: center;
}

.cta-final .btn {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

/* Responsive adjustments for Join Me section */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .collaboration-cards {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info, .contact-form-container {
        width: 100%;
        margin-bottom: 2rem;
    }
}

/* Dark mode specific adjustments */
.dark-mode .availability-text {
    color: #5CFF5C;
}

.dark-mode .pulse-dot {
    background-color: #5CFF5C;
}

@keyframes pulse-dark {
    0% {
        box-shadow: 0 0 0 0 rgba(92, 255, 92, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(92, 255, 92, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(92, 255, 92, 0);
    }
}