/* Base Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --text-color: #333;
    --bg-color: #f9f9f9;
    --card-bg: #fff;
    --nav-bg: #fff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --text-light: #777;
    --timeline-color: #eee;
}

[data-theme="dark"] {
    --primary-color: #4da6ff;
    --secondary-color: /*#1a1a2e*/ white ;
    --text-color: #f0f0f0;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --nav-bg: #1a1a1a;
    --border-color: #333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --text-light: #aaa;
    --timeline-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.aboutme{
    margin-top: 20px;
}

p {
    margin-bottom: 15px;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* Header & Navigation */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: var(--nav-bg);
    box-shadow: var(--shadow);
    transition: background-color 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    gap: 20px;
}

.logo {
    font-size: 1.5rem;
    margin-left: 12px;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    margin-left: 10px;
    margin-right: 10px;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#theme-toggle:hover {
    transform: scale(1.1) rotate(30deg);
    background-color: var(--primary-color);
    color: white;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 30px;
}

.profile-img {
    flex: 1;
    max-width: 300px;
}

.profile-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-text {
    flex: 2;
}

/* Timeline (Education & Experience) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--timeline-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-date {
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
}

.timeline-content {
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.timeline-content h3 {
    margin-bottom: 10px;
}

.timeline-content p {
    margin-bottom: 5px;
}

.timeline-content ul {
    padding-left: 20px;
    margin-top: 10px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--card-bg);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

/* Skills Section */
.skills-container {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.skills-column {
    flex: 1;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.skills-list {
    list-style-type: none;
}

.skills-list li {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-point {
    background-color: var(--primary-color);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3 {
    padding: 0 20px;
    margin-top: 15px;
}

.project-card p {
    padding: 0 20px;
    margin-bottom: 20px;
}

.project-links {
    display: flex;
    justify-content: space-between;
    padding: 0 20px 20px;
}

.project-links .btn {
    width: 48%;
    text-align: center;
}

/* ===== Modern Centered Contact Section ===== */
.contactme{
    text-align: center;
}

.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.contact-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow);
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.contact-subtitle {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.1rem;
}

.contact-item i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-item .fab {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

/* Specific icon colors (optional) */
.contact-item .fa-linkedin {
    color: #0077b5; /* LinkedIn blue */
}

.contact-item .fa-github {
    color: #333; /* GitHub black */
}

[data-theme="dark"] .contact-item .fa-github {
    color: #f5f5f5; /* Light color for dark mode */
}

.qr-section {
    margin-top: 30px;
}

.qr-caption {
    margin-bottom: 15px;
    color: var(--text-light);
}

.qr-code {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    display: block;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    background: white;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    background-color: var(--nav-bg);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .profile-img {
        max-width: 250px;
        margin-bottom: 30px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item::after {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 20px;
    }
    
    .skills-container {
        flex-direction: column;
    }
    
    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        margin-right: 10px;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--nav-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
    }

    .skills-container {
        flex-direction: column;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    #theme-toggle {
        margin-left: auto;
        margin-right: 10px;
        order: 1;
    }
    
    .logo {
        order: 0;
    }
    
    .hamburger {
        order: 2;
    }
    
    .hamburger.active .line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .contact-card {
        padding: 30px 20px;
    }
    
    .contact-item {
        font-size: 1rem;
    }
    
    .qr-code {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 60px 0;
    }
    
    .project-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .project-links .btn {
        width: 100%;
    }

}





