:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-neutral: #404040;
    --color-gray: #f3f3f3;
    --color-light-gray: #d4d4d4;
    --color-border: #000000;

    --font-primary: 'Sora', sans-serif;

    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --border-radius-sm: 8px;
    --border-radius-md: 16px;

    --container-width: 1200px;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--color-black);
    line-height: 1.5;
    background-color: var(--color-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-lg) 0;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
}

.highlight {
    font-weight: 800;
}

.outline-text {
    -webkit-text-stroke: 1px var(--color-black);
    color: transparent;
    font-weight: 800;
}

.filled-text {
    font-weight: 800;
}

.btn {
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--color-black);
}

.btn-primary {
    background-color: var(--color-black);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    background-color: var(--color-white);
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 600;
    font-size: 1rem;
}

.nav-link:hover {
    opacity: 0.7;
}

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

/* Hero Section */
.hero {
    background-color: var(--color-white);
    margin-top: -1px;
    /* Fix potential sub-pixel gap */
    padding: 0;
}

.hero-container {
    display: flex;
    flex-direction: column-reverse;
    gap: var(--spacing-lg);
    align-items: center;
    padding-top: var(--spacing-md);
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    font-weight: 400;
}

.hero-description {
    color: var(--color-neutral);
    margin-bottom: var(--spacing-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon {
    width: 48px;
    height: 48px;
    border: 2px solid var(--color-black);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--color-black);
    color: var(--color-white);
}

/* Skills Section */
/* Skills Section */
.skills-grid {
    display: flex;
    overflow: hidden;
    /* Hide scrollbar and overflow */
    width: 100%;
    position: relative;
    padding-bottom: 0;
    /* Remove padding as scrollbar is gone */
}

/* Hide scrollbar completely */
.skills-grid::-webkit-scrollbar {
    display: none;
}

.skills-track {
    display: flex;
    gap: 1.5rem;
    animation: scroll 40s linear infinite;
    /* Continuous scroll animation */
    width: max-content;
    /* Ensure track is wide enough */
}

/* Pause animation on hover for better UX */
.skills-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Move by half the width (one set of items) */
    }
}

.skill-card {
    border: 2px solid var(--color-black);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: var(--transition);
    aspect-ratio: 1/1;
    flex: 0 0 160px;
    /* Fixed width */
    text-align: center;
    background-color: var(--color-white);
    /* Ensure background is solid */
}

.skill-card:hover {
    background-color: var(--color-black);
    color: var(--color-white);
    transform: translateY(-5px);
}

.skill-icon {
    font-size: 2rem;
}

.skill-name {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
}

/* Experience Section */
.dark-bg {
    background-color: var(--color-black);
    color: var(--color-white);
}

.text-white {
    color: var(--color-white);
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1000px;
    /* Increased width for 2-column layout */
    margin: 0 auto;
}

.experience-item {
    border: 1px solid var(--color-neutral);
    padding: 2rem;
    border-radius: 8px;
    transition: var(--transition);
}

.experience-item:hover {
    background-color: #1a1a1a;
    border-color: var(--color-white);
}

.exp-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .exp-grid {
        flex-direction: row;
        gap: 3rem;
    }

    .exp-main {
        flex: 7;
        /* 70% */
        border-right: 1px solid var(--color-neutral);
        padding-right: 2rem;
    }

    .exp-sidebar {
        flex: 3;
        /* 30% */
    }
}

/* Left Column Styles */
.exp-header {
    margin-bottom: 1.5rem;
}

.exp-logo-title {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.company-logo {
    border-radius: 50%;
}

.exp-role {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--color-white);
}

.exp-company {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-light-gray);
    margin-bottom: 0.25rem;
}

.exp-date {
    color: var(--color-neutral);
    font-size: 0.9rem;
    display: block;
}

.exp-description {
    color: var(--color-light-gray);
    line-height: 1.6;
}

/* Right Column Styles */
.exp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.exp-highlight-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-neutral);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-pill {
    background-color: #333;
    color: var(--color-white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #444;
    transition: var(--transition);
}

.tech-pill:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

.focus-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.4;
}

/* About Me Section */
.about-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    align-items: center;
}

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

.about-content p {
    color: var(--color-neutral);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Projects Section */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.project-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.project-info {
    color: var(--color-white);
    text-align: left;
    width: 100%;
}

.project-number {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.project-description {
    color: var(--color-light-gray);
    margin-bottom: 1.5rem;
}

.project-link {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-top: auto;
}

.project-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.project-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial-card {
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid #eee;
}

.dark-card {
    background-color: var(--color-black);
    color: var(--color-white);
}

.testimonial-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.testimonial-text {
    font-style: italic;
    line-height: 1.6;
}

.testimonial-author {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: -1rem;
}

.testimonial-role {
    color: var(--color-neutral);
    font-size: 0.9rem;
}

.dark-card .testimonial-role {
    color: var(--color-light-gray);
}

/* Contact Section */
.contact-container {
    display: flex;
    flex-direction: column-reverse;
    gap: var(--spacing-lg);
}

.contact-form-wrapper {
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-input {
    padding: 1rem;
    border: 2px solid var(--color-black);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-input::placeholder {
    color: #888;
}

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

.form-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.social-icon-sm {
    width: 32px;
    height: 32px;
    border: 2px solid var(--color-black);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-icon-sm:hover {
    background-color: var(--color-black);
    color: var(--color-white);
}

.contact-info {
    text-align: left;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.contact-title .outline-text {
    -webkit-text-stroke: 1px var(--color-black);
    color: transparent;
}

.contact-desc {
    color: var(--color-neutral);
    margin-bottom: 2rem;
}

.contact-email a {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-email p {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Footer */
.footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 1.5rem 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    color: var(--color-white);
}

.copyright {
    text-align: right;
    font-size: 0.8rem;
    color: var(--color-light-gray);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--color-white);
        flex-direction: column;
        justify-content: center;
        transition: 0.3s;
        border-top: 1px solid #eee;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
    }

    .hamburger {
        display: block;
    }
}

@media (min-width: 768px) {

    /* Tablet & Desktop */
    .hero-container {
        flex-direction: row;
        text-align: left;
        padding-top: var(--spacing-xl);
    }

    .hero-content {
        text-align: left;
        flex: 1;
    }

    .hero-image {
        flex: 1;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .social-links {
        justify-content: flex-start;
    }

    /* Removed skills-grid override */

    .about-container {
        flex-direction: row;
    }

    .about-image,
    .about-content {
        flex: 1;
    }

    .projects-list {
        gap: 6rem;
    }

    .project-card {
        flex-direction: row;
        gap: 4rem;
    }

    .project-card.reverse {
        flex-direction: row-reverse;
    }

    .project-image,
    .project-info {
        flex: 1;
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-container {
        flex-direction: row;
        align-items: center;
    }

    .contact-form-wrapper,
    .contact-info {
        flex: 1;
    }

    .contact-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    /* Removed grid override for skills to maintain horizontal scroll */
}