:root {
  /* Base Theme - Blue */
  --primary: #2c3e50;
  --secondary: #3498db;
  --light: #ecf0f1;
  --dark: #2c3e50;
  --accent: #e74c3c;
  --text-color: #333;
  --card-bg: #ffffff;
  --card-border: #e0e0e0;
  --nav-bg: var(--secondary);
  --footer-bg: var(--dark);
  --skill-bg: var(--secondary);
  --timeline-color: var(--secondary);
  --btn-hover: #2980b9;
  --tech-tag-bg: var(--light);
  --skill-hover: #2980b9;
  --heading-color: #2c3e50; /* Blue theme */
  --card-heading-color: var(--heading-color);
}
/* Alternate Theme - Orange */
[data-theme="orange"] {
  --primary: #2c2c2c;
  --secondary: #dd6236;
  --light: #ede4d3;
  --dark: #000000;
  --accent: #8f1e00;
  --text-color: #000;
  --card-bg: #F7EEDD;
  --card-border: #c4bcab;
  --nav-bg: var(--primary);
  --footer-bg: var(--dark);
  --skill-bg: var(--secondary);
  --timeline-color: var(--secondary);
  --btn-hover: #d1542f;
  --tech-tag-bg: var(--light);
  --skill-hover: #d1542f;
  --heading-color: #2c2c2c;
  
}

/* Alternate Theme - Dark */
[data-theme="dark"] {
  --primary: #1a1a1a;
  --secondary: #5dade2;
  --light: #2c2c2c;
  --dark: #121212;
  --accent: #ff7f50;
  --text-color: #f5f5f5;
  --card-bg: #2c2c2c;
  --card-border: #444;
  --nav-bg: var(--primary);
  --footer-bg: var(--dark);
  --skill-bg: var(--secondary);
  --timeline-color: var(--secondary);
  --btn-hover: #4a9bd1;
  --tech-tag-bg: #444;
  --skill-hover: #4a9bd1;
  --heading-color: #f5f5f5;
}
/* Floating Theme Switcher */
.theme-switcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  background: transparent;
  padding: 0;
}

.theme-options {
  display: flex;
  gap: 8px;
}

.theme-option {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.3);
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.theme-option:hover {
  transform: scale(1.15);
}

.theme-option.active {
  border-color: white;
  box-shadow: 0 0 0 2px var(--accent);
}

/* Pure Color Indicators */
.theme-option[data-theme="blue"] { background: #3498db; }
.theme-option[data-theme="orange"] { background: #dd6236; }
.theme-option[data-theme="dark"] { background: #000000; }
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--light);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
  line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--primary);
    color: white;
    padding: 2rem 0;
    position: relative;
    border-bottom: 3px solid var(--secondary);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

.profile-text h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.profile-text p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-item i {
    color: var(--secondary);
}

nav {
    background-color: var(--nav-bg);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    /* color: var(--highlight); orange theme
    background-color: rgba(221, 98, 54, 0.1); */
    background-color: rgba(255, 255, 255, 0.2);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--highlight);
    background-color: white;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

section {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-title h2 {
    font-size: 2rem;
    display: inline-block;
    padding-bottom: 10px;
}

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-item {
    background-color: var(--skill-bg);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-3px);
    background-color: var(--skill-hover);
}

.education-item, .experience-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #ddd;
}

.education-item:last-child, .experience-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--timeline-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--secondary);
    border: 2px solid white;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 500;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--card-heading-color, var(--heading-color));
    transition: color 0.3s ease;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.8rem 0;
}

.tech-tag {
    background-color: var(--tech-tag-bg);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background-color: var(--secondary);
    color: white;
    transform: translateY(-2px);
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    top: 0;
    left: -100%;
    transition: all 0.3s ease;
}

.btn:hover::after {
    left: 100%;
}

.btn-primary {
    background-color: var(--secondary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(41, 128, 185, 0.4);
}

.btn-outline {
    border: 1px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background-color: var(--secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(41, 128, 185, 0.4);
}

footer {
    background-color: var(--footer-bg);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
}

.social-link {
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-link:hover {
    color: var(--secondary);
    transform: translateY(-5px) scale(1.1);
}

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

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

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .profile {
        flex-direction: column;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

