:root {
    --dark-bg: #222831;
    --medium-bg: #31363F;
    --accent: #76ABAE;
    --light: #EEEEEE;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--light);
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
}

.container {
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scrollbar-width: none; /* Firefox */
}

.container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.page {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    scroll-snap-align: start;
    padding: 0;
}

/* Greetings Page */
.greeting-content {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1.5s forwards;
    position: relative;
}

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

.profile-container {
    position: absolute;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

.profile-image {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center 25%;
    opacity: 0;
    animation: fadeIn 1.5s 0.5s forwards;
    filter: grayscale(100%) opacity(0.4);
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

.greeting-text {
    color: var(--accent);
    font-size: 1.2rem;
    position: absolute; /* Position at the top */
    top: 50px; /* Adjust as needed for your design */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 3;
}

.greeting-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(34, 40, 49, 0.7), rgba(34, 40, 49, 0.9));
    padding-bottom: 60px;
    text-align: center;
    z-index: 2;
}

.name {
    color: var(--accent);
    font-size: 2.5rem;
    font-weight: bold;
    margin: 10px 0;
    text-align: center;
}

/* Default for mobile - show as two lines */
.name span {
    display: block;
}

/* For larger screens - show as single line */
@media (min-width: 768px) {
    .name {
        font-size: 3.5rem;
    }
    .name span {
        display: inline;
    }
}

@media (min-width: 1024px) {
    .name {
        font-size: 4rem;
    }
}

.know-more {
    color: var(--accent);
    font-size: 0.9rem;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.know-more i {
    margin-top: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* About Page */
.about-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 50px 20px;
    padding-bottom: 150px; /* Increased padding to ensure content is visible above footer */
    overflow-y: auto;
}

.about-title {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 30px;
    align-self: center;
}

.interest-area {
    margin-bottom: 30px;
    width: 100%;
    text-align: center;
}

.interest-static {
    color: var(--light);
    margin-bottom: 5px;
}

.interest-container {
    height: 30px;
    overflow: hidden;
    position: relative;
}

.interest-item {
    opacity: 0;
    position: absolute;
    width: 100%;
    transition: opacity 1s ease;
    color: var(--accent);
    font-weight: bold;
}

.interest-item.active {
    opacity: 1;
}

.current-info {
    margin-bottom: 40px;
    text-align: center;
    width: 100%;
}

.current-info span {
    color: var(--accent);
    font-weight: bold;
}

.experience-section {
    width: 100%;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tabs {
    display: flex;
    justify-content: center; /* Center the tabs */
    margin-bottom: 20px;
}

.tab {
    color: var(--light);
    padding: 5px 15px;
    cursor: pointer;
    margin-right: 10px;
    border-bottom: 2px solid transparent;
}

.tab.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

.tab-content {
    display: none;
    width: 100%;
    scrollbar-width: none;
    position: relative;
}

.tab-content.active {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Add these new animation classes */
.slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive grid based on screen size */
@media (min-width: 768px) {
    .tab-content.active {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tab-content.active {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background-color: var(--medium-bg);
    border-radius: 15px;
    margin-bottom: 15px;
    padding: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid var(--accent);
    max-width: 100%;
}

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

.card-image-container {
    margin-bottom: 0;
}

.card-role {
    display: none;
}

.card-image {
    width: 100%;
    height: 150px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    margin-top: 5px;
}

.tag {
    background-color: var(--accent);
    color: var(--dark-bg);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-right: 5px;
    margin-bottom: 5px;
}

.expanded-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    height: auto;
    max-height: 80vh;
    background-color: var(--medium-bg);
    border-radius: 20px;
    padding: 20px;
    z-index: 1000;
    overflow-y: auto;
    display: none;
    scrollbar-width: none; /* Firefox */
}

.expanded-card::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.expanded-card-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--dark-bg);
    color: var(--light);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: none;
}

/* Footer */
.footer {
    width: 100%;
    background-color: var(--medium-bg);
    padding: 15px;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 10;
}

.social-icons {
    margin-bottom: 10px;
}

.social-icons a {
    color: var(--light);
    margin: 0 10px;
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent);
}

.copyright {
    font-size: 0.8rem;
    color: var(--light);
}

/* Scroll arrow indicator */
.scroll-indicator {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--accent);
    font-size: 24px;
    z-index: 100;
}

/* Update social links styles */
.social-links {
    margin: 30px 0;
    display: flex;
    gap: 35px; /* Increased from 25px */
    justify-content: center;
}

.social-links a {
    color: var(--light); /* Changed from default blue */
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

/* Update expanded card styles */
.expanded-card-location {
    font-size: 0.9rem;
    color: var(--light);
    opacity: 0.8;
    margin: 10px 0;
    text-align: center;
}

.expanded-card-header {
    margin: 15px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--accent);
}

.expanded-card-role {
    color: var(--accent);
    font-size: 1rem;
    font-weight: bold;
}

.expanded-card-description {
    margin-top: 15px;
    line-height: 1.5;
}

/* Update card title and role styles */
.card h4 {
    margin-top: 10px;
    margin-bottom: 4px;
    font-size: 1rem;
}

.card h5 {
    display: block;
    color: var(--light);
    font-size: 0.75rem;
    margin-bottom: 10px;
    font-weight: normal;
    opacity: 0.8;
}

/* Update expanded card role box */
.expanded-card-role-box {
    margin-top: 5px;
    margin-bottom: 15px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: bold;
}