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

:root {
    /* Light theme colors */
    --bg-color: #ffffff;
    --text-color: #000000;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --border-color: #e5e7eb;
    --hover-bg: #f3f4f6;
    --selection-bg: #000000;
    --selection-text: #ffffff;
    --gradient-from: rgba(255, 255, 255, 0.6);
    --gradient-to: rgba(255, 255, 255, 1);
}

body.dark-theme {
    /* Dark theme colors */
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-secondary: #9ca3af;
    --text-tertiary: #6b7280;
    --border-color: #1f2937;
    --hover-bg: #1f2937;
    --selection-bg: #ffffff;
    --selection-text: #000000;
    --gradient-from: rgba(0, 0, 0, 0.6);
    --gradient-to: rgba(0, 0, 0, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}

::selection {
    background-color: var(--selection-bg);
    color: var(--selection-text);
}

/* Theme Toggle */
.theme-toggle-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 50;
}

.theme-toggle {
    position: relative;
    display: flex;
    height: 32px;
    width: 56px;
    align-items: center;
    border-radius: 9999px;
    background-color: #f3f4f6;
    padding: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

body.dark-theme .theme-toggle {
    background-color: #ffffff;
}

.theme-toggle:hover {
    background-color: #e5e7eb;
}

body.dark-theme .theme-toggle:hover {
    background-color: #f9fafb;
}

.toggle-slider {
    display: flex;
    height: 24px;
    width: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease-in-out;
}

body.dark-theme .toggle-slider {
    background-color: #000000;
    transform: translateX(24px);
}

.sun-icon {
    color: #fb923c;
    fill: #fb923c;
}

/* Container */
.container {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    padding: 64px 12px 128px;
}

@media (min-width: 640px) {
    .container {
        padding: 96px 16px 160px;
    }
}

.main-content {
    width: 100%;
    max-width: 672px;
    text-align: center;
}

/* Hero Section */
.hero {
    width: 100%;
}

.profile-image-wrapper {
    position: relative;
    margin: 0 auto 8px;
    height: 160px;
    width: 160px;
    overflow: hidden;
}

@media (min-width: 640px) {
    .profile-image-wrapper {
        height: 224px;
        width: 224px;
    }
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
}

.profile-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: linear-gradient(to top, var(--gradient-to), var(--gradient-from), transparent);
    backdrop-filter: blur(1px);
}

