/* ===== VARIABLES ===== */
:root {
    /* Light Theme (default) */
    --primary-color: #2563eb;
    --secondary-color: #f59e0b;
    --dark-blue: #1e3a8a;
    --light-blue: #93c5fd;
    --bg-color: #f9fafb;
    --card-bg: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #f9fafb;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --radius: 8px;
    --footer-bg: #111827;
}

/* Dark Theme */
.dark-theme {
    --primary-color: #3b82f6;
    --secondary-color: #f59e0b;
    --dark-blue: #1e40af;
    --light-blue: #1e3a8a;
    --bg-color: #111827;
    --card-bg: #1f2937;
    --text-primary: #f9fafb;
    --text-secondary: #e5e7eb;
    --text-light: #f9fafb;
    --border-color: #374151;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
    --footer-bg: #0f172a;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.primary-btn:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    transform: translateY(-3px);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
}

/* ===== SECTION HEADERS ===== */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    background-color: var(--light-bg);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: var(--primary-color);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    cursor: pointer;
    margin-right: 20px;
    z-index: 10;
}

.theme-toggle i {
    color: var(--text-light);
    font-size: 14px;
    z-index: 11;
    pointer-events: none;
}

.toggle-ball {
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: var(--text-light);
    border-radius: 50%;
    left: 3px;
    transition: var(--transition);
    z-index: 9;
}

.dark-theme .toggle-ball {
    left: 33px;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-color);
    position: relative;
    padding-top: 5rem;
    transition: background-color 0.3s ease;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    max-width: 450px;
}

.hero-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    transition: var(--transition);
}

