:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #0066cc;
    --background-light: #ffffff;
    --text-light: #2c3e50;
    --background-dark: #1a1a2e;
    --text-dark: #ffffff;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    --card-bg-light: #ffffff;
    --card-bg-dark: #16213e;
    --timeline-bg-light: #ffffff;
    --timeline-bg-dark: #16213e;
}

[data-bs-theme="dark"] {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --background-color: var(--background-dark);
    --text-color: var(--text-dark);
    --card-bg: var(--card-bg-dark);
    --timeline-bg: var(--timeline-bg-dark);
}

[data-bs-theme="light"] {
    --background-color: var(--background-light);
    --text-color: var(--text-light);
    --card-bg: var(--card-bg-light);
    --timeline-bg: var(--timeline-bg-light);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: all 0.3s ease;
    padding-top: 60px;
}

section {
    padding: 80px 0;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    padding: 120px 0 80px;
}

[data-bs-theme="dark"] #hero {
    background: linear-gradient(135deg, #16213e, #1f2937);
}

.profile-image-container {
    position: relative;
    width: 250px;
    height: 300px;
    margin: 0 auto 2rem;
    box-shadow: var(--card-shadow);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 4px solid var(--background-light);
    box-shadow: var(--card-shadow);
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    padding: 20px 30px;
    margin-bottom: 20px;
    border-left: 3px solid var(--accent-color);
    position: relative;
    background-color: var(--timeline-bg);
    border-radius: 0 15px 15px 0;
    box-shadow: var(--card-shadow);
    color: var(--text-color);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -11px;
    top: 25px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 4px solid var(--background-color);
    box-shadow: 0 0 0 3px var(--accent-color);
}

/* Timeline item hover effect */
.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Timeline item title */
.timeline-item h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Timeline item date/institution */
.timeline-item .text-muted {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Add animation for timeline dots */
.timeline-item::before {
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px var(--accent-color);
}

/* Skills */
.skill-item {
    background: var(--accent-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    margin: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.skill-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Shimmer effect on hover */
.skill-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255,255,255,0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.skill-item:hover::after {
    animation: shimmer 1s forwards;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .skill-item {
    background: var(--primary-color);
    color: var(--text-dark);
}

/* Add gap between skill items */
.gap-2 {
    gap: 0.5rem !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .skill-item {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

/* Contact Section */
.contact-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section backgrounds for dark mode */
[data-bs-theme="dark"] section.bg-light {
    background-color: #1f2937 !important;
}

[data-bs-theme="dark"] .navbar {
    background-color: #16213e !important;
}

[data-bs-theme="dark"] .navbar-light .navbar-nav .nav-link {
    color: var(--text-dark);
}

[data-bs-theme="dark"] footer.bg-light {
    background-color: #16213e !important;
    color: var(--text-dark);
}

[data-bs-theme="dark"] .text-dark {
    color: var(--text-dark) !important;
}

/* Text colors for dark mode */
[data-bs-theme="dark"] .text-muted {
    color: #a0aec0 !important;
}

[data-bs-theme="dark"] .card-title {
    color: var(--text-dark);
}

/* Section title for dark mode */
[data-bs-theme="dark"] .section-title {
    color: var(--text-dark);
}

/* Badge styling update */
.badge {
    padding: 8px 16px;
    font-size: 0.9rem;
}

[data-bs-theme="dark"] .badge.bg-light {
    background-color: #2d3748 !important;
    color: var(--text-dark) !important;
}

/* List styling */
.list-unstyled li {
    margin-bottom: 0.5rem;
}

/* Make all strong elements (labels) blue in dark mode */
[data-bs-theme="dark"] .list-unstyled strong,
[data-bs-theme="dark"] .card-body strong {
    color: #3498db;
}

/* If you want to specifically target the family section */
[data-bs-theme="dark"] #family .card-body strong {
    color: #3498db;
}

/* Slide animations */
.slide-in-left, .slide-in-right, .slide-in-bottom, .scale-up {
    opacity: 0;
    transition: all 0.8s ease;
    will-change: transform, opacity;
}

.slide-in-left {
    transform: translateX(-100px);
}

.slide-in-right {
    transform: translateX(100px);
}

.slide-in-bottom {
    transform: translateY(100px);
}

.scale-up {
    transform: scale(0.7);
}

/* When elements become visible */
.slide-in-left.visible,
.slide-in-right.visible,
.slide-in-bottom.visible,
.scale-up.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Section transitions */
section {
    position: relative;
    transition: all 0.5s ease;
    will-change: transform, opacity;
}

section.scrolling-up {
    transform: translateY(20px);
    opacity: 0.8;
}

section.scrolling-down {
    transform: translateY(-20px);
    opacity: 0.8;
}

/* Optimize animations */
.animate-on-scroll {
    will-change: transform, opacity;
}

/* Add this to prevent animation flicker */
.animate-on-scroll, 
.slide-in-left, 
.slide-in-right, 
.slide-in-bottom, 
.scale-up {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Card hover effects */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Timeline animations */
.timeline-item {
    transition: all 0.5s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
}

/* Parallax effect for hero section */
#hero {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateZ(-1px) scale(2);
    z-index: -1;
}

/* Remove both versions of the timeline vertical line */
/* Remove these blocks entirely */
/* .timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 3px;
    background-color: var(--accent-color);
    opacity: 0.3;
} */

/* And remove this block as well */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 3px;
    background-color: var(--accent-color);
    opacity: 0.1;
    left: -8px;
}

/* Keep only the timeline item styles */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    padding: 20px 30px;
    margin-bottom: 20px;
    border-left: 3px solid var(--accent-color);
    position: relative;
    background-color: var(--timeline-bg);
    border-radius: 0 15px 15px 0;
    box-shadow: var(--card-shadow);
    color: var(--text-color);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -11px;
    top: 25px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 4px solid var(--background-color);
    box-shadow: 0 0 0 3px var(--accent-color);
}

/* Download button styling */
.btn-primary {
    background-color: var(--accent-color);
    border: none;
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

[data-bs-theme="dark"] .btn-primary {
    background-color: var(--accent-color);
}

[data-bs-theme="dark"] .btn-primary:hover {
    background-color: var(--primary-color);
} 