:root {
    --primary-color: #333;
    --background-color: #fff;
    --text-color: #666;
    --hover-color: #0070f3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 360px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.hero {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 1rem;
    gap: 1rem;
}

.hero-content {
    flex: 1;
    max-width: 75%;
    order: 1;
}

h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    font-weight: 700;
}

h1 span.hi {
    display: block;
    margin-bottom: 0.2rem;
    font-weight: 700;
}

h1 span.name {
    display: block;
    font-weight: 700;
}

.wave {
    display: inline-block;
    animation: wave 2s infinite;
    margin-left: 0.25rem;
}

.subtitle {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
    margin-top: 0.75rem;
}

.profile-image {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0;
    order: 2;
    flex-shrink: 0;
}

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

section {
    margin-bottom: 3rem;
}

h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.experience-items {
    display: flex;
    flex-direction: column;
    gap: 0.17rem;
}

.experience-item {
    border-radius: 8px;
    margin-bottom: 0.17rem;
    display: flex;
    flex-direction: column;
    padding: 0.17rem 0;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.17rem 0;
}

.company-info {
    display: flex;
    gap: 0.7rem;
    align-items: center;
}

.company-logo {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    overflow: hidden;
}

.company-logo img {
    width: 38px;
    height: 38px;
    border-radius: 6px;
}

.experience-details h3 {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0;
    line-height: 1.2;
}

.toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 1.2rem;
    color: inherit;
    transition: transform 0.3s ease;
    font-weight: bold;
}

.toggle-btn.active {
    transform: rotate(90deg);
}

.duration {
    margin: 0;
    color: #666;  /* Color for light theme */
}

/* Make date more visible in dark theme */
[data-theme="dark"] .duration {
    color: #999;  /* Lighter gray for dark theme */
}

