:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --text: #333;
    --text-light: #777;
    --dark-headings: #3498db;
    --time-line-content: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --Imgshadow: 0 5px 15px rgba(0, 0, 0, 0.473);
    --transition: all 0.3s ease;
}

.dark-theme {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #0f3460;
    --light: #16213e;
    --dark: #0f3460;
    --text: #e6e6e6;
    --text-light: #b3b3b3;
    --dark-headings: #903bff;
    --time-line-content: #903bff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --Imgshadow: 0 5px 15px rgba(0, 24, 160, 0.582);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

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

/* Header & Navigation */
header {
    background-color: var(--primary);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: var(--dark-headings);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--dark-headings);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--dark-headings);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.theme-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 2rem;
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--dark-headings);
    transform: rotate(30deg);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,192C1248,192,1344,128,1392,96L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.2);
    margin: 0 auto 30px;
    overflow: hidden;
    box-shadow: var(--Imgshadow);
    transition: all 0.2s ease-in-out;
}

.profile-img:hover {
    transform: scale(1.2);
    box-shadow: 5px 5px rgba(255, 255, 255, 0.267);
    transition: all 0.2s ease-in-out;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

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

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

.cta-button {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark-headings);
    display: inline-block;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--dark-headings);
    border-radius: 2px;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark-headings);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.skill {
    background-color: var(--dark-headings);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

.about-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.code-box {
    background-color: var(--dark);
    color: #00ff00;
    padding: 30px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.code-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.2);
}

.code-line {
    margin-bottom: 10px;
}

.code-comment {
    color: #888;
}

.code-keyword {
    color: #ff79c6;
}

.code-function {
    color: #50fa7b;
}

.code-string {
    color: #f1fa8c;
}

/* Experience Section */
.experience {
    background-color: rgba(52, 152, 219, 0.05);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: var(--secondary);
    transform: translateX(-50%);
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
    margin-bottom: 50px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    background-color: var(--time-line-content);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid white;
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    left: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid white;
}

.timeline-date {
    position: absolute;
    top: -15px;
    background-color: var(--secondary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.timeline-item:nth-child(odd) .timeline-date {
    right: -80px;
}

.timeline-item:nth-child(even) .timeline-date {
    left: -80px;
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text);
}

.timeline-content h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.education-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.education-header {
    background-color: var(--primary);
    color: white;
    padding: 20px;
    text-align: center;
}

.education-header h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.education-header .date {
    font-size: 0.9rem;
    opacity: 0.8;
}

.education-content {
    background-color: var(--time-line-content);
    padding: 25px;
}

.education-content h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.education-majors {
    list-style-type: none;
}

.education-majors li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.education-majors li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--secondary);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.project-img {
    height: 200px;
    background-color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.project-content {
    background-color: var(--time-line-content);
    padding: 25px;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.project-tags {
    
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tag {
    background-color: #ecf0f1;
    color: var(--secondary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Publications Section */
.publications {
    background-color: rgba(52, 152, 219, 0.05);
}

.publication-card {
    background-color: var(--time-line-content);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    transition: var(--transition);
}

.publication-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.publication-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.publication-card p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.publication-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.publication-link:hover {
    color: var(--primary);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
}

.contact .section-title h2 {
    color: white;
}

.contact .section-title h2::after {
    background-color: white;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.contact-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    transition: var(--transition);
}

.contact-link:hover {
    background-color: white;
    color: var(--secondary);
    transform: translateY(-5px);
}

/* Footer
footer {
    background-color: var(--dark);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}


@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        left: -10px;
        right: auto;
    }

    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -10px;
        border-right: 10px solid white;
        border-left: none;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--primary);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: var(--transition);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .contact-links {
        flex-wrap: wrap;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }
}






.credits {
    background-color: var(--primary);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.credits-content {
    max-width: 600px;
    margin: 0 auto;
}

.credits-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-headings);
}

.credits-logo img {
    height: 70px;
    width: 70px;
    border-radius: 20px;
}

.credits-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.credits-content strong {
    color: var(--dark-headings);
}

.credits-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.credits-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid transparent;
}

.credits-link:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

 Dark theme adjustments for credits 
.dark-theme .credits {
    background-color: var(--accent);
}

.dark-theme .credits-link {
    background-color: rgba(255, 255, 255, 0.15);
}

.dark-theme .credits-link:hover {
    background-color: var(--dark-headings);
}

 Responsive design for credits 
@media (max-width: 768px) {
    .credits-logo {
        font-size: 1.7rem;
    }

    .credits-links {
        flex-direction: column;
        align-items: center;
    }

    .credits-link {
        width: 200px;
        justify-content: center;
    }
} */



/* Footer with Credits */
footer {
    background-color: var(--dark);
    color: white;
    padding: 40px 0;
}

.footer-credits-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

/* Original Footer Styles */
.footer-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Credits Styles */
.credits-content {
    flex: 1;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.credits-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-headings);
}

.credits-logo img {
    height: 50px;
    width: 50px;
    border-radius: 15px;
}

.credits-content p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 300px;
}

.credits-content strong {
    color: var(--dark-headings);
}

.credits-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.credits-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.credits-link:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Dark theme adjustments */
.dark-theme footer {
    background-color: var(--accent);
}

.dark-theme .credits-link {
    background-color: rgba(255, 255, 255, 0.15);
}

.dark-theme .credits-link:hover {
    background-color: var(--dark-headings);
}

/* Responsive design */
@media (max-width: 768px) {
    .footer-credits-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-content {
        align-items: center;
    }

    .credits-content {
        text-align: center;
        align-items: center;
    }

    .credits-links {
        justify-content: center;
    }

    .credits-logo {
        font-size: 1.3rem;
    }

    .credits-logo img {
        height: 40px;
        width: 40px;
    }
}