/* Modern Resume Styles with Animations */
:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --secondary: #10b981;
    --dark: #1e293b;
    --darker: #0f172a;
    --light: #f8fafc;
    --gray: #94a3b8;
    --dark-gray: #334155;
    --light-gray: #e2e8f0;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--light);
    -webkit-font-smoothing: antialiased;
    background: linear-gradient(-45deg, #0f172a, #1e293b, #1e1b4b, #312e81);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    min-height: 100vh;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    max-width: 800px;
}

.name {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.job-title-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.job-title {
    background-color: var(--dark);
    color: var(--primary-light);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 1.25rem;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.email {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    font-size: 1.1rem;
    transition: color 0.2s;
    animation: fadeIn 0.8s ease-out 0.3s both;
}

.email:hover {
    color: var(--primary-light);
}

.lead {
    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1.4;
    color: var(--light-gray);
    margin-top: 2rem;
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.contact-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    animation: fadeIn 0.8s ease-out 0.5s both;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary-light);
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid rgba(79, 70, 229, 0.3);
}

.contact-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

/* Section Titles */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--light);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3rem;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
}

/* Skills Section */
.skills-section {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.skills-column,
.interests-column {
    flex: 1;
    min-width: 300px;
}

.skills-grid,
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skill-card,
.interest-card {
    background-color: var(--dark);
    padding: 1.5rem;
    border-radius: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 3px solid var(--primary);
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.skill-card:nth-child(2) {
    animation-delay: 0.2s;
}

.skill-card:nth-child(3) {
    animation-delay: 0.3s;
}

.skill-card:nth-child(4) {
    animation-delay: 0.4s;
}

.skill-card:nth-child(5) {
    animation-delay: 0.5s;
}

.skill-card:nth-child(6) {
    animation-delay: 0.6s;
}

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

.skill-card h3,
.interest-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-light);
}

.skill-card p,
.interest-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

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

.skill-header span {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.skill-bar {
    height: 6px;
    background-color: var(--dark-gray);
    border-radius: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    transition: width 1s ease-out;
}

.interest-icon {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary-light);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Timeline Section */
.timeline-section {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.timeline-column {
    flex: 1;
    min-width: 300px;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--dark-gray);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

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

.timeline-item:nth-child(2) {
    animation-delay: 0.2s;
}

.timeline-point {
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary);
    transform: translateX(-50%);
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
}

.timeline-content {
    background-color: var(--dark);
    padding: 1.5rem;
    border-radius: 0.5rem;
    transition: transform 0.2s;
}

.timeline-content:hover {
    transform: translateX(5px);
}

.timeline-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 0.25rem;
}

.timeline-content .company {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.timeline-content .date {
    display: inline-block;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.responsibilities {
    list-style-type: none;
    margin-top: 0.75rem;
}

.responsibilities li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.responsibilities li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-light);
}

.achievement {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Achievements Section */
.achievements-section {
    margin-bottom: 3rem;
}

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

.achievement-card {
    background-color: var(--dark);
    padding: 1.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: transform 0.2s;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

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

.achievement-card:nth-child(2) {
    animation-delay: 0.2s;
}

.achievement-card:nth-child(3) {
    animation-delay: 0.3s;
}

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

.achievement-icon {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary-light);
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.achievement-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.achievement-content p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    transition: all 0.3s;
}

.theme-toggle:hover {
    transform: scale(1.1);
    background-color: var(--primary-light);
}

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

    .lead {
        font-size: 1.5rem;
    }

    .skills-section,
    .timeline-section {
        flex-direction: column;
    }

    .skills-column,
    .interests-column,
    .timeline-column {
        width: 100%;
    }

    .skills-grid,
    .interests-grid,
    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .contact-links {
        flex-direction: column;
    }

    .contact-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem;
    }

    .name {
        font-size: 2rem;
    }

    .job-title-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .lead {
        font-size: 1.25rem;
        margin-top: 1.5rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .timeline::before {
        left: 0.5rem;
    }

    .timeline-point {
        left: -1.5rem;
    }
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin: 0 auto 1.5rem;
    display: block;
    animation: fadeIn 0.8s ease-out;
}

/* Profile Image Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

.profile-image:hover {
    animation: float 3s ease-in-out infinite;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.tool-card {
    background-color: var(--dark);
    padding: 1.5rem 1rem;
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.3s;
    border-top: 3px solid var(--primary);
}

.tool-card i {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.tool-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.tool-card p {
    font-size: 0.8rem;
    color: var(--gray);
}

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




/* Hero Section Update */
.hero-content {
    max-width: 1400px;
    /* Increased max width */
    margin: 0 auto;
    padding: 2rem 4rem;
    /* More horizontal padding */
}

.hero-grid {
    display: grid;
    grid-template-columns: 83% 17%;
    /* Text takes 70%, image 30% */
    gap: 1rem;
    align-items: center;
}

.hero-text {
    padding-right: 3rem;
    /* Additional padding for text */
}

.name {
    font-size: 4rem;
    /* Larger name */
    line-height: 1.1;
    margin-bottom: 0.75rem;
    max-width: 90%;
    /* Prevent over-stretching */
}

.job-title-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.job-title {
    background-color: var(--dark);
    color: var(--primary-light);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1.75rem;
    align-self: flex-start;
    margin-bottom: 0.5rem;
}

.job-subtitle {
    color: var(--gray);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.5rem;
    line-height: 1.7;
    color: var(--light-gray);
    margin-bottom: 3rem;
    max-width: 85%;
}

.profile-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--primary);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.3);
    margin-left: auto;
    /* Push image to right */
}

/* Contact Links Update */
.contact-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

.contact-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 0.6rem;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .hero-grid {
        grid-template-columns: 60% 40%;
    }

    .hero-content {
        padding: 2rem;
    }

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

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-text {
        padding-right: 0;
        text-align: center;
    }

    .name,
    .lead {
        max-width: 100%;
    }

    .job-title,
    .job-subtitle {
        align-self: center;
    }

    .profile-image {
        margin: 2rem auto 0;
        order: -1;
        /* Move image above text on mobile */
    }
}

@media (max-width: 576px) {
    .hero-content {
        padding: 1.5rem;
    }

    .name {
        font-size: 2.8rem;
    }

    .job-title {
        font-size: 1.4rem;
        padding: 0.6rem 1.2rem;
    }

    .lead {
        font-size: 1.3rem;
    }

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

    .contact-btn {
        width: 100%;
        justify-content: center;
    }

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