/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

body::-webkit-scrollbar {
    display: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: #1a202c;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
}

.hero-content {
    text-align: center;
    padding: 2rem;
}

.hero h1 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
    opacity: 0.9;
}

/* About Section */
.about {
    padding: 5rem 0;
}

.about p {
    font-size: 1.1rem;
    color: #4a5568;
    max-width: 800px;
}

@keyframes fadeToWhite {
    0% {
        opacity: 0;
        color: #4f46e5; 
    }
    100% {
        opacity: 1;
        color: white;
    }
}

/* Update hero title animation */
#title {
    font-size: 65pt;
    animation: fadeToWhite 1.5s ease-in-out forwards;
}

#subtitle {
    font-size: 25pt;
    animation: fadeToWhite 1.5s ease-in-out 0.3s forwards; /* 0.3s delay */
    opacity: 0; /* Start hidden */
}

/* Remove these elements from the general hidden class animation if they exist */
#title.hidden,
#subtitle.hidden {
    opacity: 1; /* Override the general hidden class */
    transform: none; /* Remove any transform */
    transition: none; /* Remove transition */
}

/* Experience Section */
.experience {
    padding: 5rem 0;
    background-color: white;
}

.experience-card {
    background-color: white;
    border-radius: 0.75rem;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #4f46e5;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.experience-title {
    flex: 1;
    min-width: 250px;
}

.experience-title h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

.experience-title .company {
    font-size: 1.25rem;
    color: #4f46e5;
    font-weight: 600;
}

.experience-date {
    color: #6b7280;
    font-weight: 500;
    font-size: 1rem;
}

.experience-achievements {
    list-style: none;
    padding: 0;
}

.experience-achievements li {
    color: #4a5568;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.experience-achievements li:before {
    content: "▸";
    color: #4f46e5;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Projects Section */
.projects {
    padding: 5rem 0;
    background-color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #1a202c;
}

.project-content p {
    color: #4a5568;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: #e0e7ff;
    color: #4f46e5;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

/* Skills Section */
.skills {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-card {
    text-align: center;
    padding: 2rem;
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #1a202c;
}

.skill-card p {
    color: #4a5568;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: #f8f9fa;
    text-align: center;
}

.contact p {
    color: #4a5568;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: #4f46e5;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #4338ca;
}

/* Footer */
footer {
    background-color: #1a202c;
    color: white;
    text-align: center;
    padding: 2rem;
}

#about-pic {
    height: 400px;
    width: 330px;
    border-radius: 7%;
    margin: 1rem 0;
}

#bio {
    display: flex;
    justify-content: space-between;
}

#description {
    width: 550px;
    text-align: justify;
}

.links {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

.icons {
    height: 50px;
    width: 50px;
    margin: 0 1rem;
    cursor: pointer;
}

.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 200ms; }
.delay-2 { transition-delay: 400ms; }
.delay-3 { transition-delay: 600ms; }