html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: #0f1117;
    color: #ffffff;
    line-height: 1.6;
}

h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 0.25em;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

/* Contact Info (Social links on hero) */
.contact-info {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 2;
    display: flex;
    gap: 1.25rem;
    font-size: 0.9rem;
}

.contact-info a {
    color: #7289DA;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contact-info a:hover {
    color: #5b6fb0;
    text-decoration: underline;
}

.resume-link {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2;
    font-size: 0.9rem;
}

.resume-link a {
    color: #7289DA;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.resume-link a:hover {
    color: #5b6fb0;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .contact-info {
        flex-direction: column;
        left: 1rem;
        top: 1rem;
        gap: 0.5rem;
    }

    .resume-link {
        right: 1rem;
        top: 1rem;
    }
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height:%;
    object-fit: cover;
    filter: brightness(0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.25em;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 1em;
    font-weight: 300;
    color: #cfcfe8;
}
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}


.cta-button {
    display: inline-block;
    padding: 0.65em 1.5em;
    background-color: #7289DA;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #5b6fb0;
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 8em 1em;
    max-width: 1000px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 1em;
    color: #7289DA;
    text-align: center;
}

.about p {
    margin-bottom: 1em;
    color: #d1d2e0;
}

/* Services */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2em;
}

.service-item {
    background-color: #1a1d24;
    padding: 1.5em;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    /* Add a bottom margin to space out each service card similar to portfolio cards */
    margin-bottom: 2em;
}

.service-item h3 {
    color: #ffffff;
    margin-bottom: 0.5em;
}

.service-item p {
    color: #cfcfe8;
    font-size: 0.95rem;
	padding: 2em;
}

.service-item:hover {
    /* Move the card up slightly on hover to mirror the portfolio card effect */
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px));
    gap: 2em;
}

.portfolio-card {
    background-color: #1a1d24;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.portfolio-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.portfolio-details {
    padding: 1em;
}

.portfolio-details h3 {
    margin-bottom: 0.5em;
    color: #ffffff;
}

.portfolio-details p {
    font-size: 0.9rem;
    color: #cfcfe8;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.portfolio-link {
    text-align: center;
    margin-top: 2em;
    font-size: 0.95rem;
}

.portfolio-link a {
    color: #7289DA;
    text-decoration: underline;
}

/* Timeline (Experience & Education) */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2em;
}

.timeline-item {
    background-color: #1a1d24;
    padding: 1.5em;
    border-left: 4px solid #7289DA;
    border-radius: 4px;
}

.timeline-item h3 {
    margin-bottom: 0.25em;
    color: #ffffff;
}

.timeline-item .timeline-date {
    font-size: 0.85rem;
    color: #a0a2b8;
    display: block;
    margin-bottom: 0.5em;
}

.timeline-item p {
    font-size: 0.9rem;
    color: #cfcfe8;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1em;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form label {
    font-weight: 600;
    color: #ffffff;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75em;
    border-radius: 4px;
    border: none;
    background-color: #1a1d24;
    color: #ffffff;
    font-size: 0.95rem;
}

.contact-form button {
    align-self: center;
    padding: 0.75em 1.5em;
    background-color: #7289DA;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.contact-form button:hover {
    background-color: #5b6fb0;
}


/* Footer */
.footer {
    padding: 1em 0;
    text-align: center;
    background-color: #0f1117;
    color: #a0a2b8;
    font-size: 0.85rem;
}

/* Ensure the entire portfolio card is clickable when wrapped in an anchor */
.portfolio-link-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* Responsive Tweaks */
@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }
    .section {
        padding: 3em 1em;
    }
}