:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e1e8ed;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 40px;
}

/* Profile Section - Top Layout */
.profile-section {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}

/* Left Column: Profile Info */
.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    width: 100%;
    margin-left: -20px;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px auto;
    border: 4px solid var(--border-color);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.social-handles {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-light);
    transition: var(--transition);
    border-radius: 50%;
    background-color: var(--bg-light);
}

.social-link:hover {
    color: var(--secondary-color);
    background-color: rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

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

/* About Me Button */
.about-me-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.about-me-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.4);
}

/* Right Column: About Section */
.about-section {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
}

.about-content p {
    margin-bottom: 15px;
}

.about-content ol {
    margin-left: 20px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.about-content li {
    margin-bottom: 12px;
    padding-left: 8px;
}

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

/* Technology Stack Section */
.tech-stack-section {
    margin-top: 50px;
    margin-bottom: 50px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.tech-stack-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.tech-card {
    background: var(--bg-color);
    padding: 14px 18px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: default;
    min-width: 140px;
}

.tech-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.tech-details {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.tech-details strong {
    color: var(--primary-color);
}

/* Repositories Section - Bottom Scrollable */
.repositories-section {
    margin-top: 40px;
}

.repositories-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.projects-scrollable {
    display: flex;
    flex-direction: row;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 15px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Custom Horizontal Scrollbar */
.projects-scrollable::-webkit-scrollbar {
    height: 8px;
}

.projects-scrollable::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.projects-scrollable::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.projects-scrollable::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* Loading and Error States */
.loading,
.error {
    text-align: center;
    padding: 40px 20px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.error {
    color: var(--accent-color);
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    margin: 20px 0;
}

/* Project Card Styles */
.project-card {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    min-width: 320px;
    max-width: 320px;
    flex-shrink: 0;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

.project-card__title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.3;
}

.project-card__description {
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.project-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

.meta-item__label {
    font-weight: 600;
    margin-right: 5px;
    color: var(--text-color);
}

/* Project Features List (Bullet Points) */
.project-features {
    list-style: none;
    margin: 0 0 15px 0;
    padding: 0;
    flex-grow: 1;
}

.project-features li {
    color: var(--text-light);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.5;
}

.project-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    background-color: var(--secondary-color);
    border-radius: 50%;
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--bg-light);
    color: var(--text-color);
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
}

.tag--primary {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* Technology Stack Section */
.project-card__technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tech-bubble {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

.project-card__link {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.project-card__link a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.project-card__link a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.private-repo-label {
    color: var(--text-light);
    font-weight: 500;
    font-style: italic;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

.footer p {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 968px) {
    .profile-section {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .profile-info {
        align-items: center;
    }

    .about-section {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .profile-section {
        margin-bottom: 40px;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .about-title,
    .repositories-title {
        font-size: 1.5rem;
    }

    .projects-scrollable {
        gap: 15px;
    }
    
    .project-card {
        min-width: 280px;
        max-width: 280px;
    }

    .project-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .profile-image {
        width: 120px;
        height: 120px;
    }

    .profile-name {
        font-size: 1.3rem;
    }

    .about-content {
        font-size: 1rem;
    }

    .projects-scrollable {
        max-height: 400px;
    }
}
