@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

:root {
    --primary-bg-color: hsl(220, 25%, 8%);
    --primary-txt-color: hsl(220, 30%, 96%);
    --h1-color: hsl(220, 100%, 86%);
    --bold-color: hsl(210, 100%, 75%);
    --card-bg-color: hsla(220, 100%, 75%, 0.16);
    --card-border-hover: hsl(210, 100%, 75%);
    --project-border: hsla(220, 100%, 85%, 0.35);
    --accent-1: hsl(210, 100%, 72%);
    --accent-2: hsl(188, 90%, 64%);
    --accent-3: hsl(276, 90%, 74%);
}

html {
    background: radial-gradient(circle at top, rgba(85, 120, 255, 0.28), transparent 30%),
        linear-gradient(135deg, hsl(220, 27%, 8%), hsl(222, 35%, 12%), hsl(230, 20%, 10%));
    color: var(--primary-txt-color);
    font-family: "Figtree", sans-serif;
    scroll-behavior: smooth;
    /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='199' viewBox='0 0 100 199'%3E%3Cg fill='%239C92AC' fill-opacity='0.4'%3E%3Cpath d='M0 199V0h1v1.99L100 199h-1.12L1 4.22V199H0zM100 2h-.12l-1-2H100v2z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E"); */
}

body {
    margin: 0;
    padding: 0;
    opacity: 0;
    animation: fadeInPage 0.9s ease-out forwards;
}

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

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

header {
    padding: 40px 50px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

header .name {
    letter-spacing: -0.05em;
}

header .college-major {
    min-width: 360px;
    align-items: flex-end;
}

.college-major {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
}

main {
    margin: 0 400px 0 400px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

h1 {
    color: var(--h1-color);
    font-size: 4rem;
    margin: 0 0 0 0;
    text-shadow: 0 0 10px rgba(125, 168, 255, 0.2);
}

h2 {
    color: var(--h1-color);
    font-size: 2.2rem;
    margin: 0;
    text-shadow: 0 0 8px rgba(125, 168, 255, 0.14);
}

main h2 {
    margin-bottom: 20px;
}

p {
    font-size: 1.3rem;
}

.major, .school {
    opacity: 0.9;
    margin: 0;
}

.school {
    transition: color 0.5s;
}

.rit {
    transition: color 0.5s;
}

b {
    color: var(--bold-color);
    font-size: 1.4rem;
}

hr {
    height: 2px;
    border: none;
    background-color: var(--primary-txt-color);
    opacity: 0.2;
}

section {
    padding: 60px 20px 60px 20px;
}

.card-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
}

.hidden {
    visibility: hidden;
}

.language-card {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(120, 160, 255, 0.18), rgba(116, 214, 255, 0.08));
    border: 1px solid rgba(154, 188, 255, 0.25);
    border-radius: 20px;
    min-width: 150px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    opacity: 0.9;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 10px 24px rgba(0, 0, 0, 0.14);
}

.language-card img {
    filter: brightness(0) invert(1) saturate(0);
    width: 75px;
    opacity: 0.95;
}

.language-card:hover {
    transform: translateY(-4px) scale(1.03);
    background: linear-gradient(135deg, rgba(123, 152, 255, 0.22), rgba(125, 214, 255, 0.12));
    border-color: rgba(180, 210, 255, 0.65);
    box-shadow: 0 12px 22px rgba(55, 120, 255, 0.12);
    opacity: 1;
}

.project-lang, .company {
    font-size: 0.9rem;
    background: linear-gradient(135deg, rgba(130, 170, 255, 0.28), rgba(100, 222, 255, 0.12));
    border: 1px solid rgba(160, 200, 255, 0.4);
    margin-right: 10px;
    opacity: 0.95;
    border-radius: 50px;
    padding: 5px 20px;
    transition: border 0.3s, transform 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.project-lang:hover, .company:hover {
    transform: translateY(-1px);
}

.projects-card {
    border: 3px dashed var(--project-border);
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 30px;
    background: linear-gradient(145deg, rgba(255,255,255,0.015), rgba(123, 155, 255, 0.04));
}

.project-row {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.9fr);
    gap: 24px;
    align-items: center;
}

.project-copy {
    min-width: 0;
}

.project-image {
    width: 100%;
    max-width: 420px;
    justify-self: end;
    border-radius: 16px;
    border: 1px solid rgba(180, 210, 255, 0.3);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.2);
    display: block;
}

.projects-card h3, .experience-card h3 {
    font-size: 1.5rem;
    color: hsl(214, 100%, 88%);
}

.project-date, .experience-date {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-left: auto;
    white-space: nowrap;
    text-align: right;
}

