/* Color Variables */
:root {
    --bg: #f6f4ef;
    --ink: #181818;
    --ink-2: #6a6a6a;
    --accent: #2b5343;
    --accent-light: #d6e8e1;
    --card: #edeae3;
}


/* Reset default browser styles*/
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* Styles for body and global elements */
body {
    background: var(--bg);
    color: var(--ink);
    font-family: "Outfit", sans-serif;
    font-weight: 300;

    /* Hide default cursor */
    *, a, button {
        cursor: none;
    }
}

/* Style the navigation page */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    z-index: 100;
    transition: background 0.4s;
}

.nav-logo {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--ink);
    text-decoration: none;
    opacity: 0;
    animation: fadeUp 0.6s 0.8s forwards;
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
    opacity: 0;
    animation: fadeUp 0.6s 1s forwards;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-2);
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: -2px;
    height: 1px;
    background: var(--accent);
    transition: left 0.3s, right 0.3s;
}

.nav-links a:hover::after {
    left: 0;
    right: 0;
}

/* Added hover effect to nav links */
.nav-links a:hover {
    color: var(--ink);
}

/* Making nav non-transparent while scrolling */
nav.scrolled {
    background: rgba(246, 244, 239, 0.88);
    backdrop-filter: blur(12px);
}

/* Styling myself page */
#hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 48px;
    padding-top: 64px;
}

.hero-name {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(4.5rem, 10vw, 6.5rem);
    line-height: 0.92;
    letter-spacing: -0.02em;
}

.hero-name .line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.15em;
}

.hero-name .line span {
    display: block;
    transform: translateY(110%);
    animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-name .line:nth-child(1) span {
    animation-delay: 0.3s;
}

.hero-name .line:nth-child(2) span {
    animation-delay: 0.45s;
}

.hero-desc {
    margin-top: 36px;
    font-size: 1rem;
    color: var(--ink-2);
    opacity: 0;
    animation: fadeUp 0.6s 0.9s forwards;
}

/* Styling about and projects section */
section {
    padding: 120px 48px;
    border-top: 1px solid #e0ddd6;
}

.section-label {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 56px;
}

.about-heading {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 300;
    line-height: 1.15;
}

.about-body p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ink-2);
    margin-bottom: 20px;
}

.about-body strong {
    color: var(--ink);
    font-weight: 400;
}


/* Styling skills section */
.skills {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 36px;
}

.skill-group-label {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin-bottom: 10px;
}

.skills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    padding: 6px 14px;
    border: 1px solid #d4d0c8;
    border-radius: 99px;
    font-size: 0.78rem;
    color: var(--ink-2);
}

/* Styling experience section */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.experience-item {
    padding-top: 40px;
    border-top: 1px solid #e0ddd6;
}

.experience-item:first-child {
    padding-top: 0;
    border-top: none;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.experience-role {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.experience-company {
    font-size: 0.9rem;
    color: var(--ink-2);
}

.experience-date {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
}

.experience-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.experience-points li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--ink-2);
    padding-left: 22px;
    position: relative;
}

.experience-points li::before {
    content: "\2014";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.card {
    background: var(--card);
    border-radius: 42px;
    padding: 40px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.15s;
}

/* Added hover effect to project cards */
.card-arrow {
    display: inline-block;
    font-size: 1.2rem;
    color: var(--ink-2);
    transform: rotate(-45deg);
    transition: transform 0.3s, color 0.3s;
}

.card:hover {
    transform: translateY(-4px);
}

.card:hover .card-arrow {
    transform: rotate(-45deg) translate(4px, -4px);
    color: var(--accent);
}

.card-num {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 3rem;
    color: #d4d0c8;
    line-height: 1;
    margin-bottom: 24px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--ink-2);
    line-height: 1.6;
}

/* Styling contact and footer section */
#contact {
    text-align: center;
}

.contact-heading {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 300;
    line-height: 1;
    margin-bottom: 40px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--ink);
    border-bottom: 1px solid currentColor;
    padding-bottom: 4px;
}

.contact-links {
    margin-top: 56px;
    display: flex;
    justify-content: center;
    gap: 32px;
}

.contact-links a {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-2);
    text-decoration: none;
}

footer {
    padding: 32px 48px;
    border-top: 1px solid #e0ddd6;
    display: flex;
    justify-content: space-between;
}

footer p {
    font-size: 0.75rem;
    color: var(--ink-2);
}


/* Fixing layout and other spacing */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
}

.projects-grid {
    display: grid;
    /* change repeat first input to how many projects on page */
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Making it responsive(for mobile devices, not desktop) */
@media (max-width: 768px) {
    nav, section, footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Adding animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(110%);
    }
    
    to {
        transform: translateY(0);
    }
}

/* Adding smooth scrolling */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* Custom Cursor */
#cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
}

#cursor.hovered {
    width: 36px;
    height: 36px;
    background: var(--accent-light);
}