.name {
    margin-bottom: 16px;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

@media (min-width: 640px) {
    .name {
        font-size: 4.5rem;
    }
}

.metadata {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

@media (min-width: 640px) {
    .metadata {
        font-size: 0.875rem;
    }
}

.separator {
    color: #d1d5db;
}

body.dark-theme .separator {
    color: #374151;
}

.clock-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-clock {
    font-variant-numeric: tabular-nums;
    font-size: 0.75rem;
}

@media (min-width: 640px) {
    .live-clock {
        font-size: 0.875rem;
    }
}

.timezone {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (min-width: 640px) {
    .timezone {
        font-size: 0.75rem;
    }
}

.music-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lofi-text {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.025em;
}

.music-btn {
    display: flex;
    height: 20px;
    width: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: all 0.3s;
}

.music-btn:hover {
    background-color: var(--hover-bg);
    color: var(--text-color);
}

.intro {
    width: 100%;
    text-align: left;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

@media (min-width: 640px) {
    .intro {
        font-size: 1.125rem;
    }
}

@media (min-width: 768px) {
    .intro {
        font-size: 1.25rem;
    }
}

.intro p {
    margin-bottom: 16px;
}

.intro p:last-child {
    margin-bottom: 0;
}

.link {
    color: var(--text-color);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.3s;
}

.link:hover {
    color: var(--text-secondary);
}

/* Sections */
.section {
    margin-top: 24px;
    margin-bottom: 64px;
    width: 100%;
    text-align: left;
}

.section-title {
    margin-bottom: 24px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
}

.section-description {
    width: 100%;
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

/* Experience */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.experience-item {
    position: relative;
}

.experience-header {
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (min-width: 640px) {
    .experience-header {
        flex-direction: row;
        align-items: baseline;
    }
}

.company-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.company-name {
    font-weight: 500;
    color: var(--text-color);
}

.company-link {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.3s;
}

.company-link:hover {
    color: var(--text-color);
}

.position {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.expandable-content {
    position: relative;
    font-size: 0.875rem;
    line-height: 1.75;
    color: var(--text-secondary);
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.expandable-content.collapsed {
    max-height: 80px;
}

.expandable-content.expanded {
    max-height: 2000px;
}

.content-text p {
    margin-bottom: 8px;
}

.gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: linear-gradient(to top, var(--gradient-to), transparent);
    pointer-events: none;
    transition: opacity 0.3s;
}

.expandable-content.expanded .gradient-overlay {
    opacity: 0;
}

.expand-btn {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-tertiary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}

.expand-btn:hover {
    color: var(--text-color);
}

.chevron {
    transition: transform 0.3s;
}

.expand-btn.expanded .chevron {
    transform: rotate(180deg);
}

.highlight-text {
    font-weight: 500;
    color: var(--text-color);
}

/* Product Journey */
.product-journey {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 24px;
}

@media (min-width: 640px) {
    .product-journey {
        padding: 32px;
    }
}

/* Education */
.education-item {
    margin-bottom: 16px;
}

.education-years {
    font-size: 0.875rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

/* GitHub Contributions */
.github-container {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 16px;
}

.github-graph {
    display: grid;
    grid-template-columns: repeat(52, 1fr);
    gap: 4px;
    padding: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--hover-bg);
    min-width: max-content;
}

.github-cell {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background-color: #d1d5db;
    transition: all 0.3s;
}

body.dark-theme .github-cell {
    background-color: #374151;
}

.github-cell:hover {
    transform: scale(1.25);
}

/* Tech Stack */
.tech-header {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.view-stack-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-tertiary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}

.view-stack-btn:hover {
    color: var(--text-color);
}

.tech-scroll-container {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.tech-scroll-wrapper {
    display: flex;
    width: max-content;
}

.tech-scroll {
    display: flex;
    gap: 48px;
    padding: 16px 48px 16px 0;
    animation: infinite-scroll 40s linear infinite;
}

@keyframes infinite-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tech-icon {
    height: 40px;
    width: 40px;
    opacity: 0.8;
    filter: brightness(0);
    transition: all 0.3s;
}

body.dark-theme .tech-icon {
    filter: brightness(0) invert(1);
}

.tech-icon:hover {
    opacity: 1;
    filter: brightness(1);
}

body.dark-theme .tech-icon:hover {
    filter: brightness(1) invert(0);
}

/* Recommendations */
.recommendations {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.recommendation-item {
    border-left: 2px solid var(--border-color);
    padding-left: 24px;
    transition: border-color 0.3s;
}

.recommendation-item:hover {
    border-left-color: var(--text-color);
}

.recommendation-name {
    margin-bottom: 12px;
}

.recommendation-name a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: #d1d5db;
    transition: text-decoration-color 0.3s;
}

body.dark-theme .recommendation-name a {
    text-decoration-color: #374151;
}

.recommendation-name a:hover {
    text-decoration-color: var(--text-color);
}

.recommendation-text {
    font-size: 0.875rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

/* Videos */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #f3f4f6;
    background-color: #f9fafb;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.5s;
    filter: grayscale(100%);
}

body.dark-theme .video-container {
    border-color: #111827;
    background-color: #030712;
}

.video-container:hover {
    filter: grayscale(0%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Library */
.library-section {
    margin-bottom: 32px;
}

.library-category {
    margin-bottom: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.library-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px 32px;
}

@media (min-width: 640px) {
    .library-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.book-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.3s;
}

.book-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
}

.book-item:hover .book-title {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--border-color);
}

.book-author {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.library-note {
    margin-top: 24px;
    font-size: 0.75rem;
    font-style: italic;
    color: var(--text-tertiary);
}

/* About */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-image-wrapper {
    display: flex;
    justify-content: center;
}

.about-image {
    position: relative;
    height: 250px;
    width: 100%;
    max-width: 384px;
    filter: grayscale(100%);
    transition: filter 0.7s;
    mask-image: radial-gradient(circle, black 40%, transparent 95%);
}

@media (min-width: 640px) {
    .about-image {
        height: 350px;
    }
}

.about-image:hover {
    filter: grayscale(0%);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Responsive */
@media (max-width: 640px) {
    .name {
        font-size: 2.5rem;
    }
    
    .intro {
        font-size: 0.875rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
}



/* Social Media Sidebar */
.social-sidebar {
    position: fixed;
    left: 40px;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 40;
}

@media (max-width: 1024px) {
    .social-sidebar {
        display: none;
    }
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-tertiary);
    transition: all 0.3s ease;
    position: relative;
}

.social-link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--hover-bg);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-link:hover {
    color: var(--text-color);
    transform: translateY(-3px);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-line {
    width: 1px;
    height: 90px;
    background-color: var(--text-tertiary);
    margin-top: 20px;
}

/* Social Grid in Contact Section */
.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
}

@media (min-width: 640px) {
    .social-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .social-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background-color: transparent;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-card:hover {
    border-color: var(--text-color);
    background-color: var(--hover-bg);
    color: var(--text-color);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.dark-theme .social-card:hover {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.social-card svg {
    width: 24px;
    height: 24px;
}

.social-card span {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Mobile Social Sidebar Alternative */
@media (max-width: 1024px) {
    .social-sidebar {
        display: none;
    }
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.social-link:hover {
    animation: float 0.6s ease-in-out;
}

/* Tooltip for Social Links */
.social-link {
    position: relative;
}

.social-link::after {
    content: attr(aria-label);
    position: absolute;
    left: 50px;
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.social-link:hover::after {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .social-card {
        padding: 16px 12px;
    }
    
    .social-card span {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/*scrollbar code */
::-webkit-scrollbar {
    width: 6px;
  }
  
  ::-webkit-scrollbar-thumb {
    background: rgba(93, 93, 93, 0.85);
    border-radius: 10px;
    backdrop-filter: blur(5px);
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: #38bdf8;
    box-shadow: 0 0 10px #2b2f30, 0 0 20px #212324;
  }


