/* Import theme colors */
@import 'theme.css';

/* Root Variables */
:root {
    --ljmu-color: #1d2859;
}

[data-theme="dark"] {
    --ljmu-color: #ffffff;
}

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

/* Layout Components */
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    animation: fadeIn 0.8s ease-out;
    padding-top: 40vh; 
}

section:first-of-type {
    padding-top: 10vh; 
}

section:last-of-type {
    padding-bottom: 15vh; 
}

/* Navigation */
#navbar {
    background-color: var(--background-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--shadow-color);
    padding: 1rem 0;
    transition: transform 0.5s ease;
}

#navbar .nav-link {
    color: var(--primary-text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color 0.5s ease;
}

#navbar .nav-link:hover,
#navbar .nav-link.active {
    color: var(--accent-color);
}

#navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.5s ease;
    transform: translateX(-50%);
}

#navbar .nav-link:hover::after,
#navbar .nav-link.active::after {
    width: 100%;
}

/* About Section */
.profile-image {
    margin-bottom: 2rem;
    display: flex; 
    justify-content: center; 
    align-items: center;
}

.profile-image img {
    max-width: 300px;
    box-shadow: 0 0 20px var(--shadow-color);
}

.signature {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    text-align: right;
    margin-top: 2rem;
    color: var(--accent-color);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--accent-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
    padding-right: 2rem;
    transition: transform 0.3s ease;
}

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

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

.timeline-icon, .timeline-icon-present {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: absolute;
    right: -10px;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 10px var(--shadow-color);
    z-index: 1;
}

.timeline-icon {
    background: var(--background-color);
}

.timeline-icon-present {
    background: var(--accent-color);
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -10px;
    right: auto;
    top: 0;
}

.timeline-content {
    background: var(--secondary-background-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 20px var(--shadow-color);
}

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

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

.period,
.location {
    color: var(--secondary-text-color);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

/* Education Section */
.education-card {
    background: var(--secondary-background-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 20px var(--shadow-color);
    text-align: center;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.education-card:hover {
    transform: translateY(-5px);
}

.education-card img, .education-card svg {
    width: auto;
    height: 60px;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.education-card h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.education-card h4 {
    color: var(--primary-text-color);
    margin-bottom: 0.5rem;
}

.education-card p {
    margin-bottom: 0.5rem;
}

.education-card .period {
    margin-top: auto;
    color: var(--secondary-text-color);
    font-size: 0.9rem;
}

/* Skills Section */
.skill-item {
    background: var(--secondary-background-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 20px var(--shadow-color);
    text-align: center;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.skill-item img {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

.skill-item span {
    display: block;
    color: var(--primary-text-color);
    font-size: 1.1rem;
    margin: 0.25rem 0;
}

/* Hobbies Section */
.hobby-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--secondary-background-color);
    border-radius: 8px;
    box-shadow: 0 0 20px var(--shadow-color);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

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

.hobby-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

.hobby-item h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.hobby-item p {
    color: var(--secondary-text-color);
    font-size: 0.9rem;
    margin-top: auto;
}

/* Contact Section */
.contact-content h2 {
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary-text-color);
    text-decoration: none;
    transition: color 1s ease;
}

.contact-link:hover {
    color: var(--accent-color);
}

.contact-link i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    section:first-of-type {
        padding-top: 20vh; 
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        width: 100%;
        padding-left: 2rem;
        padding-right: 0;
        margin-left: 0;
    }

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

    .timeline-icon {
        left: -25px;
        right: auto;
    }

    .contact-links {
        flex-direction: column;
        gap: 1rem;
    }

    #navbar .nav-link {
        padding: 0.2rem;
        display: none;
    }

    #navbar .nav-link.active {
        display: block;
        text-align: center;
        font-size: 1.2rem;
        margin-left: 10%;
        margin-right: 10%;
    }
}