/* Floating Menu */
.floating-menu {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 200px;
    display: flex;
    flex-direction: column;
    visibility: hidden;
}

.floating-menu.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    padding: 0.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    background-color: transparent;
    border: none;
}

.menu-toggle:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 16px;
    width: 24px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Styles */
@media (max-width: 1595px) {
    .floating-menu {
        width: 100%;
        height: 56px;
        left: 0;
        top: 0;
        border-radius: 0;
        backdrop-filter: none;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        opacity: 1;
        transform: none;
        display: flex;
        justify-content: flex-start;
        padding: 0 1rem;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .floating-menu ul {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        padding: 0.5rem 0;
    }

    .floating-menu.expanded ul {
        display: block;
    }

    .floating-menu.expanded .hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .floating-menu.expanded .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .floating-menu.expanded .hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

.floating-menu ul {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.floating-menu li {
    position: relative;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.floating-menu li:last-child {
    border-bottom: none;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 0;
    background-color: #3498db;
    transform: translateY(-50%);
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
}

.nav-link:hover::before {
    height: 100%;
}

.nav-link.active {
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
}

.nav-link.active::before {
    height: 100%;
}

/* Add a subtle gradient background for the menu */
.floating-menu {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 245, 245, 0.95) 100%);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Tooltip styles */
.obfuscated-email {
    position: relative;
    display: inline-block;
}

.tooltip {
    position: absolute;
    background-color: #3498db;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    top: -30px;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    pointer-events: none;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header styles */
header {
    background-color: #fff;
    padding: 3rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.profile-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
}

.profile-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.profile-info h2 {
    font-size: 1.5rem;
    color: #3498db;
    margin-bottom: 1.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.contact-info i {
    color: #3498db;
}

/* Main content styles */
main {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

section {
    margin-bottom: 3rem;
}

h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #3498db;
}

/* Skills section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skills-container {
    max-height: 15em;
    overflow: hidden;
    transition: max-height 0.2s ease-in-out;
}

.skills-container.expanded {
    max-height: 1000px;
}

.skills-expand-button {
    background: #3498db;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    margin: 1rem auto 0;
    display: block;
    text-align: center;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.skills-expand-button:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.skills-expand-button.expanded {
    background: #2980b9;
}

.skills-expand-button::after {
    content: "▼";
    margin-left: 0.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.skills-expand-button.expanded::after {
    transform: rotate(180deg);
}

.skill-category {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.language-item {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.language-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.language-level {
    position: relative;
    width: 100%;
}

.level-bar {
    background-color: #e9ecef;
    border-radius: 10px;
    height: 1.5em;
    overflow: hidden;
    margin: 0.5em 0;
    border: 1px solid #333;
}

.progress {
    height: 100%;
    background-color: #2ecc71;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.level-text {
    display: block;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.skill-category h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    margin-bottom: 0.5rem;
    color: #666;
}

/* Timeline styles */
.timeline-container {
    position: relative;
    padding: 2rem 0;
    margin: 2rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, #3498db, #2ecc71);
    z-index: 1;
}

.timeline-year {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.timeline-year span {
    position: absolute;
    left: -70px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #3498db;
    text-align: right;
    width: 80px;
}

.timeline-item {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    margin-left: 10%;
}

.timeline-marker {
    position: absolute;
    left: -59px;
    width: 20px;
    height: 20px;
    background: #3498db;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.3);
    z-index: 2;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 1.5rem;
    margin-left: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.8s ease;
    border: 1px solid rgba(52, 152, 219, 0.1);
    opacity: 0;
    transform: translateX(-30px);
}

.timeline-content:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.timeline-content.show {
    opacity: 1;
    transform: translateX(0);
}

.timeline-content h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.company {
    color: #3498db;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.duration {
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
    font-size: 0.9rem;
}

.responsibilities {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.responsibility-item {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.responsibility-item::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3498db;
    font-size: 1.2rem;
}

.responsibility-item ul {
    margin: 0.75rem 0;
    padding-left: 2.5rem;
}

.responsibility-item ul li {
    margin-bottom: 0.5rem;
    list-style-type: "-";
    color: #666;
}

.responsibility-item strong {
    color: #3498db;
    font-weight: 600;
}

.responsibility-item code {
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #3498db;
}

.responsibility-item p {
    margin: 0.5rem 0;
    color: #333;
}

.responsibility-item h1, .responsibility-item h2, .responsibility-item h3 {
    margin: 0.75rem 0;
    color: #2c3e50;
    font-weight: 600;
}

/* Add animation for timeline items */
.timeline-content {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.6s ease forwards;
}

.timeline-year:nth-child(2) .timeline-content {
    animation-delay: 0.1s;
}

.timeline-year:nth-child(3) .timeline-content {
    animation-delay: 0.2s;
}

.timeline-year:nth-child(4) .timeline-content {
    animation-delay: 0.3s;
}

.timeline-year:nth-child(5) .timeline-content {
    animation-delay: 0.4s;
}

.timeline-year:nth-child(6) .timeline-content {
    animation-delay: 0.5s;
}

.timeline-year:nth-child(7) .timeline-content {
    animation-delay: 0.6s;
}

.timeline-year:nth-child(8) .timeline-content {
    animation-delay: 0.7s;
}

.timeline-year:nth-child(9) .timeline-content {
    animation-delay: 0.8s;
}

.timeline-year:nth-child(10) .timeline-content {
    animation-delay: 0.9s;
}

.timeline-year:nth-child(11) .timeline-content {
    animation-delay: 1s;
}

.timeline-year:nth-child(12) .timeline-content {
    animation-delay: 1.1s;
}

.timeline-year:nth-child(13) .timeline-content {
    animation-delay: 1.2s;
}

.timeline-year:nth-child(14) .timeline-content {
    animation-delay: 1.3s;
}

.timeline-year:nth-child(15) .timeline-content {
    animation-delay: 1.4s;
}

.timeline-year:nth-child(16) .timeline-content {
    animation-delay: 1.5s;
}

/* Tooltip styles */
.obfuscated-email {
    position: relative;
    display: inline-block;
}

.tooltip {
    position: absolute;
    background-color: #3498db;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    top: -30px;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    pointer-events: none;
}

/* Tooltip styles */
.obfuscated-email {
    position: relative;
    display: inline-block;
}

.tooltip {
    position: absolute;
    background-color: #3498db;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    top: -30px;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    pointer-events: none;
}

.timeline-year:nth-child(4) .timeline-content {
    animation-delay: 0.3s;
}

.timeline-year:nth-child(5) .timeline-content {
    animation-delay: 0.4s;
}

.timeline-year:nth-child(6) .timeline-content {
    animation-delay: 0.5s;
}

.timeline-year:nth-child(7) .timeline-content {
    animation-delay: 0.6s;
}

.timeline-year:nth-child(8) .timeline-content {
    animation-delay: 0.7s;
}

.timeline-year:nth-child(9) .timeline-content {
    animation-delay: 0.8s;
}

.timeline-year:nth-child(10) .timeline-content {
    animation-delay: 0.9s;
}

.timeline-year:nth-child(11) .timeline-content {
    animation-delay: 1s;
}

.timeline-year:nth-child(12) .timeline-content {
    animation-delay: 1.1s;
}

.timeline-year:nth-child(13) .timeline-content {
    animation-delay: 1.2s;
}

.timeline-year:nth-child(14) .timeline-content {
    animation-delay: 1.3s;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive timeline */
@media (max-width: 1595px) {
    .timeline-container::before,
    .timeline-year span,
    .timeline-marker {
        display: none;
    }

    .timeline-content {
        margin: 0;
        padding: 1.25rem;
        width: 100%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .timeline-item {
        width: 100%;
        margin-left: 0;
    }

    .company {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .duration {
        font-size: 0.95rem;
        color: #666;
        margin-bottom: 1.25rem;
    }

    .work-experience-summary {
        padding: 1rem;
        background: var(--card-bg);
        border-radius: 8px;
        margin-bottom: 1.25rem;
    }

    .responsibilities {
        margin: 0;
        padding-left: 1.75rem;
    }

    .responsibilities li {
        margin-bottom: 1rem;
        font-size: 1rem;
        line-height: 1.6;
    }

    .tech-stack {
        margin-bottom: 1.5rem;
    }

    .tech-stack-items {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .tech-item {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
        margin: 0.25rem 0;
    }
}

/* Projects section */
.projects-container {
    margin-top: 2rem;
}

.project-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.project-item:hover {
    background: rgba(52, 152, 219, 0.03);
}

.project-item h3 {
    margin: 0 0 1.5rem 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.project-item .tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.project-item .tech-stack span,
.tech-stack-items .tech-item {
    background: var(--card-bg);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    margin: 0.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid rgba(52, 152, 219, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.project-item .tech-stack span:hover,
.tech-stack-items .tech-item:hover {
    background: rgba(52, 152, 219, 0.05);
    transform: translateY(-1px);
    border-color: rgba(52, 152, 219, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.project-item .tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.tech-stack-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-item strong {
    color: #3498db;
    font-weight: 600;
}

.tech-item code {
    background: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #3498db;
    font-weight: 500;
}

/* Successes Section Styles */
.section-separator {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
    width: 100%;
}

.successes {
    position: relative;
    padding-left: 1em;
}

.success-item {
    position: relative;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-left: 4px;
    transition: all 0.3s ease;
    font-style: italic;
}

.success-item::before {
    content: '✓';
    color: #2ecc71;
    font-size: 1.2rem;
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
    top: 0.75rem;
}

.success-item:hover {
    background: rgba(52, 152, 219, 0.05);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.success-item strong {
    color: #3498db;
    font-weight: 600;
}

.success-item code {
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #3498db;
    font-weight: 500;
}

/* Footer styles */
footer {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Floating Action Button */
.floating-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.floating-button.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.floating-button i {
    font-size: 1.2rem;
    pointer-events: none;
}

.work-experience-summary {
    padding-top: 0.5em;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-link {
    color: #3498db;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #2980b9;
}

/* Responsive design */
@media (max-width: 1595px) {
    .container {
        padding: 1rem;
    }

    .profile-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-info h1 {
        font-size: 2rem;
    }

    .profile-info h2 {
        font-size: 1.2rem;
    }

    .skills-grid,
    .experience-grid,
    .education-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
