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

:root {
    --bg-dark: #0d1117;
    --bg-darker: #010409;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --accent: #58a6ff;
    --accent-secondary: #bc8cff;
    --border: #21262d;
    --card-bg: #161b22;
    --gradient-1: #7c3aed;
    --gradient-2: #db2777;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-dark);
    overflow-x: hidden;
}

/* Canvas Background */
#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at top left, rgba(124, 58, 237, 0.15), transparent 50%),
                radial-gradient(ellipse at bottom right, rgba(219, 39, 119, 0.1), transparent 50%);
}

/* Left Panel - Fixed */
.left-panel {
    position: fixed;
    left: 0;
    top: 0;
    width: 40%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    z-index: 10;
}

.profile-section {
    max-width: 500px;
    animation: fadeInLeft 1s ease;
}

.name {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.role {
    font-size: 1.75rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.bio {
    font-size: 1.15rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    background: rgba(22, 27, 34, 0.5);
}

.social-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(88, 166, 255, 0.1);
    transform: translateY(-3px);
}

/* Right Panel - Scrollable */
.right-panel {
    margin-left: 40%;
    width: 60%;
    min-height: 100vh;
    padding: 4rem 5rem;
    position: relative;
    z-index: 10;
}

/* Sections */
.section {
    margin-bottom: 6rem;
    animation: fadeInRight 1s ease;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    border-radius: 2px;
}

.section-content p {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.section-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Project Showcase */
.project-showcase {
    position: relative;
    display: flex;
    gap: 3rem;
    align-items: center;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.project-tech {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tech-badge {
    padding: 0.5rem 1rem;
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.3);
    border-radius: 6px;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: rgba(88, 166, 255, 0.2);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.project-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

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

.store-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.store-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(88, 166, 255, 0.3);
}

/* Phone Mockup */
.project-mockup {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.mockup-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.4), transparent 70%);
    filter: blur(60px);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Carousel */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1;
}

.carousel-track {
    position: relative;
    width: 240px;
    height: 480px;
    overflow: hidden;
}

.phone-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 240px;
    height: 480px;
    background: var(--card-bg);
    border: 7px solid var(--border);
    border-radius: 35px;
    padding: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease;
}

.phone-frame.active {
    opacity: 1;
    transform: translateX(0);
}

.phone-frame.prev {
    opacity: 0;
    transform: translateX(-100%);
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 22px;
    background: var(--bg-dark);
    border-radius: 0 0 18px 18px;
    z-index: 2;
}

.phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
}

.placeholder-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(219, 39, 119, 0.2));
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.placeholder-screen .placeholder-icon {
    font-size: 3rem;
}

.placeholder-screen p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Carousel Buttons */
.carousel-btn {
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: scale(1.1);
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    gap: 0.75rem;
    z-index: 1;
}

.indicator {
    width: 10px;
    height: 10px;
    background: var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--accent);
    width: 30px;
    border-radius: 5px;
}

