:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background-color: #f8fafc;
    --card-background: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --theme-gradient: linear-gradient(135deg, #3b82f6, #2563eb);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

nav {
    background-color: var(--card-background);
    padding: 1rem 2rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: var(--primary-color);
    color: white;
}

header {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--theme-gradient);
    color: white;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></svg>') repeat;
    opacity: 0.1;
    z-index: 1;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.theme-container {
    margin: 2rem 0;
    position: relative;
    z-index: 2;
}

.theme-text {
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-out;
    letter-spacing: 0.5px;
}
.theme-text-nil{
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-out;
    letter-spacing: 0.5px;
}

.theme-text::before {
    content: '•';
    margin: 0 1rem;
    color: #e2e8f0;
    font-weight: 300;
}

.theme-subtext {
    font-size: 1.5rem;
    font-weight: 500;
    opacity: 0.9;
    color: #e2e8f0;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.header-description {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 1rem 0;
    position: relative;
    z-index: 2;
}

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

header img {
    border-radius: 50%;
    margin-top: 2rem;
    border: 4px solid white;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: transform 0.3s ease;
}

header img:hover {
    transform: scale(1.05);
}

section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--card-background);
    border-radius: 1rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: transform 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
}

section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

section p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

section a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

section a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

footer {
    background-color: var(--card-background);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
    box-shadow: 0 -4px 6px var(--shadow-color);
}

footer p {
    margin-bottom: 1rem;
    color: var(--light-text);
}

footer a {
    margin: 0 1rem;
    transition: transform 0.3s ease;
}

footer a:hover {
    transform: scale(1.1);
}

footer img {
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px var(--shadow-color);
}

/* Books Grid Styles */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0;
    list-style: none;
}

.book-item {
    background: var(--card-background);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: transform 0.3s ease;
}

.book-item:hover {
    transform: translateY(-5px);
}

.book-item a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-color);
}

.book-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.book-info {
    padding: 1.5rem;
    color: #fff;
}

.book-info h3 {
    margin: 0 0 0.5rem 0;
    color: #fff;
    font-size: 1.2rem;
}

.book-info p {
    margin: 0.5rem 0;
    color: #fff;
    font-size: 1rem;
}

.book-info p:last-child {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 0.75rem;
    border-top: 1px solid var(--shadow-color);
    padding-top: 0.75rem;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    nav a {
        display: block;
        width: 100%;
        text-align: center;
    }

    header {
        padding: 3rem 1rem;
    }

    header h1 {
        font-size: 2rem;
    }

    section {
        margin: 1rem;
        padding: 1.5rem;
    }
}

/* Animation for smooth page transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.6s ease-out;
}

/* Experience Styles */
.experience-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-background);
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px var(--shadow-color);
    transition: transform 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-3px);
}

.experience-item h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.company {
    color: var(--light-text);
    font-weight: 500;
    margin-bottom: 1rem;
}

.experience-item ul {
    list-style: none;
    padding-left: 1rem;
}

.experience-item li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.experience-item li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Award Styles */
.award-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-background);
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px var(--shadow-color);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.award-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.award-item h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.award-date {
    color: var(--light-text);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.award-description {
    color: var(--text-color);
    line-height: 1.6;
}
