/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2C3E50;    /* Deep blue-gray */
    --secondary-color: #34495E;  /* Darker blue-gray */
    --accent-color: #3498DB;     /* Bright blue */
    --text-color: #2C3E50;       /* Dark blue-gray for text */
    --light-bg: #ECF0F1;         /* Light gray background */
    --white: #ffffff;
    --border-color: #BDC3C7;     /* Light gray for borders */
    --bg-color: #f9f9f9;
    --card-bg: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://www.thoughtfulminds.org/wp-content/uploads/2020/07/Law-Assignment-Help-768x512.jpg') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.3), rgba(52, 152, 219, 0.3));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    animation: scaleIn 1s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: slideInLeft 1s ease-out;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    color: var(--white);
    animation: slideInRight 1s ease-out 0.3s backwards;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: slideInLeft 1s ease-out 0.6s backwards;
}

.contact-info {
    display: flex;
    gap: 2rem;
    justify-content: center;
    animation: slideInRight 1s ease-out 0.9s backwards;
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
    background: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.contact-info a:hover {
    opacity: 0.8;
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.contact-info i {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.contact-info a:hover i {
    color: var(--white);
}

@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-info a {
        width: 100%;
        justify-content: center;
    }
}

/* Sections */
section {
    padding: 3rem 0;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease-out;
    min-height: auto;
    display: flex;
    align-items: center;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

section:nth-child(even) {
    background-color: var(--light-bg);
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
}

/* Education Grid */
.education-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.education-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(44, 62, 80, 0.1);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    height: 100%;
}

.education-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.05), rgba(52, 152, 219, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.education-item:hover::before {
    opacity: 1;
}

.education-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 5px 20px rgba(44, 62, 80, 0.15);
}

.education-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.education-item p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.achievements {
    list-style: none;
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.achievements li {
    position: relative;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    transition: transform 0.3s ease;
}

.achievements li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: -1.5rem;
}

.achievements li:hover {
    transform: translateX(10px);
}

/* Experience Grid */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Experience Section Enhancements */
.experience-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(44, 62, 80, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    margin-bottom: 1rem;
}

.experience-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.05), rgba(52, 152, 219, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.experience-item:hover::before {
    opacity: 1;
}

.experience-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 5px 20px rgba(44, 62, 80, 0.15);
}

.experience-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.experience-item .duration {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.experience-item .role {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-style: italic;
}

.experience-item ul {
    list-style: none;
    padding-left: 1.5rem;
}

.experience-item ul li {
    position: relative;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    transition: transform 0.3s ease;
}

.experience-item ul li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: -1.5rem;
}

.experience-item ul li:hover {
    transform: translateX(10px);
}

/* Experience Section */
.experience {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-info a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    background: var(--white);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-info a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: var(--accent-color);
    color: var(--white);
}