.project-and-date, .experience-and-date {
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.project-and-date h3, .experience-and-date h3 {
    margin-right: auto;
}

.experience-card {
    border: 4px solid rgba(150, 190, 255, 0.45);
    background: linear-gradient(135deg, rgba(126, 155, 255, 0.16), rgba(74, 198, 255, 0.08));
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 14px 28px rgba(0, 0, 0, 0.12);
}

footer {
    padding: 20px 0 0 50px;
    opacity: 0.8;
    text-align: center;
}

.github-icon {
    transition: transform 0.3s;
}

.github-icon:hover {
    transform: scale(1.1);
}

.sticky {
    color: hsla(0, 0%, 0%, 0.7);
    padding: 10px 20px 10px 20px;
    display: flex;
    justify-content: space-around;
    position: sticky;
    top: 0;
    z-index: 100;
    background: hsla(226, 62%, 85%, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 3px solid hsla(227, 24%, 69%, 0.8);
    flex-wrap: wrap;
    gap: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.sticky a {
    color: hsla(0, 0%, 0%, 0.7);
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.sticky a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.sticky a h3 {
    margin: 0;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1.4;
}

.sticky a h3:hover {
    color: hsla(0, 0%, 0%, 1);
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: -10px;
    flex-wrap: wrap;
    padding: 8px 0 0;
}

.contact-info img {
    width: 30px;
    height: 30px;
    opacity: 0.9;
}

.contact-info h4 {
    margin: 0;
    font-size: 1.2rem;
}

.contact-info a {
    text-decoration: none;
    color: var(--primary-txt-color);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s;
}

.contact-info a:hover {
    color: var(--h1-color);
    background: linear-gradient(135deg, rgba(120, 155, 255, 0.14), rgba(115, 220, 255, 0.08));
    border-color: rgba(170, 210, 255, 0.38);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(77, 130, 255, 0.12);
}

.school:hover, .rit:hover {
    color: hsl(32, 96%, 58%);
    text-shadow: 0 0 8px rgba(247, 105, 2, 0.18);
}

.ticker {
  overflow: hidden;
  white-space: nowrap;

  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker p {
    font-size: 1.4rem;
}

.ticker-track {
  display: inline-flex;
  gap: 3rem;
  animation: ticker-scroll 40s linear infinite;
}

.ticker p {
  font-weight: 500;
}

.greeting {
    font-size: 2.5rem;
}

/* ticker mover */
@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}


/* Media Queries for Responsive Design */

/* Tablet: 1024px and below */
@media (max-width: 1024px) {
    main {
        margin: 0 50px 0 50px;
    }

    h1 {
        font-size: 2.8rem;
    }

    .language-card {
        flex: 1 1 calc(25% - 15px);
        min-width: 130px;
    }

    .sticky {
        padding: 10px 15px 10px 15px;
    }

    .sticky a h3 {
        font-size: 0.95rem;
    }

    .ticker p {
        font-size: 1.2rem;
    }
}

/* Tablet: 768px and below */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px;
    }

    .college-major {
        text-align: left;
        margin-top: 10px;
    }

    main {
        margin: 0 20px 0 20px;
    }

    .sticky a h3 {
        font-size: 0.85rem;
        white-space: nowrap;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .major, .school {
        font-size: 0.9rem;
    }

    p {
        font-size: 1.05rem;
    }

    section {
        padding: 35px 15px 35px 15px;
    }

    .card-container {
        gap: 12px;
        justify-content: space-between;
    }

    .language-card {
        flex: 1 1 calc(33.333% - 12px);
        min-width: 100px;
        padding: 12px;
    }

    .language-card img {
        width: 50px;
    }

    .language-card h3 {
        font-size: 0.85rem;
    }

    .projects-card h3, .experience-card h3 {
        font-size: 1.2rem;
    }

    .contact-info {
        flex-wrap: wrap;
        gap: 12px;
        margin-top: -10px;
    }

    .contact-info img {
        width: 22px;
    }

    .contact-info h4 {
        font-size: 1rem;
    }

    .ticker p {
        font-size: 1.1rem;
    }

    footer {
        padding: 15px 20px 15px 20px;
        font-size: 0.95rem;
    }
}

/* Small Tablet: 640px and below */
@media (max-width: 640px) {
    header {
        padding: 20px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    main {
        margin: 0 15px 0 15px;
    }

    .sticky {
        padding: 8px 10px 8px 10px;
    }

    .sticky a h3 {
        font-size: 0.7rem;
    }

    .language-card {
        flex: 1 1 calc(50% - 12px);
        min-width: 80px;
    }

    .language-card img {
        width: 45px;
    }

    .project-and-date, .experience-and-date {
        flex-direction: column;
    }

    .project-row {
        grid-template-columns: 1fr;
    }

    .project-image {
        justify-self: stretch;
        max-width: none;
    }

    .project-date, .experience-date {
        float: none;
        margin-top: 5px;
    }

    .contact-info {
        flex-wrap: wrap;
        gap: 10px;
        margin-top: -10px;
    }
}

/* Mobile: 480px and below */
@media (max-width: 480px) {
    header {
        padding: 15px;
        gap: 10px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 0.9rem;
    }

    main h2 {
        margin-bottom: 10px;
    }

    p {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    b {
        font-size: 1rem;
    }

    main {
        margin: 0 12px 0 12px;
    }

    .sticky {
        display: none;
    }

    section {
        padding: 20px 10px 20px 10px;
    }

    .card-container {
        gap: 8px;
    }

    .language-card {
        flex: 1 1 calc(50% - 8px);
        min-width: 70px;
        padding: 10px;
    }

    .language-card img {
        width: 40px;
    }

    .language-card h3 {
        font-size: 0.8rem;
    }

    .projects-card, .experience-card {
        padding: 12px;
        border-radius: 15px;
    }

    .projects-card h3, .experience-card h3 {
        font-size: 1.1rem;
        margin: 0 0 10px 0;
    }

    .project-lang, .company {
        font-size: 0.8rem;
        padding: 3px 12px;
        margin-right: 5px;
        margin-bottom: 5px;
        display: inline-block;
    }

    .contact-info {
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 0;
        justify-content: center;
    }

    .contact-info img {
        width: 18px;
    }

    .contact-info h4 {
        margin: 0;
        font-size: 0.85rem;
    }

    .contact-info a {
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 6px 10px;
        border-radius: 6px;
    }

    footer {
        padding: 10px 15px 10px 15px;
        font-size: 0.85rem;
    }

    hr {
        margin: 10px 0;
    }

    .ticker p {
        font-size: 0.95rem;
    }

    .ticker-track {
        gap: 2rem;
    }

    .greeting {
        font-size: 1.8rem;
}
}

/* important for reduced motion (accessibility!) */
@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
}