html {
    scroll-behavior: smooth;
}

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

body {
    background: transparent;
    color: #fff;
    font-family: "Google Sans", sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.6;

    /* Theme Variables */
    --bg-primary: transparent;
    --bg-secondary: #18181B;
    --border-color: #888;
    --border-hover: #3F3F46;
    --text-muted: #888;
    --transition-speed: 0.3s;
}

.main-wrapper {
    min-height: 100vh;
    width: 100%;
    position: relative;
}

.bg-gradient-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(125% 125% at 50% 10%, #000000 40%, #2b0707 100%);
}

hr {
    border: none;
    border-top: 1px dashed var(--border-color);
    margin: 32px 0;
}

/* Global Section Styling - Centers every section automatically */
section {
    width: 100%;
    max-width: clamp(280px, 60vw, 550px);
    margin: 0 auto;
    padding: 40px 20px;
}

/* Profile section  */

.profile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.profile h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.profile span {
    display: inline-block;
    color: #888;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    margin-top: 4px;
    font-weight: 500;
}

.profile .profile-name {
    align-items: flex-start;
}

.profile .profile-paragraph {
    color: #888;
    max-width: clamp(280px, 60vw, 550px);
    font-weight: 400;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    line-height: 1.7;
    margin-top: 16px;
    margin-bottom: 12px;
}

/* opportunity and resume button  */

/* Button Styles */
.opportunity-btn,
.resume-btn,
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    margin: 5px 0;
}

.opportunity-btn:hover,
.resume-btn:hover,
.social-btn:hover {
    background: #27272A;
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.opportunity-btn:active,
.resume-btn:active,
.social-btn:active {
    transform: scale(0.95);
}

.opportunity-btn i,
.resume-btn i,
.social-btn i {
    color: var(--text-muted);
}

/* social container  */

.social-container {
    display: flex;
    flex-direction: column;
}

.social-container span {
    margin-top: 10px;
}

/* Displaying Social Button Link  */

.social-container .social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 10px 10px;
}

.social-btn i {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    position: relative;
    top: -1px;
}


/* Header  */
.location {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 300;
    margin: 12px;
    color: #FAFAFA;

    .fa-compass {
        margin-left: 5px;
        margin-right: 5px;
    }
}

/* Skills Section */
.skills {
    border: none;
    /* Reset if needed, but not necessary here */
}

section h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.skills-description {
    color: #888;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    line-height: 1.8;
    margin-bottom: 24px;
}

.skill-chunks {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.skill-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skill-category-title {
    font-size: 0.9rem;
    color: #888;
    font-family: monospace;
    font-weight: 400;
    letter-spacing: 0.1rem;
}

.skill-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Work Experience Section */
.work-item {
    padding: 32px 0;
    border-bottom: 1px dashed var(--border-color);
}

.work-item:last-child {
    border-bottom: none;
}

.role-time {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
}

h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.role-time h4 {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.work-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.work-meta span {
    font-size: 0.8rem;
}

.work-meta p {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.work-description {
    color: #888;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.8;
}

.work-description p {
    margin-bottom: 12px;
}

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


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

.work-images {
    display: flex;
    gap: 10px;
}



/* PROJECTS SECTION STYLING  */

.project-item {
    position: relative;
    display: flex;
    text-decoration: none;
    cursor: pointer;
    border: 1px #3F3F46 solid;
    border-radius: 10px;
    margin-top: 15px;
    width: 100%;
    overflow: hidden;
    height: 160px;
    transition: border-color 0.2s ease;
}

.project-item:hover {
    border-color: #71717a;
}

/* Stretched link — covers the whole card */
.project-live-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* GitHub icon sits above the stretched link */
.project-github {
    position: relative;
    z-index: 2;
    text-decoration: none;
    color: #888;
}

.project-github:hover {
    color: #fff;
}

.project-item img {
    width: 280px;
    min-width: 280px;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.project-name{
    display: flex;
    justify-content: space-between;

}

.project-descriptions {
    padding: 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    overflow: hidden;
}

.project-item span {
    font-size: 0.7rem;
    font-weight: 400;
    color: #888;
    text-align: center;
    padding: 4px 10px;
    border: 0.5px #888 solid;
    border-radius: 20px;
    width: fit-content;
}

.project-descriptions p {
    color: #a1a1aa;
    font-weight: 400;
    font-size: 0.78rem;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.project-descriptions a {
    text-decoration: none;
    color: #888;
}

/* Footer */
.site-footer {
    width: 100%;
    max-width: clamp(280px, 60vw, 550px);
    margin: 0 auto;
    padding: 24px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-copy {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-muted);
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-separator {
    color: var(--border-color);
    font-size: 0.8rem;
}

.footer-action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.footer-action-link i {
    font-size: 0.7rem;
    transition: transform var(--transition-speed) ease;
}

.footer-action-link:hover {
    color: #fff;
}

.footer-action-link:hover i {
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    section, 
    .site-footer {
        max-width: 100%;
        padding: 40px 20px;
    }

    .profile .profile-paragraph {
        max-width: 100%;
    }

    hr {
        margin: 24px 0;
    }

    .location {
        justify-content: flex-start;
        margin: 12px 20px;
    }

    section h2 {
        font-size: 1.3rem;
    }

    .opportunity-btn, 
    .resume-btn {
        width: fit-content;
        display: inline-flex;
    }

    .role-time {
        flex-direction: column;
        gap: 12px;
    }

    .work-meta {
        align-items: flex-start;
        text-align: left;
    }

    .project-item {
        flex-direction: column;
        height: auto;
    }

    .project-item img {
        width: 100%;
        min-width: 0;
        height: 180px;
    }

    .project-descriptions {
        padding: 14px 16px;
    }

    .project-name h3 {
        font-size: 1.1rem;
    }

    .social-buttons {
        justify-content: flex-start;
        padding-left: 10px;
    }

    .skill-icons {
        justify-content: flex-start;
        gap: 8px;
    }

    .skill-icons a {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}