.contact-info i {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.contact-info a:hover i {
    color: var(--white);
}

/* Download Resume Button */
.download-resume {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.download-resume i {
    color: var(--accent-color);
}

.download-resume:hover {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.download-resume:hover i {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-info a {
        width: 100%;
        justify-content: center;
    }
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: var(--white);
        flex-direction: column;
        padding: 5rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        padding: 1rem 0;
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .contact-info {
        flex-direction: column;
    }
    
    .education-item,
    .experience-item,
    .publication-item,
    .competency-category {
        padding: 1.5rem;
    }
    
    .experience-grid,
    .publications-grid,
    .competencies-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements li,
    .experience-item ul li,
    .competency-category ul li {
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content, .about p, .education-item, .experience-grid > div, .publications-grid > div, .competencies-grid > div {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Enhanced Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Enhanced Hero Section */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.7), rgba(52, 152, 219, 0.7));
    z-index: -1;
}

.hero-content {
    animation: scaleIn 1s ease-out;
}

.hero h1 {
    animation: slideInLeft 1s ease-out;
}

.hero h2 {
    animation: slideInRight 1s ease-out 0.3s backwards;
}

.hero p {
    animation: slideInLeft 1s ease-out 0.6s backwards;
}

.hero .contact-info {
    animation: slideInRight 1s ease-out 0.9s backwards;
}

/* Enhanced Section Transitions */
section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Cards */
.education-item,
.experience-item,
.publication-item,
.competency-category {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.education-item::before,
.experience-item::before,
.publication-item::before,
.competency-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.05), rgba(52, 152, 219, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.education-item:hover::before,
.experience-item:hover::before,
.publication-item:hover::before,
.competency-category:hover::before {
    opacity: 1;
}

.education-item:hover,
.experience-item:hover,
.publication-item:hover,
.competency-category:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 5px 20px rgba(44, 62, 80, 0.15);
}

/* Enhanced Lists */
.achievements li,
.experience-item ul li,
.competency-category ul li {
    transition: transform 0.3s ease;
    padding-left: 1.5rem;
}

.achievements li:hover,
.experience-item ul li:hover,
.competency-category ul li:hover {
    transform: translateX(10px);
}

/* Enhanced Contact Section */
.contact-info a {
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: var(--white);
    transition: all 0.3s ease;
}

.contact-info a:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 5px solid var(--white);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: var(--white);
        flex-direction: column;
        padding: 5rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        padding: 1rem 0;
        display: block;
    }
}

/* Dropdown Styles */
.dropdown-content {
    display: none;
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dropdown-content.show {
    display: block;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    background: var(--light-bg);
}

.dropdown-toggle i {
    transition: transform 0.3s ease;
}

.dropdown-toggle.active i {
    transform: rotate(180deg);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .education-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .education-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .education-grid {
        grid-template-columns: 1fr;
    }
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0.75rem;
    height: 100%;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: var(--accent-color);
}

.timeline-content {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(44, 62, 80, 0.1);
}

.timeline-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-subtitle {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Collapsible content */
.collapsible {
    background-color: var(--light-bg);
    color: var(--primary-color);
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 0.9rem;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    margin-bottom: 1rem;
}

.collapsible:after {
    content: '\002B';
    color: var(--accent-color);
    font-weight: bold;
    float: right;
    margin-left: 5px;
    font-size: 1.2rem;
}

.collapsible.active:after {
    content: "\2212";
}

.timeline-description {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.timeline-description ul {
    padding: 0 18px;
    margin-top: 15px;
    list-style-type: disc;
}

.timeline-description li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

@media (min-width: 768px) {
    .timeline::before {
        left: 50%;
    }
    
    .timeline-item {
        padding-left: 0;
        width: 50%;
    }
    
    .timeline-item:nth-child(odd) {
        padding-right: 2.5rem;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 50%;
        padding-left: 2.5rem;
    }
    
    .timeline-item:nth-child(odd)::before {
        left: auto;
        right: -0.75rem;
    }
    
    .timeline-item:nth-child(even)::before {
        left: -0.75rem;
    }

    /* Keep content left-aligned regardless of timeline position */
    .timeline-content {
        text-align: left;
    }

    .timeline-item:nth-child(odd) .timeline-content {
        text-align: left;
    }

    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
    }

    .timeline-title,
    .timeline-subtitle,
    .timeline-date,
    .timeline-description {
        text-align: left;
    }
}

/* Education Section Dropdowns */
.education-description {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    position: relative;
    z-index: 0;
}

.education-item .collapsible {
    background-color: var(--bg-color);
    color: var(--primary-color);
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 0.9rem;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    margin: 1rem 0;
    position: relative;
    z-index: 1;
}

.education-item .collapsible:after {
    content: '\002B';
    color: var(--primary-color);
    font-weight: bold;
    float: right;
    margin-left: 5px;
    font-size: 1.2rem;
}

.education-item .collapsible.active:after {
    content: "\2212";
}

.education-item .collapsible:hover {
    background-color: rgba(44, 62, 80, 0.05);
}

.education-item .achievements {
    padding: 0 18px;
    margin-top: 15px;
    list-style-type: disc;
    position: relative;
    z-index: 0;
    user-select: text;
}

.education-item .achievements li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    transition: transform 0.3s ease;
    user-select: text;
}

.education-item .achievements li:hover {
    transform: translateX(10px);
}

.education-item h3,
.education-item p {
    user-select: text;
}

/* Timeline Description Styles */
.timeline-description {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    position: relative;
    z-index: 0;
    user-select: text;
}

.timeline-content .collapsible {
    position: relative;
    z-index: 1;
}

.timeline-content ul li {
    user-select: text;
} 
