@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    border: 0;
    padding: 0;
    font-family: Roboto;
    scroll-behavior: smooth;
}

::selection {
    background-color: #d8ad4f31;
    color: #d8ac4f;
}

::-moz-selection {
    background-color: #d8ad4f31;
    color: #d8ac4f;
}

body {
    background-color: #f0ebdf;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    font-size: 18px;
    color: #646464;
}

h1, h2, a, svg {
    color: #d8ac4f
}

h1 {
    font-size: 40px;
}

h2 {
    font-size: 24px;
}

h4 {
    font-size: 20px;
}

li {
    list-style: none;
}

ul {
    padding: 0;
}

main {
    display: flex;
    justify-content: space-around;
    margin-inline: 15%;
    margin-top: 5vh;
}

.sticky-header {
    display: none;
}

.socials {
    position: sticky;
    top: 5vh;
    height: 95vh;
    margin-right: 5%;
}

nav {
    margin-top: 5%;
    margin-bottom: 5%;
}

.nav-link {
    display: flex; 
    align-items: center;
    gap: 10px;
    color: #ac986e;
    font-weight: bold;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover .indicator, .nav-link.active .indicator {
    width: 40px;
    background-color: #d8ac4f;
}

.indicator {
    display: block;
    width: 15px;
    height: 1px;
    background-color: #ac986e;
    transition: all 0.2s ease-in-out;
}

.active {
    color: #d8ac4f;
}

.links {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.links svg {
    fill: #ac986e;
    transition: all 0.3s ease-in-out;
}

.links svg:hover {
    fill: #d8ac4f;
}

content {
    margin-left: 5%;
    width: 85%;
}

.cv {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ac986e;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.cv svg {
    transition: transform 0.3s ease-in-out;
}

.cv:hover {
    color: #d8ac4f;
}

/* The "Brittany Chiang" signature move: arrow pops out on hover */
.cv:hover svg {
    transform: translate(3px, -3px);
}

#about, #experience, #projects {
    margin-top: 5%;
    scroll-margin-top: 10vh;
}

#about p {
    margin-bottom: 5%;
}

.card {
    display: flex;
    justify-content: space-between;
    padding-inline: 2%;
    padding-bottom: 2.5%;

    padding-top: 2.5%;
    background-color: #d8ad4f10;
    border: 1px solid #d8ac4f;

    transition: all 0.3s ease-in-out;
}

.card:not(:last-child) {
    margin-bottom: 5%;
}

#projects:has(.card:hover) .card:not(:hover), #experience:has(.card:hover) .card:not(:hover) {
    opacity: 0.5;
}

#projects .card:hover, #experience .card:hover {
    background-color: #d4b67423;
    opacity: 1;
    box-shadow: 0 10px 30px -10px rgba(172, 152, 110, 0.3);
    transform: translateY(-5px);
    border-color: rgba(216, 172, 79, 0.5);
}

.card .details h4 {
    color: #d8ac4f
}

.card .details  p {
    margin-top: 2.5%;
    margin-bottom: 1%;
}

.timeline {
    width: 30%;
}

.timeline p { 
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
}

.details {
    width: 100%;
}

.tech-stack {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
}

.card .details .tech-stack p {
    margin: 0;
    padding: 1% 2%;
    border-radius: 50px;
    background-color: #e2d3b096; 
    color: #d8ac4f;
}

footer {
    margin: 5% 0px;
}

@media (max-width: 800px) {
    /* 1. Stack the main layout and give back screen space */
    main {
        flex-direction: column; /* Stack top-to-bottom */
        margin-inline: 5%; /* Shrink the huge 15% margins to fit small screens */
        margin-top: 5vh;
    }

    /* 2. Turn off the sticky left side */
    .socials {
        position: relative; /* Disables sticky */
        height: auto; /* Lets it size naturally instead of taking the whole screen */
        top: 0;
        margin-right: 0;
        margin-bottom: 20px; /* Space between header and content */
    }

    .links a {
        margin-top: 20px;
    }

    /* 3. Make the right side take up the full screen width */
    content {
        width: 100%;
        margin-left: 0;
    }

    /* 4. Fix the Cards */
    .card {
        flex-direction: column; /* Stack the date on top of the text */
        gap: 10px; /* Space between date and details */
        padding: 20px; /* Better spacing for touch screens */
    }

    .timeline, .details {
        width: 100%; /* Stop them from squishing */
    }
    
    /* Optional: Hide the navigation lines on mobile to save space */
    nav {
        display: none; 
    }

    .sticky-header {
    position: sticky;
    top: 0;                /* Sticks exactly to the top edge */
    z-index: 10;           /* Ensures it stays above the scrolling content */
    
    /* Styling to match your theme */
    background-color: #f0ebdf;
    border: 2px solid;
    border-image-source: linear-gradient(90deg, #d8ac4f 0%, transparent 100%);
    width: 100%;
    }
}