:root {
    --primary-color: #6c63ff;
    --secondary-color: #4d44db;
    --dark-color: #2a2a72;
    --light-color: #f8f9fa;
    --accent-color: #ff6584;
    --text-color: #333;
    --text-light: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 25px;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary-color);
    animation: slideRight 1s ease forwards;
}

nav a {
    display: inline-block;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    margin-left: 35px;
    transition: 0.3s;
    opacity: 0;
    animation: slideTop 0.5s ease forwards;
    animation-delay: calc(0.2s * var(--i));
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
    transform: translateY(-3px);
}

section {
    min-height: 100vh;
    padding: 10rem 10% 2rem;
}

/* Home Section */
.home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

.home-content {
    max-width: 600px;
}

.home-content h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 0.7s;
}

.home-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: 0.7s;
}

.home-content p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 0.7s;
}

.home-img {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.3);
    opacity: 0;
    animation: zoomIn 1s ease forwards, floatImage 4s ease-in-out infinite;
    animation-delay: 0.7s, 2s;
}

.home-img img {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary-color);
    border-radius: 40px;
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.3);
    font-size: 16px;
    color: var(--text-light);
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.5s;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 0.7s;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.5);
}

/* Projects Section */
.projects {
    background: linear-gradient(135deg, #e4e8f0 0%, #d1d8e6 100%);
}

.projects h2 {
    text-align: center;
    font-size: 48px;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.1);
    filter: brightness(0.5);
}

.project-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(108, 99, 255, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    transition: all 0.5s ease;
}

.project-card:hover .project-info {
    bottom: 0;
}

.project-info h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 10px;
}

.project-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 15px;
}

.project-info a {
    color: white;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.project-info a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.project-info a i {
    margin-left: 5px;
}

/* Education Section */
.education {
    background: linear-gradient(135deg, #d1d8e6 0%, #bdc7e0 100%);
}

.education h2 {
    text-align: center;
    font-size: 48px;
    margin-bottom: 50px;
    color: var(--dark-color);
}

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

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 10px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.timeline-item:nth-child(odd) {
    left: 0;
    animation-delay: calc(0.3s * var(--i));
}

.timeline-item:nth-child(even) {
    left: 50%;
    animation-delay: calc(0.3s * var(--i));
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.timeline-content p {
    line-height: 1.5;
    margin-bottom: 5px;
}

.timeline-content .date {
    color: var(--accent-color);
    font-weight: 600;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: white;
    border: 4px solid var(--primary-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -16px;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #bdc7e0 0%, #a5b3d6 100%);
}

.contact h2 {
    text-align: center;
    font-size: 48px;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-detail i {
    font-size: 24px;
    color: var(--primary-color);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.social-links {
    margin-top: 2rem;
    gap: 2rem;
    font-size: 2rem;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.1);
}

.input-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: 0.3s;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

/* Animations */
@keyframes slideRight {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideLeft {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideTop {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideBottom {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    header {
        padding: 20px 5%;
    }

    section {
        padding: 8rem 5% 2rem;
    }
}

@media (max-width: 991px) {
    .home {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

    .home-content {
        max-width: 100%;
        margin-bottom: 50px;
    }

    .home-img {
        width: 300px;
        height: 300px;
    }

    .home-img img {
        width: 280px;
        height: 280px;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item::after {
        left: 18px;
    }

    .timeline-item:nth-child(even)::after {
        left: 18px;
    }
}

@media (max-width: 768px) {
    nav a {
        margin-left: 20px;
        font-size: 16px;
    }

    .home-content h1 {
        font-size: 40px;
    }

    .home-content h3 {
        font-size: 24px;
    }

    .projects-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    nav a {
        margin-left: 10px;
        font-size: 14px;
    }

    .home-content h1 {
        font-size: 32px;
    }

    .home-img {
        width: 250px;
        height: 250px;
    }

    .home-img img {
        width: 230px;
        height: 230px;
    }
}