:root {
    --primary-color: #f8c8ff;
    --secondary-color: #f2a0ff;
    --text-color: #2d3748;
    --light-gray: #f0f0f0;
    --lighter-gray: #f5f5f5;
    --white: #ffffff;
    --spacing: 1.5rem;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    background: linear-gradient(45deg, var(--white), var(--primary-color));
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(100px);
    -webkit-backdrop-filter: blur(100px);
    z-index: -1;
    background: rgba(255, 255, 255, 0.5);
}

main {
    position: relative;
    z-index: 1;
    padding-top: 15vh;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 85vh;
}

h2{
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.container {
    max-width: 80vw;
    margin: 0 auto;
    padding: 0 var(--spacing);
}

@media (max-width: 768px) {
    .container {
        max-width: 90vw;
    }
}

/* Header Styles */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.);
    position: fixed;
    width: 95vw;
    margin-left: 2.5vw;
    margin-top: 1rem;
    border-radius: 20px;
    top: 0;
    z-index: 1000;

}

.line {
    height: 2px;
    width: 100%;
    background-color: var(--primary-color);
}	

.navbar {
    padding: .5rem 0;
}


.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}

.logo-image {
    max-height: 4rem;
    width: auto;
    border-radius: 50%;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-text-container {
    margin-left: 1rem;
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.5rem;
    color: var(--text-color);
}

.logo-subtext {
    font-size: 1rem;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    animation: fadeOutToTop 0.3s ease forwards;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: transform 0.3s ease;
}

/* Action Cards */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.action-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.35);
    cursor: pointer;
}

.action-card i {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.action-card h3 {
    margin-bottom: 0.5rem;
}

.action-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Footer */
.main-footer {
    background: rgba(255, 68, 0, 0.0); /* Using var(--primary-color) with transparency */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    padding: var(--spacing) 0;
    margin-top: var(--spacing);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
}

.button {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: none;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.button:hover {
    cursor: pointer;
    background-color: var(--secondary-color);
}

.footer-logo {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin: 0 0.5rem;
    display: inline-block;
}

.footer-logo:hover {
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 110%;
        left: 0;
        right: 0;
        border-radius: 20px;
        background-color: var(--white);
        padding: 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: var(--text-color);
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-subtext {
        display: none;
    }

    /* Hamburger Animation */
    .hamburger.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .action-card {
        padding: 1rem;
    }
}

/* Hero Section Styles */
.hero {
    padding: calc(var(--spacing) * .5) 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    max-width: 25vw;
    width: 100%;
    height: auto;
    clip-path: circle(48% at 50% 50%);
    transition: clip-path 0.3s ease;
}

.hero-illustration:hover {
    clip-path: circle(50% at 50% 50%);
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .hero-illustration {
        max-width: 40vw;
    }
}


.welcome-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.welcome-text {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.welcome-image {
    position: relative;
}

.welcome-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


.skills-grid {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.skill-item {
    background: linear-gradient(145deg, var(--white), var(--primary-color));
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.timeline-table {
    width: 100%;
    margin-bottom: 2rem;
}

.timeline-table tr {
    background: var(--primary-color);
    border-radius: 15px;
}

.timeline-table tr:last-child td:first-child {
    border-bottom-left-radius: 10px; /* Rounded bottom left */
}
    
.timeline-table tr:last-child td:last-child {
    border-bottom-right-radius: 10px; /* Rounded bottom right */
}

.timeline-table tr:first-child th:first-child {
    border-top-left-radius: 10px; /* Rounded top left */
}
    
.timeline-table tr:first-child th:last-child {
    border-top-right-radius: 10px; /* Rounded top right */
}

.timeline-table td, .timeline-table th {
    padding: 1.5rem;
    border: none;
    text-align: center;
}



@media (max-width: 768px) {
    .welcome-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

.project-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    margin-top: 3rem;
}

.project-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    padding: 1.5rem;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 35vw;
    margin-left: auto;
    margin-right: auto;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

.project-image {
    width: calc(35% - 1rem);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    border: 3px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-card-content {
    flex: 1;
    max-width: calc(75% - 2rem);
}

.project-card-content h3 {
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.project-card-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.project-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.project-button:hover {
    background-color: var(--secondary-color);
}

@media (max-width: 768px) {
    .project-button {
        display: block;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .project-card {
        flex-direction: column;
        padding: 1rem;
        text-align: center;
        max-width: 95vw;
        width: 95vw;
    }
    
    .project-image {
        width: 100px;
        height: 100px;
    }

    .project-card-content {
        max-width: 100%;
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-info button {
    margin-bottom: 1rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    font-family: inherit;
    background: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Add this keyframe animation */
@keyframes fadeInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modify the .nav-links.active style */
.nav-links.active {
    display: flex;
    animation: fadeInFromTop 0.3s ease forwards;
}

