/* General Body and Container Styles */
body {
    font-family: 'Inter', sans-serif;
    transition: background-color 0.5s ease, color 0.5s ease;
    background-image: url('assets/background.jpg'); /* Your background image */
    background-attachment: fixed;
    background-size: cover;
}

.container {
    animation: fadeIn 1s ease-in-out;
}

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

/* --- New Two-Column Layout --- */
.main-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 2rem;
}

@media (min-width: 1024px) { /* Apply two-column layout on larger screens */
    .main-grid {
        grid-template-columns: 350px 1fr; /* Left column width, right takes the rest */
    }
    .left-column {
    position: sticky;
    top: 1.5rem; /* Corresponds to p-6 in the container */
    align-self: start;
    }
}

.left-column {
    animation: slideInFromLeft 0.8s ease-out;
}

.right-column {
    animation: slideInFromRight 0.8s ease-out;
}

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

@keyframes slideInFromRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}


/* Header and Navigation Links */
.nav-link {
    @apply font-medium text-lg relative pb-1;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: theme('colors.sage.500'); /* Base sage for underline */
    transition: width 0.3s ease-in-out;
}

.nav-link:hover::after {
    width: 50%;
}

/* List Item Text Color Fix */
.list-disc li {
    @apply text-gray-700 dark:text-sage-300;
}

/* Section Styling */
.section-header {
    @apply cursor-pointer flex items-center gap-4; /* Use flex and gap */
    padding-bottom: 0.5rem;
    border-bottom: 2px solid theme('colors.sage.200'); /* Lighter sage border */
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.dark .section-header {
    border-color: theme('colors.sage.700'); /* Darker sage border for dark mode */
}

.section-header:hover .section-title {
    color: theme('colors.sage.600');
}

.dark .section-header:hover .section-title {
    color: theme('colors.sage.50');
}

.section-title {
    transition: color 0.3s ease;
}

/* Section expand/collapse transition */
.section-content {
    display: grid;
    grid-template-rows: 0fr; /* Start collapsed */
    transition: grid-template-rows 0.5s ease-out;
}

.section-content > div {
    overflow: hidden;
}

.section-content.active {
    grid-template-rows: 1fr; /* Expand to full height */
}

.toggle-icon {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.section-header[aria-expanded="true"] .toggle-icon {
    transform: rotate(45deg);
}

/* --- Styles for Skill Items --- */
.skill-item {
    @apply flex items-center justify-between mb-4;
}

.skill-name {
    @apply text-lg text-gray-700 dark:text-sage-300 font-medium;
}

/* Project Links */
.project-link {
    @apply font-medium relative pb-0.5;
}

.project-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: theme('colors.sage.500');
    transition: width 0.3s ease-in-out;
}

.project-link:hover::after {
    width: 100%;
}