/* Advanced Animations and Effects */

/* Typing Animation */
.typing-text {
    overflow: hidden;
    border-right: 3px solid var(--primary-color);
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary-color); }
}

/* About Page Styles */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.profile-card {
    position: relative;
    width: 300px;
    height: 300px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 65, 0.1);
    overflow: hidden;
}

.profile-img {
    font-size: 8rem;
    color: var(--primary-color);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    animation: scan 2s ease-in-out infinite;
}

@keyframes scan {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(300px); opacity: 0; }
}

.personal-info {
    margin-top: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-gray);
}

.info-item i {
    color: var(--primary-color);
    width: 20px;
}

/* Skills Section */
.skills {
    padding: 4rem 0;
    background: rgba(0, 0, 0, 0.3);
}

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

.skill-category {
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-item {
    margin-bottom: 1rem;
}

.skill-item span {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    width: 0;
    animation: fillSkill 2s ease-out forwards;
}

@keyframes fillSkill {
    to { width: var(--skill-width, 0%); }
}

/* Interests Section */
.interests {
    padding: 4rem 0;
}

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

.interest-card {
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.interest-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.interest-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.interest-card h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.interest-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Education Page Styles */
.education-card {
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.education-card.current {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.education-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.education-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

.education-info h2 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.education-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.education-meta {
    display: flex;
    gap: 2rem;
    color: var(--text-gray);
}

.current-badge {
    margin-left: auto;
    background: var(--gradient-primary);
    color: var(--bg-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.coursework {
    margin-top: 1.5rem;
}

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

.course-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 255, 65, 0.1);
    border-radius: 5px;
    color: var(--text-gray);
}

.course-item i {
    color: var(--primary-color);
}

/* Timeline Styles */
.academic-timeline {
    padding: 4rem 0;
    background: rgba(0, 0, 0, 0.3);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 2rem;
}

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

.timeline-marker {
    position: absolute;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-weight: bold;
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -20px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -20px;
}

.timeline-content {
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.timeline-item.future .timeline-content {
    opacity: 0.7;
    border-style: dashed;
}

/* Skills Development */
.skills-development {
    padding: 4rem 0;
}

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

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

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

.progress-percentage {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.circular-progress {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
}

.progress-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) var(--progress-angle, 0deg), var(--border-color) 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-circle::before {
    content: '';
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: var(--bg-dark);
}

.skill-details {
    list-style: none;
    text-align: left;
}

.skill-details li {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.skill-details li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Learning Resources */
.learning-resources {
    padding: 4rem 0;
    background: rgba(0, 0, 0, 0.3);
}

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

.resource-card {
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.resource-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.resource-card h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.resource-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Responsive Animations */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 3rem !important;
        padding-right: 0 !important;
    }
    
    .timeline-marker {
        left: 0 !important;
        right: auto !important;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}