:root {
    --bg-color: #0a0a0a;
    --text-color: #f5f5f5;
    --accent-color: #4a90e2;
    --secondary-bg: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Landing Section */
.landing-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    background: rgba(255, 241, 241, 0.447);
    border-radius: 30px;
    backdrop-filter: blur(15px);
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-element:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 350px;
    height: 250px;
    top: 50%;
    right: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(3) {
    width: 280px;
    height: 280px;
    bottom: 15%;
    left: 15%;
    animation-delay: 0s;
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 5.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ffffff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}

.year {
    font-size: 1.5rem;
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

/* About Section */
.about-section {
    min-height: 100vh;
    padding: 4rem 2rem;
    background-color: var(--secondary-bg);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding: 2rem;
}

.about-text {
    max-width: 600px;
    text-align: left;
    opacity: 0;
    transform: translateX(-100px);
    flex: 1;
}

.profile-image {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    overflow: hidden;
    opacity: 0;
    transform: translateX(100px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Resume Section */
.resume-section {
    padding: 4rem 2rem;
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.resume-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.experience-column, .education-column {
    opacity: 0;
    transform: translateX(0);
}

.experience-column {
    transform: translateX(-100px);
}

.education-column {
    transform: translateX(100px);
}

.experience-column.visible, .education-column.visible {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s ease-out;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 2px solid var(--bg-color);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.2);
    z-index: 1;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -4px;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bg-color);
    z-index: 2;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 0;
}

.timeline-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.timeline-content .role {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 0.3rem;
}

.timeline-content .date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.8rem;
}

.timeline-content .description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Add hover effect to timeline items */
.timeline-item:hover::before {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateX(5px);
    transition: all 0.3s ease;
}

/* Projects Section */
.projects-section {
    padding: 4rem 2rem;
    background-color: var(--secondary-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.projects-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.projects-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    width: 100%;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(50px);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:nth-child(1).visible { transition-delay: 0.2s; }
.project-card:nth-child(2).visible { transition-delay: 0.4s; }
.project-card:nth-child(3).visible { transition-delay: 0.6s; }
.project-card:nth-child(4).visible { transition-delay: 0.8s; }
.project-card:nth-child(5).visible { transition-delay: 1s; }

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image::after {
    opacity: 0.8;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.15);
}

.project-content {
    padding: 1.5rem;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

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

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.project-card:hover .project-content h3 {
    color: var(--accent-color);
}

.project-description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.project-card:hover .project-description {
    color: rgba(255, 255, 255, 0.95);
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    background-color: var(--bg-color);
}

.social-icons {
    margin-top: 1rem;
}

.social-icons a {
    color: var(--text-color);
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-color);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 4rem;
    }

    .floating-element:nth-child(1) {
        width: 200px;
        height: 200px;
    }

    .floating-element:nth-child(2) {
        width: 250px;
        height: 250px;
    }

    .floating-element:nth-child(3) {
        width: 180px;
        height: 180px;
    }

    .resume-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .experience-column, .education-column {
        transform: translateY(50px);
    }

    .experience-column.visible, .education-column.visible {
        transform: translateY(0);
    }

    .about-content {
        flex-direction: column-reverse;
        gap: 2rem;
        text-align: center;
    }

    .about-text {
        text-align: center;
        transform: translateY(50px);
    }

    .profile-image {
        width: 300px;
        height: 300px;
        transform: translateY(100px);
    }

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

    .project-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 3rem;
    }

    .floating-element:nth-child(1) {
        width: 150px;
        height: 150px;
    }

    .floating-element:nth-child(2) {
        width: 200px;
        height: 200px;
    }

    .floating-element:nth-child(3) {
        width: 130px;
        height: 130px;
    }

    .profile-image {
        width: 250px;
        height: 250px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 160px;
    }
}

.cv-button-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease-out 1s forwards;
}

.cv-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.cv-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cv-button i {
    font-size: 0.9rem;
}

.cv-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
}
