/* Home Page Styles */

/* Global Section Styles */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40%;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

section {
    padding: 2.5rem 0;
    margin: 0 auto;
    max-width: 1600px; /* Increased width */
}

section:nth-child(even) {
    background-color: var(--entry);
    width: 100%;
    max-width: 100%;
    padding: 2.5rem 1rem;
}

section:nth-child(even) > * {
    max-width: 1600px; /* Increased width */
    margin-left: auto;
    margin-right: auto;
}

/* Drawer Layout Styles */
.home-container {
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

.main-content {
    transition: transform 0.3s ease-out;
    width: 100%;
    padding: 0 1.5rem;
}

.main-content.shifted {
    transform: translateX(-50%);
    width: 50%;
}

/* Hero Section */
.hero-section {
    padding: 4rem 1rem 2rem;
    margin-top: -1rem;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.profile-image {
    flex: 0 0 180px;
}

.profile-image img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.2);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.profile-image img:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px -8px rgba(0, 0, 0, 0.3);
}

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

.profile-info h1 {
    font-size: 2.4rem;
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.profile-info .subtitle {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 1.2rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

.social-icons a {
    color: var(--content);
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
    display: inline-flex;
    align-items: center;
}

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

.social-icons a:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.social-icons a:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.social-icons svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1.6rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
    justify-content: flex-start;
}

.action-button {
    display: inline-block;
    padding: 0.25rem 1.5rem;
    background-color: var(--primary);
    color: var(--theme);
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--primary);
    cursor: pointer;
}

.action-button:hover {
    background-color: transparent;
    color: var(--primary);
}

/* Intro Section */
.intro-section {
    padding: 2rem 1rem;
}

.intro-section .content {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 1000px;
    margin: 0;
    text-align: left;
}

.intro-section .content h2 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.intro-section .content ul {
    margin-left: 0;
    margin-bottom: 1.2rem;
    list-style: none;
    padding-left: 0;
}

.intro-section .content li {
    margin-bottom: 0.4rem;
}

/* Experience Timeline */
.experience-timeline {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.experience-timeline::before {
    content: "";
    position: absolute;
    width: 2px;
    background-color: var(--border);
    top: 0;
    bottom: 0;
    left: 0;
    margin-left: 20px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--primary);
    left: 14px;
    top: 8px;
    z-index: 1;
}

.timeline-content {
    padding: 1.2rem;
    background-color: var(--entry);
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.timeline-header {
    margin-bottom: 0.8rem;
}

.job-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.company-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 0.4rem;
}

.company-name {
    font-weight: 500;
}

.location {
    color: var(--secondary);
}

.duration {
    font-size: 0.85rem;
    color: var(--secondary);
    font-style: italic;
}

.job-description {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.achievements h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.achievements ul {
    padding-left: 1.2rem;
    margin-bottom: 0.8rem;
}

.achievements li {
    margin-bottom: 0.4rem;
    position: relative;
    font-size: 0.95rem;
}

.technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.8rem;
}

.tech-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background-color: var(--tertiary);
    color: var(--theme);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Skills Section */
.skills-content {
    padding: 0 1rem;
}

.skill-category {
    margin-bottom: 1.5rem;
}

.category-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.4rem;
    padding-left: 0;
    display: flex;
    align-items: center;
}

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 12px;
    color: var(--primary);
    background-color: var(--entry);
    border-radius: 50%;
    font-size: 0.9rem;
}

.skills-line {
    line-height: 1.5;
    margin-bottom: 1rem;
    padding-left: 0;
    font-size: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-name {
    color: var(--content);
}

/* Drawer Styles */
.drawer {
    position: fixed;
    top: 0;
    right: -50%;
    width: 50%;
    height: 100vh;
    background-color: var(--theme);
    z-index: 1001;
    overflow-y: auto;
    transition: right 0.3s ease-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.drawer-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.close-drawer {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-drawer:hover {
    background-color: var(--tertiary);
}

.drawer-content {
    padding-right: 1rem;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Scroll to Top Button */
#scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background-color: var(--primary);
    color: var(--theme);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
    z-index: 999;
}

#scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

#scroll-to-top:hover {
    background-color: var(--secondary);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .main-content.shifted {
        transform: translateX(0);
        width: 100%;
        filter: blur(3px);
        pointer-events: none;
    }

    .drawer {
        width: 80%;
        right: -80%;
    }
}

@media (max-width: 768px) {
    .profile-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .profile-info {
        min-width: unset;
        width: 100%;
    }

    .social-icons {
        justify-content: center;
    }

    .action-buttons {
        justify-content: center;
    }

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

    .section-title::after {
        left: 25%;
        width: 50%;
    }

    .experience-timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-marker {
        left: 9px;
    }

    .skills-line {
        padding-right: 0;
        gap: 0.4rem;
    }

    .skill-item {
        font-size: 0.85rem;
        padding: 0.25rem 0.6rem;
    }

    section {
        padding: 2rem 1rem;
    }

    .intro-section .content {
        font-size: 0.95rem;
    }

    .drawer {
        width: 100%;
        right: -100%;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .profile-info h1 {
        font-size: 2rem;
    }

    .profile-image img {
        width: 150px;
        height: 150px;
    }

    .action-button {
        width: 100%;
        text-align: center;
    }

    .company-details {
        flex-direction: column;
        gap: 0.3rem;
    }

    #scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 32px;
        height: 32px;
    }

    .drawer-header h2 {
        font-size: 1.3rem;
    }

    .timeline-item {
        padding-left: 35px;
    }

    .timeline-content {
        padding: 1rem;
    }

    .job-title {
        font-size: 1.1rem;
    }

    /* Mobile adjustments for skills */
    .skills-line {
        line-height: 1.6;
        justify-content: flex-start;
    }

    .skill-item {
        font-size: 0.8rem;
        padding: 0.2rem 0.5rem;
        margin-bottom: 0.4rem;
    }
}

/* Dark Mode Adjustments */
.dark .timeline-content {
    background-color: var(--entry);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.dark .tech-tag {
    background-color: var(--code-bg);
}

/* Ghost buttons for skills */
.skill-item {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--border);
    color: var(--content);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
    background-color: transparent;
}

.skill-item:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

.dark .skill-item {
    border-color: var(--border);
    background-color: transparent;
}

.dark .skill-item:hover {
    border-color: var(--primary);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* Dark mode specific styles */

.dark #scroll-to-top {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark .drawer {
    box-shadow: -3px 0 10px rgba(0, 0, 0, 0.3);
}

.dark .close-drawer:hover {
    background-color: var(--code-bg);
}

.dark .overlay {
    background-color: rgba(0, 0, 0, 0.7);
}