/* Desktop adjustments */
@media (min-width: 769px) {
    .duration {
        font-size: 1rem;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .duration {
        font-size: 0.95rem;
    }
}

.experience-details p {
    margin: 0.2rem 0;
    line-height: 1.3;
}

.experience-description {
    margin-top: 0.3rem;
    margin-bottom: 0.3rem;
    padding-left: calc(35px + 1.5rem);
    padding-right: 1rem;
    border-left: 2px solid #eee;
    margin-left: 15px;
    width: 100%;
}

.hidden {
    display: none;
}

/* Social links styles */
.social-links {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(246, 246, 246, 0.95);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    gap: 1.2rem;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.social-icon {
    position: relative;
    font-size: 1.2rem;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;  /* Add fixed width */
    height: 24px; /* Add fixed height */
}

/* Tooltip styles */
.social-icon::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background-color: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.social-icon:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

.social-icon:hover {
    color: #000;  /* Darker on hover */
    transform: translateY(-2px);
}

/* Dark mode styles */
[data-theme="dark"] {
    --primary-color: #fff;
    --background-color: #000;
    --text-color: #e0e0e0;
}

[data-theme="dark"] .social-links {
    background-color: #1a1a1a;  /* Darker background in dark mode */
    border: 1px solid #333;
}

[data-theme="dark"] .social-icon {
    color: #888;  /* Lighter gray in dark mode */
}

[data-theme="dark"] .social-icon:hover {
    color: #fff;  /* White on hover in dark mode */
}

[data-theme="dark"] .social-icon::after {
    background-color: #fff;
    color: #000;
}

/* Theme toggle specific styles */
.theme-toggle {
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

[data-theme="dark"] .theme-toggle {
    color: #fff;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .social-links {
        padding: 0.5rem 1rem;
        gap: 1rem;
    }

    .social-icon {
        font-size: 1.1rem;
    }
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.about {
    max-width: 100%;
    padding: 0;
    margin-top: 1rem;
}

.about h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.about p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
}

.work-experience {
    margin-top: 2rem;
}

.work-experience h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.experience-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.experience-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.experience-details h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.experience-details p {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Education Timeline Styles */
.education-timeline {
    position: relative;
    padding-left: 5rem;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 4rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #eee;
}

.education-item {
    position: relative;
    margin-bottom: 2rem;
}

.education-item:last-child {
    margin-bottom: 0;
}

.timeline-date {
    position: absolute;
    left: -1rem;
    background-color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #000;
    border: 1px solid #eee;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 1;
}

/* Dark mode timeline date */
[data-theme="dark"] .timeline-date {
    background-color: #000;
    color: #fff;
    border-color: #333;
}

/* Base timeline styles */
.timeline-date::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 50%;
    width: 1rem;
    height: 2px;
    background-color: #eee;
    display: block;  /* Make it visible by default */
}

/* Desktop adjustments */
@media (min-width: 769px) {
    .timeline-date::after {
        width: 2rem;
        right: -2rem;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .timeline-date::after {
        width: 1.2rem;  /* Slightly shorter for mobile */
        right: -1.2rem;
    }
}

.timeline-content {
    position: relative;
    padding-left: 2rem;
    padding-right: 0.5rem;
    width: 100%;
}

.timeline-content h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-content .degree {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.timeline-content .description {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* Skills section styles */
.section-header {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
    padding: 0;
}

/* Remove the header lines */
.header-line {
    display: none;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0.3rem;
    transition: transform 0.3s ease;
}

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

.skill-item img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.skill-item span {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Dark mode adjustments */
[data-theme="dark"] .header-line {
    background-color: #00E5FF;  /* Keep cyan color in dark mode */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .section-header {
        padding-left: 1rem;
    }

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

    .skills-container {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .skill-item {
        gap: 1rem;
        padding: 0.2rem;
    }

    .skill-item img {
        width: 30px;
        height: 30px;
    }

    .skill-item span {
        font-size: 1rem;
    }
}

/* Desktop adjustments */
@media (min-width: 769px) {
    .skills-container {
        gap: 1rem;
    }

    .skill-item {
        padding: 0.3rem;
    }

    .skill-item img {
        width: 40px;
        height: 40px;
    }

    .skill-item span {
        font-size: 1.2rem;
    }
}

@media (min-width: 769px) {
    .container {
        max-width: 1000px;
        padding: 4rem 2rem;
    }

    .hero {
        flex-direction: row;
        text-align: left;
        margin-bottom: 1.5rem;
        gap: 1rem;
        align-items: flex-start;
    }

    .hero-content {
        order: 1;
        max-width: 800px;
    }

    h1 {
        font-size: 4.5rem;
        line-height: 1.1;
        margin-bottom: 1rem;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }

    h1 span.hi {
        margin-bottom: 0;
        display: inline;
    }

    h1 span.name {
        display: inline;
    }

    .subtitle {
        font-size: 1.5rem;
        margin-top: 1rem;
        max-width: 600px;
    }

    .profile-image {
        width: 200px;
        height: 200px;
        margin-left: 1rem;
        margin-top: 0;
        order: 2;
    }

    .about {
        max-width: 800px;
        padding: 0;
        margin-top: 1rem;
        margin-bottom: 1.5rem;
    }

    .about h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .about p {
        font-size: 1.1rem;
        line-height: 1.6;
        color: var(--text-color);
    }

    .work-experience {
        margin-top: 2rem;
    }

    .work-experience h2 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .experience-items {
        max-width: 800px;
        gap: 0.17rem;
    }

    .experience-item {
        padding: 0.17rem 0;
    }

    .company-logo {
        width: 50px;
        height: 50px;
    }

    .experience-details h3 {
        font-size: 1.3rem;
    }

    .experience-description {
        padding-left: calc(50px + 2.5rem);
        font-size: 1.1rem;
    }

    .social-links {
        bottom: 2rem;
        padding: 0.6rem 1.2rem;
        gap: 1.5rem;
    }

    .social-icon {
        font-size: 1.4rem;
    }

    .education-timeline {
        padding-left: 3rem;
    }

    .timeline-date {
        left: -3.5rem;
        font-size: 1rem;
    }

    .timeline-content h3 {
        font-size: 1.3rem;
    }

    .timeline-content .degree {
        font-size: 1.1rem;
    }

    .timeline-content .description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .experience-description {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        padding-left: 1.5rem;
        padding-right: 0.5rem;
        margin-left: 15px;
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .education-timeline {
        padding-left: 5.5rem;
    }

    .education-timeline::before {
        left: 4.5rem;
    }

    .timeline-date {
        left: -1rem;
        font-size: 0.85rem;
        padding: 0.25rem 0.7rem;
    }

    .timeline-content {
        padding-right: 0.5rem;
        padding-left: 1.5rem;
        font-size: 0.9rem;
        width: calc(100% - 1rem);
    }

    .timeline-content h3 {
        font-size: 1rem;
        line-height: 1.4;
        word-break: normal;
        white-space: normal;
    }
}

/* Projects section styles */
.projects {
    padding: 2rem 0;
}

.projects-header {
    text-align: center;
    margin-bottom: 3rem;
}

.projects-header .tag {
    display: inline-block;
    background-color: #fff;
    color: #000;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .projects-header .tag {
    background-color: #1a1a1a;
    color: #fff;
}

.projects-header h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.projects-header .description {
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.project-card {
    background-color: var(--background-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #333;  /* Added border */
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.8rem;  /* Increased from 1.5rem */
    font-weight: 700;   /* Made slightly bolder */
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.project-content .date {
    font-size: 1rem;    /* Increased from 0.9rem */
    color: var(--text-color);
    margin-bottom: 1rem;
}

.project-content .description {
    font-size: 1.2rem;  /* Increased from 1rem */
    color: var(--text-color);
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tech {
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    background-color: #333;
    color: #fff;
    transition: all 0.3s ease;  /* Added transition */
}

.tech:hover {
    background-color: #555;  /* Lighter background on hover */
    transform: translateY(-2px);  /* Slight lift effect */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);  /* Subtle shadow */
}

/* Dark mode tech stack hover */
[data-theme="dark"] .tech {
    background-color: #fff;
    color: #000;
}

[data-theme="dark"] .tech:hover {
    background-color: #e0e0e0;  /* Slightly darker white on hover */
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

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

.link-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #333;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.link-button i {
    font-size: 1rem;
}

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

[data-theme="dark"] .project-card {
    border-color: #444;
}

[data-theme="dark"] .link-button {
    border-color: #444;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .projects-header h2 {
        font-size: 2.5rem;
        padding: 0 1rem;
    }

    .projects-header .description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .tech {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }

    .link-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .project-content h3 {
        font-size: 1.6rem;  /* Increased for mobile */
    }

    .project-content .date {
        font-size: 0.95rem;
    }

    .project-content .description {
        font-size: 1.1rem;
    }
}

/* Contact section styles */
.contact {
    text-align: center;
    padding: 4rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-tag {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;  /* Add transition for smooth effect */
    cursor: pointer;  /* Add pointer cursor */
}

.contact-tag:hover {
    background-color: #333;  /* Lighter black on hover */
    transform: translateY(-2px);  /* Slight lift effect */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);  /* Add shadow on hover */
}

/* Dark mode hover effects */
[data-theme="dark"] .contact-tag {
    background-color: #fff;
    color: #000;
}

[data-theme="dark"] .contact-tag:hover {
    background-color: #e0e0e0;  /* Slightly darker white on hover */
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

.contact-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.contact-description {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-color);
}

.social-link {
    color: #0070f3;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover {
    text-decoration: underline;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .contact {
        padding: 2rem 1rem;
    }

    .contact-title {
        font-size: 2.5rem;
    }

    .contact-description {
        font-size: 1.2rem;
    }
} 
} 