/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Georgia&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tiro+Devanagari+Hindi:ital@1&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #F5F5F0;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    min-height: 100vh;
    padding: 20px 60px 40px 60px;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 80px);
    position: relative;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 80px;
    margin-top: -10px;
    padding-right: 0;
}

.username {
    font-family: Georgia, serif;
    font-size: 16px;
    color: #A0A0A0;
    margin-left: -20px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-right: -20px;
}

.icon {
    display: block;
    width: 20px;
    height: 20px;
    opacity: 1;
}

.icon img {
    width: 100%;
    height: 100%;
}

/* Main content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 60px;
    margin-bottom: 0;
    margin-left: 90px;
    margin-top: 40px;
}

.intro-text {
    max-width: 480px;
    justify-self: center;
    padding-left: 20px;
    padding-right: 20px;
}

.hindi {
    font-family: 'Tiro Devanagari Hindi', serif;
    font-style: italic;
    font-size: 30px;
    color: #000000;
    margin-bottom: 0px;
    font-weight: 400;
    line-height: 1;
}

.name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 30px;
    color: #000000;
    margin-bottom: 20px;
    line-height: 1;
}

.description {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    font-size: 18px;
    line-height: 1.3;
    color: #000000;
}

.highlight {
    font-weight: 600;
}

.italic {
    font-style: italic;
}

.profile-image {
    max-width: 400px;
    position: relative;
    justify-self: center;
}

.profile-image img {
    width: 100%;
    height: auto;
    display: block;
}

.next-event {
    max-width: 300px;
    display: flex;
    flex-direction: column;
    justify-self: start;
}

.next-label {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    color: #A0A0A0;
    display: block;
    margin-bottom: 2px;
}

.countdown {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    color: #A0A0A0;
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 60px;
    margin-top: 15px;
    justify-content: center;
    margin-left: 90px;
}

.main-nav a {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #A0A0A0;
    text-decoration: none;
    transition: color 0.3s, font-weight 0.3s;
    font-weight: 400;
}

.main-nav a:hover {
    color: #000000;
    font-weight: 700;
}

/* Footer coordinates */
footer {
    position: absolute;
    bottom: -40px;
    left: -60px;
    right: -60px;
    padding-left: 40px;
    padding-right: 60px;
}

.coordinates {
    display: flex;
    gap: 40px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: visible;
}

.coordinates span {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    font-size: 14px;
    color: #A0A0A0;
    white-space: nowrap;
}

/* Work Page Styles */
.work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 80px;
    margin-top: -10px;
}

.page-title {
    font-family: Georgia, serif;
    font-size: 18px;
    color: #A0A0A0;
    margin-left: -20px;
}

.resume-link {
    font-family: Georgia, serif;
    font-size: 18px;
    color: #A0A0A0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: -20px;
    transition: color 0.3s;
}

.resume-link:hover {
    color: #000000;
}

.arrow {
    font-size: 14px;
    display: inline-block;
    transform: rotate(45deg);
}

.work-main {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.work-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.work-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    position: relative;
    padding-left: 20px;
}

.work-item::before {
    content: '○';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 12px;
    color: #000000;
    line-height: 1.5;
    width: 12px;
    text-align: center;
}

.work-item.current::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #4ade80;
    border-radius: 50%;
    position: absolute;
    left: 2px;
    top: 6px;
    animation: pulse-glow 2.5s ease-out infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    }
    60% {
        box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
    }
    60.01% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

.work-role {
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 18px;
    color: #000000;
    flex: 1;
    margin-left: 0;
}

.work-date {
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 18px;
    color: #000000;
}

.work-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-caption {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #A0A0A0;
    text-align: left;
}

/* Projects Page Styles */
.projects-header {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 80px;
    margin-top: -10px;
}

.projects-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
}

.typing-container {
    display: flex;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    font-size: 48px;
    color: #A0A0A0;
}

.typing-text {
    display: inline-block;
    color: #A0A0A0;
    user-select: none;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 48px;
    background-color: #A0A0A0;
    margin-left: 5px;
    animation: blink-cursor 1s infinite;
}

@keyframes blink-cursor {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Writing Page Styles */
.writing-header {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 80px;
    margin-top: -10px;
}

.writing-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
}