/* =========================
   Imports & Root Variables
   ========================= */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
    --bg: #202020;
    --text: #e6e6e6;
    --primary: #e16e44;
    --accent: #ff814c;
    --highlight: #ff9566;
    --muted: #797979;
    --card-bg: #2a2a2a;
    --border: #393939;
}

/* =========================
   Base Styles
   ========================= */
body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
    animation: gridMove 60s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 100px 300px; }
}

.site-header {
    position: sticky;
    top: 0;
    background: linear-gradient(to right, #ba4e30e6, #e75f32db);
    padding: 0.75rem 1rem;
    z-index: 999;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
}

.nav-logo {
  font-weight: bold;
  font-size: 1.2rem;
  color: white;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--highlight);
}

.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
}

.hamburger {
    width: 24px;
    height: 2px;
    background-color: white;
    display: block;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: white;
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* =========================
   Navigation Styles
   ========================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, #cc5836, #b24b2f);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
}

.navbar nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.navbar nav a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar nav a:hover {
    color: var(--accent);
}

/* =========================
   Landing Section
   ========================= */
#landing {
    padding: 3rem 1rem 0 1rem;
    max-width: 800px;
    margin: 0 auto;
}

#landing::after {
    content: '';
    display: block;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(32,32,32,1));
    margin-top: 3rem;
}

.landing-container {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.landing-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3rem;
    width: 100%;    
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: inherit;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(225, 110, 68, 0.2);
}

.intro-label {
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    opacity: 0.8;
    margin: 0;
}

.intro-name {
    margin: 2rem 0;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
}

.intro-role {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--text);
}

.intro-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 32px;
}

