@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-navy: #101827;
    --sidebar-btn-bg: #e0f2fe;
    --sidebar-btn-text: #0369a1;
    --main-accent: #3b82f6;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f3f4f6;
    background-image: radial-gradient(#d1d5db 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header */
header {
    background-color: var(--primary-navy);
    color: white;
    padding: 1.5rem 0;
    top: 0;
    z-index: 1000;
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.header-logo p {
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 400;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

nav a:hover {
    opacity: 0.7;
}

.menu-toggle {
    display: none;
}

.hamburger-icon {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
}

/* Main Content Area */
.main-wrapper {
    width: 90%;
    max-width: 1200px;
    margin: 3rem auto;
    background: white;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display: flex;
    min-height: 800px;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 300px;
    background-color: #f9fafb;
    border-right: 1px solid var(--border-color);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 100%;
    overflow: hidden;
    margin: 5px;
}

.sidebar-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.sidebar-btn {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    background-color: var(--sidebar-btn-bg);
    color: var(--sidebar-btn-text);
    text-decoration: none;
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: filter 0.2s;
}

.sidebar-btn:hover {
    filter: brightness(0.95);
}

.sidebar-info {
    width: 100%;
    text-align: center;
}

.sidebar-info h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.info-separator {
    border-top: 1px dashed #ccc;
    margin: 1rem 0;
}

.info-list {
    list-style: none;
    text-align: left;
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.info-list li {
    margin-bottom: 0.5rem;
}

.info-list strong {
    color: var(--text-dark);
}

.info-list a {
    color: var(--main-accent);
    text-decoration: none;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--primary-navy);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1.1rem;
}

.social-icons a.linkedin {
    background-color: #0077b5;
}

.social-icons a.github {
    background-color: #333;
}

.social-icons a.x {
    background-color: #000;
}

/* Content Area */
.content {
    flex: 1;
    padding: 4rem;
}

.section {
    margin-bottom: 3rem;
}

.section-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

.about-text {
    font-size: 1rem;
    color: var(--text-dark);
    text-align: justify;
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-header {
    font-weight: 700;
    font-size: 1rem;
    border-left: 4px solid var(--main-accent);
    padding-left: 2px;
    margin-bottom: 1rem;
}

.about-text .accent-bar {
    display: inline-block;
    width: 4px;
    height: 1.2rem;
    background-color: var(--main-accent);
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Bullet Lists */
.bullet-list {
    list-style: none;
}

.bullet-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.bullet-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-dark);
    font-weight: bold;
}

/* Labs List View */
.labs-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.lab-card {
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.2s;
    background: #fff;
}

.lab-card:hover {
    border-color: var(--main-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.lab-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-navy);
}

.lab-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.lab-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--main-accent);
    text-decoration: none;
}


/* Footer */
footer {
    background-color: var(--primary-navy);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer p {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Media Queries */
@media (min-width: 1200px) {

    .main-wrapper,
    .header-container {
        width: 1140px;
    }
}

@media (max-width: 900px) {
    .header-container {
        position: relative;
    }

    .hamburger-icon {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-navy);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .menu-toggle:checked ~ nav {
        max-height: 300px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    nav ul {
        flex-direction: column;
        padding: 1.5rem 5%;
        gap: 1rem;
    }

    .main-wrapper {
        flex-direction: column;
        margin: 1rem auto;
        width: 95%;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 2rem;
    }

    .content {
        padding: 2rem;
    }
}

/* Contact Page Styles */
.contact-form-wrapper {
    max-width: 600px;
    margin-top: 2rem;
}

.contact-social-links {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-social-links a {
    color: var(--main-accent);
    text-decoration: none;
    font-weight: 500;
}

.contact-social-links a:hover {
    text-decoration: underline;
}

.form-field {
    margin-bottom: 1.5rem;
}

.form-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--main-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-field textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--primary-navy);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: #1a1f2c;
}

/* Projects Page Styles */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--main-accent);
}

.project-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-icon {
    font-size: 1.5rem;
    color: var(--main-accent);
    background: rgba(59, 130, 246, 0.1);
    padding: 0.75rem;
    border-radius: 10px;
}

.project-card h3 {
    font-size: 1.25rem;
    color: var(--primary-navy);
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Converter Component */
.converter-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group, .result-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label, .result-group label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.input-with-symbol, .result-display {
    display: flex;
    align-items: center;
    background: #f9fafb;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}

.input-with-symbol:focus-within {
    border-color: var(--main-accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.currency-symbol {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.input-with-symbol input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    outline: none;
}

.result-display {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
}

#sar-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--main-accent);
}

.conversion-arrow {
    display: flex;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-5px);}
    60% {transform: translateY(-3px);}
}

.project-btn {
    background: var(--primary-navy);
    color: #fff;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.2s;
}

.project-btn:hover {
    background: #1a1f2c;
}

.project-btn i {
    font-size: 0.9rem;
}

.btn-clicked {
    transform: scale(0.95) !important;
}

.exchange-rate-info {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.exchange-rate-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Nav Active State */
nav a.active {
    color: var(--main-accent);
    position: relative;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--main-accent);
}

/* GitHub Profile Viewer Styles */
.github-search-container {
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    gap: 1rem;
    transition: all 0.2s;
}

.search-box:focus-within {
    border-color: var(--main-accent);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.search-icon {
    color: var(--text-muted);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 0.5rem 0;
}

.loader-container, .error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
    color: var(--text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(59, 130, 246, 0.1);
    border-top-color: var(--main-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-container {
    color: #ef4444;
}

.error-container i {
    font-size: 2rem;
}

/* Profile Result Layout */
.profile-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.profile-header {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.avatar-container img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--sidebar-btn-bg);
}

.user-meta h3 {
    font-size: 1.5rem;
    color: var(--primary-navy);
    margin-bottom: 0.25rem;
}

.user-meta a {
    color: var(--main-accent);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: inline-block;
}

#user-bio {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.user-joined {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stat-card {
    background: var(--sidebar-btn-bg);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sidebar-btn-text);
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--sidebar-btn-text);
    opacity: 0.8;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.detail-item i {
    color: var(--text-muted);
    width: 16px;
    text-align: center;
}

.detail-item a {
    color: var(--main-accent);
    text-decoration: none;
}

.detail-item a:hover {
    text-decoration: underline;
}

/* Repositories Section */
.repos-section h3 {
    margin: 1.5rem 0 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.repos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.repo-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.repo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.repo-header h4 a {
    color: var(--main-accent);
    text-decoration: none;
    font-size: 1rem;
}

.repo-visibility {
    font-size: 0.7rem;
    padding: 2px 8px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-muted);
    text-transform: capitalize;
}

.repo-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    height: 2.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.repo-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
}

.repo-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.view-all-container {
    text-align: center;
    margin-top: 1.5rem;
}

@media (max-width: 600px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .details-grid, .repos-grid {
        grid-template-columns: 1fr;
    }
}