.indicator:hover {
    background: var(--accent);
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .left-panel {
        width: 35%;
    }
    
    .right-panel {
        margin-left: 35%;
        width: 65%;
        padding: 3rem 4rem;
    }
    
    .name {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .left-panel {
        position: relative;
        width: 100%;
        height: auto;
        padding: 3rem 2rem;
    }
    
    .right-panel {
        margin-left: 0;
        width: 100%;
        padding: 2rem;
    }
    
    .name {
        font-size: 2.5rem;
    }
    
    .role {
        font-size: 1.3rem;
    }
    
    .bio {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .project-image {
        height: 180px;
    }
    
    .placeholder-icon {
        font-size: 3.5rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Skeleton Loading */
.skeleton-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.skeleton-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.skeleton-left {
    width: 40%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.skeleton-right {
    width: 60%;
    padding: 4rem 5rem;
    overflow: hidden;
}

.skeleton-title {
    width: 80%;
    height: 60px;
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 1rem;
    animation: shimmer 1.5s infinite;
}

.skeleton-subtitle {
    width: 60%;
    height: 30px;
    background: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    animation: shimmer 1.5s infinite;
    animation-delay: 0.1s;
}

.skeleton-text {
    width: 100%;
    height: 20px;
    background: var(--card-bg);
    border-radius: 6px;
    margin-bottom: 0.75rem;
    animation: shimmer 1.5s infinite;
    animation-delay: 0.2s;
}

.skeleton-text.short {
    width: 70%;
    animation-delay: 0.3s;
}

.skeleton-socials {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.skeleton-social {
    width: 44px;
    height: 44px;
    background: var(--card-bg);
    border-radius: 10px;
    animation: shimmer 1.5s infinite;
}

.skeleton-social:nth-child(1) { animation-delay: 0.4s; }
.skeleton-social:nth-child(2) { animation-delay: 0.5s; }
.skeleton-social:nth-child(3) { animation-delay: 0.6s; }
.skeleton-social:nth-child(4) { animation-delay: 0.7s; }

.skeleton-section {
    margin-bottom: 4rem;
}

.skeleton-heading {
    width: 200px;
    height: 40px;
    background: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 2rem;
    animation: shimmer 1.5s infinite;
}

.skeleton-card {
    width: 100%;
    height: 400px;
    background: var(--card-bg);
    border-radius: 16px;
    animation: shimmer 1.5s infinite;
    animation-delay: 0.2s;
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton-title,
.skeleton-subtitle,
.skeleton-text,
.skeleton-social,
.skeleton-heading,
.skeleton-card {
    background: linear-gradient(
        90deg,
        var(--card-bg) 0%,
        rgba(88, 166, 255, 0.1) 50%,
        var(--card-bg) 100%
    );
    background-size: 1000px 100%;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-3px);
}

/* Left Panel Hover Effects */
.name {
    transition: all 0.3s ease;
    cursor: default;
}

.name:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.5));
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 600px;
}

.skill-item {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.skill-item > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.skill-item:hover {
    border-color: var(--accent);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 10px 30px rgba(88, 166, 255, 0.4);
}

.skill-item:hover > img {
    transform: scale(1.1);
}

.skill-preview {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 100;
}

.skill-item:hover .skill-preview {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* All previews appear above to avoid overlap with Projects section */

/* Education Section */
.education-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.education-icon-link {
    position: relative;
    text-decoration: none;
    display: block;
}

.website-preview {
    position: absolute;
    bottom: -220px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 100;
}

.education-icon-link:hover .website-preview {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.preview-browser {
    width: 280px;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
}

.browser-bar {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.browser-dots {
    display: flex;
    gap: 0.35rem;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-secondary);
    opacity: 0.5;
}

.browser-dots span:nth-child(1) {
    background: #ff5f56;
}

.browser-dots span:nth-child(2) {
    background: #ffbd2e;
}

.browser-dots span:nth-child(3) {
    background: #27c93f;
}

.browser-url {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
}

.preview-content {
    width: 100%;
    height: 160px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.education-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    margin-top: 0.25rem;
    transition: all 0.3s ease;
}

.education-icon-link:hover .education-icon {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(88, 166, 255, 0.4);
    border: 2px solid var(--accent);
}

.education-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.education-icon-link:hover .education-icon img {
    transform: scale(1.1);
}

.education-details {
    flex: 1;
}

.education-degree {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.education-major {
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.education-school {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.education-period {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.3);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: default;
}

.education-period:hover {
    background: rgba(88, 166, 255, 0.2);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
}

/* Responsive Updates */
@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    .skill-item {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .skill-item {
        width: 60px;
        height: 60px;
    }
    
    .skeleton-overlay {
        flex-direction: column;
    }
    
    .skeleton-left,
    .skeleton-right {
        width: 100%;
        padding: 2rem;
    }
    
    .project-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-name {
        font-size: 2rem;
    }
    
    .carousel-track {
        width: 200px;
        height: 400px;
    }
    
    .phone-frame {
        width: 200px;
        height: 400px;
    }
    
    .mockup-glow {
        width: 180px;
        height: 180px;
    }
    
    .education-item,
    .experience-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .education-icon,
    .experience-icon {
        width: 50px;
        height: 50px;
    }
    
    .education-degree,
    .experience-position {
        font-size: 1.15rem;
    }
}

/* Experience Section */
.experience-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.experience-icon-link {
    position: relative;
    text-decoration: none;
    display: block;
}

.experience-icon-link .website-preview {
    position: absolute;
    bottom: -220px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 100;
}

.experience-icon-link:hover .website-preview {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.experience-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    margin-top: 0.25rem;
    transition: all 0.3s ease;
}

.experience-icon-link:hover .experience-icon {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(88, 166, 255, 0.4);
    border: 2px solid var(--accent);
}

.experience-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.experience-icon-link:hover .experience-icon img {
    transform: scale(1.1);
}

.experience-details {
    flex: 1;
}

.experience-position {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.experience-company {
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.experience-location {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.experience-period {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.3);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: default;
}

.experience-period:hover {
    background: rgba(88, 166, 255, 0.2);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
}


