/* Base styles */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --light: #f8fafc;
    --gray: #64748b;
    --success: #10b981;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--secondary);
    background: var(--light);
    overflow-x: hidden;
}

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

/* Particles background */
.particles-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: -2;
}

.particles-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.1' d='M0,288L48,272C96,256,192,224,288,197.3C384,171,480,149,576,165.3C672,181,768,235,864,250.7C960,267,1056,245,1152,224C1248,203,1344,181,1392,170.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: bottom;
}

/* Header */
header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    padding: 60px 0;
}

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

header h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.tagline {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.header-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 1rem 2rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav a:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 80px 0;
    background: white;
    margin: 40px 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary);
    font-weight: 600;
}

/* Profile section */
.profile-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    margin: 2rem 0;
}

.profile-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.expertise-list {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.expertise-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.expertise-item i {
    color: var(--accent);
    font-size: 1.2rem;
}

.mission-statement {
    font-style: italic;
    font-size: 1.1rem;
    opacity: 0.9;
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
}

/* Timeline with expandable details */
.timeline {
    display: grid;
    gap: 3rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
}

.timeline-date {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
    padding-top: 0.5rem;
}

.timeline-content {
    position: relative;
    background: var(--light);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.experience-header h3 {
    font-size: 1.4rem;
    color: var(--secondary);
    margin: 0;
    flex: 1;
}

.expand-btn {
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.expand-btn:hover {
    background: var(--primary);
    color: white;
}

.expand-btn i {
    transition: transform 0.3s ease;
    color: var(--primary);
}

.expand-btn.active i {
    transform: rotate(180deg);
}

.expand-btn:hover i {
    color: white;
}

.project-name {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.timeline-content ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.timeline-content li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.timeline-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Experience details expandable section */
.experience-details {
    height: 0;
    opacity: 0;
    overflow: hidden;
    background: white;
    border-radius: 12px;
    margin-top: 1.5rem;
    border: 1px solid #e2e8f0;
}

.details-content {
    padding: 2rem;
}

.details-content h4 {
    color: var(--primary);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.details-content h4:first-child {
    margin-top: 0;
}

.details-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--secondary);
}

.details-content ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.details-content li {
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.details-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.details-content a:hover {
    text-decoration: underline;
}

/* Project link */
.project-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.project-link i {
    font-size: 0.8rem;
}

/* Skills */
.skills-toggle {
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.skills-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.skills-grid {
    display: grid;
    gap: 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.skills-grid.show {
    max-height: 2000px;
}

.skill-category {
    background: var(--light);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary);
}

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

.skill-category h3 i {
    color: var(--primary);
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-items span {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 500;
    color: var(--gray);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.skill-items span:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

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

.achievement-item {
    text-align: center;
    padding: 2rem;
    background: var(--light);
    border-radius: 15px;
    transition: transform 0.3s ease;
}

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

.achievement-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.achievement-text {
    font-weight: 500;
    color: var(--secondary);
}

/* Contact Section */
.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-invitation {
    font-size: 1.3rem;
    color: var(--secondary);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-info {
    margin-bottom: 3rem;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--light);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-height: 150px;
}

.contact-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-details h4 {
    color: var(--secondary);
    margin-bottom: 0.8rem;
    font-weight: 600;
    font-size: 1.2rem;
}

.contact-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-description {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

.location-info {
    text-align: center;
    padding: 2.5rem;
    background: var(--light);
    border-radius: 15px;
    margin-top: 2rem;
    border: 2px solid #e2e8f0;
}

.location-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--secondary);
    font-size: 1.2rem;
}

.location-item i {
    color: var(--primary);
    font-size: 1.3rem;
}

.availability {
    color: var(--success);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
    padding: 0.8rem 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 25px;
    display: inline-block;
}

/* Download container */
.download-container {
    text-align: center;
    padding: 3rem 0;
    border-top: 2px solid #e2e8f0;
    margin-top: 2rem;
}

.download-text {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    font-weight: 500;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem 3rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    background: white;
    color: var(--primary);
    border-color: var(--primary);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    background: var(--secondary);
    color: white;
    margin-top: 4rem;
}

footer p {
    margin-bottom: 0.5rem;
}

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

/* Improved mobile responsiveness */
@media (max-width: 768px) {
    /* Header improvements */
    header h1 {
        font-size: 2.2rem;
    }
    
    .tagline {
        font-size: 1.3rem;
    }
    
    .header-description {
        font-size: 1.1rem;
    }
    
    .nav {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .nav a {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Timeline improvements */
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .timeline-date {
        text-align: center;
        background: var(--light);
        padding: 1rem;
        border-radius: 10px;
        font-size: 1rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .experience-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .experience-header h3 {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .expand-btn {
        align-self: center;
    }
    
    .details-content {
        padding: 1.5rem;
    }
    
    /* Contact improvements */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-item {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        min-height: auto;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        margin: 0 auto;
    }
    
    .contact-icon i {
        font-size: 1.2rem;
    }
    
    .contact-details {
        text-align: center;
    }
    
    .contact-link {
        font-size: 1rem;
    }
    
    .contact-description {
        font-size: 0.8rem;
    }
    
    .location-info {
        padding: 1.5rem;
    }
    
    .location-item {
        font-size: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .availability {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }
    
    /* Download button */
    .download-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    /* Skills improvements */
    .skill-items {
        justify-content: center;
    }
    
    .skill-items span {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Achievements improvements */
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .achievement-item {
        padding: 1.5rem;
    }
    
    .achievement-number {
        font-size: 2rem;
    }
    
    .achievement-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .profile-card {
        padding: 1.5rem;
    }
    
    .profile-content p {
        font-size: 1rem;
    }
    
    .expertise-item {
        font-size: 0.9rem;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        padding: 1.2rem;
    }
    
    .download-btn {
        font-size: 0.9rem;
    }
    
    /* Project link mobile */
    .project-link {
        font-size: 0.9rem;
    }
    
    .contact-invitation {
        font-size: 1.1rem;
    }
    
    .details-content h4 {
        font-size: 1rem;
    }
    
    .download-text {
        font-size: 1.1rem;
    }
}

/* Additional mobile fixes */
@media (max-width: 360px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 30px 0;
        margin: 15px 0;
    }
    
    .nav a {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    .expand-btn {
        width: 35px;
        height: 35px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
    }
    
    .contact-icon i {
        font-size: 1rem;
    }
}