/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
    --primary-deep: #2A0D45;   /* Deep Indigo/Purple */
    --primary-accent: #4F46E5; /* Electric Blue */
    --secondary-accent: #EC4899; /* Vibrant Pink/Magenta */
    --highlight: #14B8A6;     /* Teal */
    --text-light: #F3F4F6;     /* Very Light Gray */
    --text-medium: #9CA3AF;    /* Medium Gray */
    --text-dark: #1F2937;     /* Darker Gray for light backgrounds if needed */
    --card-bg: #371A55;       /* Slightly lighter than deep base */
    --glow-color: rgba(236, 72, 153, 0.7); /* Glow effect color based on secondary accent */

    /* Transitions */
    --transition-fast: all 0.2s ease-in-out;
    --transition-medium: all 0.3s ease-in-out;
}

/* --- Basic Reset & Body --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-deep);
    color: var(--text-light);
    line-height: 1.7; /* Increased line-height */
    padding: 1rem;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* --- Container --- */
.container {
    max-width: 72rem; /* Slightly wider max-width */
    margin: 2rem auto;
    background: linear-gradient(145deg, var(--card-bg), var(--primary-deep)); /* Subtle gradient */
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5); /* Stronger shadow */
    border-radius: 1rem; /* Larger radius */
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
}

/* --- Header --- */
.header {
    background: linear-gradient(135deg, var(--primary-accent) 0%, var(--secondary-accent) 100%);
    color: #ffffff;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.profile-photo-wrapper {
    margin-bottom: 1.5rem;
    position: relative;
    width: 8rem; /* Increased size */
    height: 8rem;
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.9); /* Thicker border */
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition-medium);
}

.profile-photo-wrapper:hover .profile-photo {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow-color); /* Add glow on hover */
}

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

.header-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 400;
    opacity: 0.9;
}

/* --- Main Content Layout --- */
.main-content {
    display: flex;
    flex-direction: column;
}

/* --- Sidebar --- */
.sidebar {
    width: 100%;
    background-color: var(--primary-deep); /* Dark background */
    padding: 2rem 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1); /* Subtle separator */
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--primary-accent); /* Electric blue headers */
    border-bottom: 3px solid;
    border-image: linear-gradient(to right, var(--primary-accent), var(--secondary-accent)) 1; /* Gradient border */
    padding-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: var(--transition-fast);
}

.sidebar-section h2:hover {
    color: var(--secondary-accent); /* Shift color on hover */
}

.sidebar-section ul {
    list-style: none;
    font-size: 0.95rem;
    color: var(--text-medium);
}

.sidebar-section ul li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center; /* Align icon and text */
}

.sidebar-section .icon { /* Style for optional icons */
    margin-right: 0.8rem;
    color: var(--highlight);
    width: 1.1rem;
    text-align: center;
}

.sidebar-section a {
    color: var(--secondary-accent); /* Pink links */
    text-decoration: none;
    word-break: break-word;
    transition: var(--transition-fast);
    position: relative; /* For potential underline animations */
}

.sidebar-section a:hover {
    color: var(--text-light);
    text-shadow: 0 0 8px var(--glow-color); /* Glow effect */
    transform: translateY(-2px); /* Slight lift */
}

/* Skills Section Specifics */
.skills-list .skill-category {
    margin-bottom: 1.2rem;
}

.skills-list h4 {
    font-weight: 600;
    color: var(--primary-accent);
    margin-bottom: 0.6rem;
    font-size: 1rem;
}

.skill-tag {
    display: inline-block;
    background-color: var(--card-bg);
    color: var(--text-medium);
    padding: 0.3rem 0.8rem;
    margin: 0.2rem;
    border-radius: 1rem; /* Pill shape */
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
    cursor: default; /* Indicate non-clickable */
}

.skill-tag:hover {
    background-color: var(--secondary-accent);
    color: var(--text-light);
    transform: scale(1.08) rotate(2deg); /* Scale and slight rotate */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    border-color: var(--secondary-accent);
}

.languages-section ul li {
    margin-bottom: 0.5rem;
}

.about-section p {
    font-size: 0.9rem;
    color: var(--text-medium);
}