.hero-image img:hover {
    transform: scale(1.02);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.hero-scroll a {
    font-size: 1.5rem;
    color: var(--primary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* ===== ABOUT SECTION ===== */
.about {
    background-color: var(--bg-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-code-animation {
    flex: 1;
}

.code-editor {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.code-editor:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.code-header {
    background-color: var(--text-primary);
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

.dot:nth-child(1) {
    background-color: #ff5f56;
}

.dot:nth-child(2) {
    background-color: #ffbd2e;
}

.dot:nth-child(3) {
    background-color: #27c93f;
}

.code-header .title {
    margin-left: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.code-content {
    padding: 1rem;
    overflow-x: auto;
}

.code-content pre {
    margin: 0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.code-content .keyword {
    color: #569cd6;
}

.code-content .class {
    color: #4ec9b0;
}

.code-content .string {
    color: #ce9178;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.cv-download {
    margin-bottom: 1.5rem;
}

.cv-download .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.personal-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item span {
    font-weight: 600;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--text-light);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--dark-blue);
    transform: translateY(-5px);
}

/* ===== EXPERIENCE SECTION ===== */
.experience {
    background-color: var(--light-bg);
    position: relative;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 2px;
    background-color: var(--primary-color);
    left: 50px;
    top: 0;
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
}

.timeline-icon {
    width: 100px;
    height: 100px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 2rem;
    z-index: 2;
    box-shadow: var(--shadow);
}

.timeline-content {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-left: 2rem;
    flex: 1;
    position: relative;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.timeline-content::before {
    content: '';
    position: absolute;
    border-style: solid;
    border-width: 10px 15px 10px 0;
    border-color: transparent white transparent transparent;
    top: 30px;
    left: -15px;
}

.timeline-content .date {
    display: inline-block;
    background-color: var(--light-blue);
    color: var(--dark-blue);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.timeline-content h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-gray);
}

.timeline-content p {
    margin-bottom: 1rem;
}

.timeline-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.timeline-content ul li {
    position: relative;
    margin-bottom: 0.5rem;
}

.timeline-content ul li::before {
    content: '•';
    position: absolute;
    left: -1rem;
    color: var(--primary-color);
}

.company-link, .institution-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.company-link:hover, .institution-link:hover {
    color: var(--dark-blue);
}

/* ===== EDUCATION SECTION ===== */
.education {
    background-color: var(--light-bg);
}

.education-item {
    display: flex;
    margin-bottom: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.education-icon {
    width: 100px;
    height: 100px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 2rem;
    z-index: 2;
    box-shadow: var(--shadow);
}

.education-content {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-left: 2rem;
    flex: 1;
    position: relative;
    transition: var(--transition);
}

.education-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.education-content::before {
    content: '';
    position: absolute;
    border-style: solid;
    border-width: 10px 15px 10px 0;
    border-color: transparent white transparent transparent;
    top: 30px;
    left: -15px;
}

.education-content .date {
    display: inline-block;
    background-color: var(--light-blue);
    color: var(--dark-blue);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.education-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.education-content h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-gray);
}

/* ===== SKILLS SECTION ===== */
.skills {
    background-color: var(--bg-color);
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.category-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.skills-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
}

.skill-card-item {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.skill-card-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.skill-card-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-card-item h4 {
    font-size: 1rem;
    color: var(--text-primary);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tech-stack span {
    background-color: var(--light-blue);
    color: var(--dark-blue);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    transition: var(--transition);
}

.tech-stack span:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
}

.soft-skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.soft-skill {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.soft-skill:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.soft-skill i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.soft-skill h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.soft-skill p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    background-color: var(--light-bg);
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.github-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    height: 100%;
}

.github-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.github-card i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.github-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.github-card p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.github-card .btn {
    margin-top: 1rem;
}

.project-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.project-content p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tags span {
    background-color: var(--light-blue);
    color: var(--dark-blue);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--text-light);
    transition: var(--transition);
}

.project-links a:hover {
    background-color: var(--dark-blue);
    transform: translateY(-3px);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background-color: var(--bg-color);
}

.contact-content {
    display: flex;
    justify-content: center;
}

.contact-info {
    width: 100%;
    max-width: 800px;
    display: grid;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-item i {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.2rem;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.contact-form {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--footer-bg);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: var(--text-gray);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--text-dark);
    color: var(--text-light);
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--dark-blue);
    transform: translateY(-5px);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .personal-info {
        grid-template-columns: 1fr;
    }

    .social-links {
        justify-content: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }

    .timeline-content {
        margin-left: 1rem;
    }

    .skills-categories {
        grid-template-columns: 1fr;
    }

    .soft-skills {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-btns {
        flex-direction: column;
    }

    .projects-filter {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }
}

/* Theme Switch Styles */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    display: inline-flex;
    align-items: center;
    height: 34px;
    position: relative;
    width: 70px;
    cursor: pointer;
}

.theme-switch input {
    display: none;
}

.theme-icon {
    font-size: 16px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.theme-icon-light {
    left: 6px;
    color: #f59e0b;
}

.theme-icon-dark {
    right: 6px;
    color: #1e40af;
    opacity: 0;
}

.slider {
    background-color: #3b82f6; /* Primary blue background */
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    opacity: 0.5;
}

.slider:before {
    background-color: white;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background-color: #3b82f6;
    opacity: 1;
}

input:checked + .slider:before {
    transform: translateX(36px);
}

input:checked ~ .theme-icon-light {
    opacity: 0;
}

input:checked ~ .theme-icon-dark {
    opacity: 1;
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Dark theme adjustments */
.dark-theme .slider {
    background-color: #3b82f6;
    opacity: 1;
}

.dark-theme .slider:before {
    background-color: white;
}

/* Dark theme text color improvements */
.dark-theme .date {
    color: #93c5fd; /* Lighter blue for better readability */
}

.dark-theme .timeline-content .date {
    background-color: #1e40af; /* Darker background for contrast */
    color: #e5e7eb; /* Lighter text */
}

.dark-theme .timeline-content h3 {
    color: #60a5fa; /* Softer blue for headings */
}

.dark-theme .timeline-content h4 {
    color: #9ca3af; /* Softer gray for secondary text */
}

/* Improved dark mode text contrast */
.dark-theme .project-content h3 {
    color: #60a5fa; /* Softer blue for project titles */
}

.dark-theme .project-content p {
    color: #9ca3af; /* Lighter gray for project descriptions */
}

.dark-theme .project-tags span {
    background-color: #1e40af;
    color: #93c5fd;
}

.dark-theme .timeline-content .date {
    background-color: #1e40af;
    color: #e5e7eb;
}

.dark-theme .timeline-content h3 {
    color: #60a5fa;
}

.dark-theme .timeline-content h4 {
    color: #9ca3af;
}

.top-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-contact-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--text-light);
    transition: var(--transition);
}

.top-contact-item i {
    font-size: 1.2rem;
}

.top-contact-item:hover {
    background-color: var(--dark-blue);
    transform: translateY(-3px);
}


/*Contact Section*/
.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.contact-icon-link .contact-icon:hover {
    background-color: var(--dark-blue);
    transform: translateY(-3px);
}

.contact-icon {
    font-size: 1.2rem;
}

.contact-item > div {
    flex-grow: 1;
}

/* ===== MOBILE RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 992px) {
    /* General Mobile Adjustments */
    body {
        font-size: 16px;
    }

    /* Hero Section */
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text h2 {
        font-size: 1.8rem;
    }

    .hero-image {
        max-width: 300px;
        margin-bottom: 2rem;
    }

    .hero-btns {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    /* About Section */
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-code-animation, .about-text {
        width: 100%;
    }

    .personal-info {
        grid-template-columns: 1fr;
    }

    .social-links {
        justify-content: center;
    }

    /* Experience and Education */
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column;
        margin-bottom: 2rem;
    }

    .timeline-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
        align-self: flex-start;
    }

    .timeline-content {
        margin-left: 0;
        width: 100%;
    }

    /* Skills Section */
    .skills-categories {
        grid-template-columns: 1fr;
    }

    .skills-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Projects Section */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Contact Section */
    .contact-content {
        flex-direction: column;
    }

    .contact-info {
        width: 100%;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .contact-icon {
        margin-bottom: 1rem;
        align-self: flex-start;
    }

    /* Navigation */
    header .container {
        position: relative;
    }

    .top-contact {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--card-bg);
        display: none;
        justify-content: center;
        gap: 1rem;
        padding: 0.5rem;
        box-shadow: var(--shadow-sm);
        z-index: 10;
    }

    header.menu-open .top-contact {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: 0.3s;
        z-index: 1000;
    }

    .nav-links.active {
        left: 0;
    }

    .logo {
        z-index: 1001;
    }

    .hamburger {
        display: block;
        z-index: 1002;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .theme-switch-wrapper {
        z-index: 1001;
        margin-right: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }

    .skills-cards {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
    }

    .timeline-content h4 {
        font-size: 1rem;
    }

    .top-contact-item {
        width: 40px;
        height: 40px;
    }
}

.hero-image img {
    border-radius: 50%;  /* Makes the image perfectly round */
    box-shadow: var(--shadow-lg);  /* Keeps your existing shadow */
    object-fit: cover;
    transition: var(--transition);
    border: none;  /* Removes any border */
    background-color: transparent;  /* Ensures no background color */
    width: 100%;  /* Ensures the image takes the full width of its container */
    height: auto;  /* Maintains aspect ratio */
    max-width: 300px;  /* Controls the maximum size */
    margin: 0 auto;  /* Centers the image */
    display: block;  /* Ensures proper display mode */
}

/* Add hover effect */
.hero-image img:hover {
    transform: scale(1.05);  /* Keeps your existing scale effect */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);  /* Enhanced shadow on hover */
}

/* Make sure container doesn't have a border */
.hero-image {
    border: none;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}