.social-links a {
    position: relative;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.social-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: var(--accent);
    left: 0;
    bottom: -2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.social-links a:hover::after {
    transform: scaleX(1);
}

.about h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.about p {
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.general-text {
    color: rgb(200, 200, 200); 
}

.no-mb {
    margin-bottom: 0;
}

/* =========================
   Work/Experience Section
   ========================= */
#work {
    padding: 1rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.hint {
    color: var(--muted);
    text-align: center;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.section-heading {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary);
    text-align: center;    
}

.work-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.job-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.job-entry {
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.job-entry:hover {
    background: linear-gradient(
        135deg,
        rgba(225, 110, 68, 0.45),
        rgba(255, 129, 76, 0.85)
    );
    box-shadow: 0 4px 16px rgba(225, 110, 68, 0.12);
}

.job-entry:hover .job-title {
    color: #ffffff;
    font-weight: 700;
}

.job-entry:hover .job-date,
.job-entry:hover .job-company {
    color: #d6d6d6; /* Or var(--text) if you prefer full contrast */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.job-entry::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.015),
        rgba(255, 255, 255, 0.05)
    );
    transform: skewX(-25deg);
    pointer-events: none;
}

.job-entry:hover::before {
  animation: swipe-glow 1s ease forwards;
}

@keyframes swipe-glow {
    from {
        left: -75%;
    }
    to {
        left: 125%;
    }
}

.job-entry.open {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.job-toggle {
    all: unset;
    cursor: pointer;
    width: 100%;
    display: flex;
    padding: 1rem 1.25rem;
    transition: background 0.3s ease;
}

.job-toggle:hover {
    color: var(--accent);
}

.job-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.job-date,
.job-company,
.project-hint {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.job-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 1.25rem;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
    cursor: pointer;
}

.job-title {
    font-weight: 500;
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 0;
}

.job-entry.open .job-details {
    max-height: 500px;
    opacity: 1;
    padding: 0 1.25rem 1rem 1.25rem;
}

.job-details ul {
    margin: 0;
    padding-left: 1.25rem;
}

.job-details li {
    line-height: 2.25;
}

/* =========================
   Projects Section
   ========================= */
.projects-section {
    padding: 2rem 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.table-wrapper {
    overflow-x: auto;
    margin-bottom: 3rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
    color: var(--text);
}

.custom-table thead {
    background: linear-gradient(to right, rgba(255, 129, 76, 0.08), rgba(255, 129, 76, 0.03));
}

.custom-table th {
    padding: 1rem;
    font-weight: 600;
    color: var(--highlight);
    border-bottom: 1px solid var(--border);
    text-align: left;
    width: 100%;
}

.custom-table td {
    padding: 1rem;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.custom-table tr.expandable-row {
    cursor: pointer;
}

.custom-table tr.expandable-row:hover td {
    background: var(--card-glow);
    transition: background-color 0.3s ease;
}

.expandable-row:hover {
    background: linear-gradient(to right, rgba(255, 129, 76, 0.02), rgba(255, 129, 76, 0.2));
}

.hidden-row {
    background-color: transparent;
    border: none;
    display: none;
}

.hidden-row td {
    padding: 0;
    border: none;
    height: 0;
}

.collapse-wrapper {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    font-style: italic;
    font-size: 0.9rem;
    color: var(--muted);
    background: rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition:
        opacity 0.25s ease,
        max-height 0.5s ease,
        padding 0.4s ease;
}

.collapse-wrapper.show {
    opacity: 1;
    max-height: 400px;
    padding: 0.8rem 1.2rem;
}

.collapse-wrapper ul {
    margin: 0;
}

.center {
  text-align: center;
}

/* =========================
   Education Section
   ========================= */
#education {
    padding: 1rem;
}

.education-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.edu-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
}

.edu-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.edu-card h3 {
  margin-top: 0;
  color: var(--primary);
}

.edu-dates {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.edu-card ul {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.edu-date {
  color: var(--muted);
  font-size: 0.85rem;
  margin-left: 0.5rem;
}


/* =========================
   Skills Section
   ========================= */
.skills-section {
    padding: 1rem;
    max-width: 1000px;
    margin: 0 auto;
    color: var(--text);
}

.skills-section h2 {
    text-align: center;
    color: var(--primary);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.skills-category {
    margin-bottom: 2.5rem;
}

.skills-category h3 {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.25rem;
}

.skills-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    padding: 0;
    margin: 0;
}

.skills-list li {
    background: var(--card-bg);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-size: 0.95rem;
}

.fas, 
.fab {
    color: var(--muted);
    padding-right: 2px;
}

/* =========================
   Learning Section
   ========================= */

.improve-section {
    padding: 0 1rem 4rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text);
}

.improve-section .section-heading {
    text-align: center;
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.improve-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.improve-list li {
    background-color: var(--card-bg);
    border-left: 4px solid var(--accent);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: background 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.improve-list li i {
    font-size: 1.1rem;
    color: var(--highlight);
    flex-shrink: 0;
}

.improve-list li:hover {
    background: rgba(255, 129, 76, 0.05);
    transform: translateX(4px);
}

/* =========================
   Contact Section
   ========================= */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    background-color: var(--card-bg);
    color: var(--text);
    border-radius: 6px;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.contact-form button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background-color: var(--accent);
}

.contact-section {
    padding: 1rem;
}

/* =========================
   Footer
   ========================= */

.site-footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 4rem;
    color: var(--muted);
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
}

.footer-container {
    margin: 0 auto;
}

.footer-name {
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--text);
}

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

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--highlight);
}


/* =========================
   Animations
   ========================= */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   Responsive Styles
   ========================= */
@media (max-width: 768px) {
    #landing {
        padding: 1rem;
    }

    .landing-wrapper {
        flex-direction: column;
    }

    .intro, .about {
        flex: 1 1 100%;
    }

    .job-entry {
        align-items: flex-start;
        justify-content: space-between;
    }

    .job-meta {
        min-width: 220px;
    }

    .job-details {
        flex: 1;
    }

    .education-entry {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    #work {
        padding: 0.75rem;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--bg);
        width: 100%;
        flex-direction: column;
        display: none;
        padding: 1rem;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }
}