/* --- Main Column --- */
.main-column {
    width: 100%;
    padding: 2rem 1.5rem;
    background-color: var(--card-bg); /* Slightly lighter background */
}

.main-section {
    margin-bottom: 2.5rem; /* More space */
}

.main-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 4px solid var(--primary-accent);
    padding-bottom: 0.75rem;
    color: var(--text-light);
    transition: var(--transition-fast);
}

.main-section h2:hover {
    border-bottom-color: var(--secondary-accent); /* Change border color on hover */
}

.main-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
    color: var(--primary-accent);
}

.main-section p {
    font-size: 1rem; /* Larger base text */
    color: var(--text-medium);
    line-height: 1.8;
}

/* Card Styling for main sections */
.card {
    background-color: var(--primary-deep); /* Darker cards */
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition-medium);
}

.card:hover {
    transform: translateY(-6px) scale(1.01); /* Lift and slight scale */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--secondary-accent);
    background-color: #401f68; /* Slightly lighten card background on hover */
}

/* Experience Section Specifics */
.job-header, .education-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}
.job-date, .education-date {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-medium);
    margin-top: 0.25rem;
    opacity: 0.8;
}
.job-company, .education-degree, .certification-provider {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* Courses & Certifications Specifics */
.certification-item h3 {
     font-size: 1.15rem;
     color: var(--text-light);
     margin-bottom: 0.3rem;
}
.key-skills {
    font-weight: 600;
    color: var(--secondary-accent); /* Highlight key skills */
}

/* Projects Specifics */
.project-item h3 {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}
.project-item p {
    margin-bottom: 1rem; /* More space before link */
}
.project-link {
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-flex; /* Use flex for icon alignment */
    align-items: center;
    gap: 0.5rem; /* Space between icon and text */
    color: var(--text-light);
    background-color: var(--primary-accent);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: var(--transition-fast);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.project-link:hover {
    background-color: var(--secondary-accent);
    color: #ffffff;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3), 0 0 8px var(--glow-color);
}

/* Button link - same styling as project-link */
.button-link {
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    background-color: var(--primary-accent);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: var(--transition-fast);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.button-link:hover {
    background-color: var(--secondary-accent);
    color: #ffffff;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3), 0 0 8px var(--glow-color);
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 1.5rem 1rem;
    background-color: var(--primary-deep);
    font-size: 0.85rem;
    color: var(--text-medium);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0; /* Start hidden */
}

/* Add staggered delays for sections */
.main-section:nth-of-type(1) { animation-delay: 0.1s; }
.main-section:nth-of-type(2) { animation-delay: 0.2s; }
.main-section:nth-of-type(3) { animation-delay: 0.3s; }
.main-section:nth-of-type(4) { animation-delay: 0.4s; }
.main-section:nth-of-type(5) { animation-delay: 0.5s; }


/* --- Responsive Design --- */
@media (min-width: 768px) { /* md: breakpoint */
    body {
        padding: 2rem;
    }

    .header {
        flex-direction: row;
        padding: 3rem 2.5rem;
        text-align: left;
    }

    .profile-photo-wrapper {
        width: 9rem;
        height: 9rem;
        margin-bottom: 0;
        margin-right: 2.5rem;
        flex-shrink: 0; /* Prevent shrinking */
    }

     .header-text h1 {
        font-size: 2.8rem;
    }

    .header-text p {
        font-size: 1.3rem;
    }

    .main-content {
        flex-direction: row;
    }

    .sidebar {
        width: 35%; /* Give sidebar decent width */
        padding: 2.5rem 2rem;
    }

    .main-column {
        width: 65%;
        padding: 2.5rem 2rem;
    }

    .job-header, .education-header {
        flex-direction: row;
        align-items: center; /* Align items vertically centered */
    }
     .job-date, .education-date {
        margin-top: 0;
        margin-left: 1rem; /* Add space */
    }
}

@media (min-width: 1024px) { /* lg: breakpoint */
    .container {
         margin: 3rem auto;
    }
     .sidebar {
        width: 30%;
    }
    .main-column {
        width: 70%;
    }
    .header-text h1 {
        font-size: 3rem;
    }
}