/* General Styling */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #60a5fa;
    --background-color: #f8fafc;
    --card-background: #ffffff;
    --text-color: #1e293b;
    --text-light: #64748b;
    --header-background: #e2e8f0;
    --section-title-size: 2.5rem;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --section-spacing: 6rem;
    --border-radius: 1rem;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
}

/* Header Styling */
header {
    background: linear-gradient(120deg, #181c2f 80%, #2563eb 100%);
    box-shadow: 0 0 64px 16px #60a5fa33, 0 8px 32px #2563eb22;
    border-radius: 0 0 2.5rem 2.5rem;
    border-bottom: 3px solid #60a5fa;
    position: relative;
    overflow: visible;
    padding: 100px 0 60px 0;
    margin-bottom: 3rem;
    z-index: 10;
    animation: sectionFadeIn 1.1s cubic-bezier(0.4,0,0.2,1) both;
    opacity: 0;
}
header::before {
    content: '';
    position: absolute;
    top: -40px; left: 0; right: 0; height: 120px;
    background: linear-gradient(180deg, #60a5fa88 0%, transparent 100%);
    z-index: 0;
    pointer-events: none;
    border-radius: 0 0 2.5rem 2.5rem;
}
.header-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}
.profile-section {
    background: rgba(24,28,47,0.92);
    box-shadow: 0 0 48px 12px #60a5fa55, 0 2px 8px #181c2f99;
    border: 2.5px solid #60a5fa;
    border-radius: 2rem;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}
.profile-photo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 5px solid #60a5fa;
    object-fit: cover;
    box-shadow: 0 0 48px 12px #60a5fa99, 0 2px 8px #181c2f99;
    transition: box-shadow 0.4s, transform 0.4s;
    margin-bottom: 1.2rem;
}
.profile-photo:hover {
    box-shadow: 0 0 96px 24px #2563eb, 0 4px 16px #60a5fa;
    transform: scale(1.08) rotate(-2deg);
}
.profile-info {
    text-align: center;
}
.profile-info h1 {
    font-size: 3.2rem;
    margin: 0;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: #fff;
    margin-bottom: 0.5rem;
}
.title {
    font-size: 1.4rem;
    margin: 0.5rem 0 1.5rem;
    font-weight: 700;
    color: #60a5fa;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
}
.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.contact-info p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    color: #e0e7ef;
    padding: 0.75rem 1.5rem;
    background-color: rgba(37,99,235,0.08);
    border-radius: 2rem;
    transition: var(--transition);
    min-width: 200px;
    justify-content: center;
}
.contact-info p:hover {
    background-color: #2563eb;
    color: white;
    transform: translateY(-2px);
}
.contact-info p:hover i {
    color: white;
}
.contact-info p i {
    color: #60a5fa;
    font-size: 1.2rem;
    transition: var(--transition);
}

/* Header current role badge */
.current-role {
    display: inline-block;
    margin: 0.25rem 0 0.75rem 0;
    padding: 0.35rem 0.8rem;
    border-radius: 0.6rem;
    background: rgba(96,165,250,0.15);
    color: #e0e7ef;
    font-weight: 700;
    border: 1.5px solid #60a5fa;
}

/* Navigation Styling */
.sticky-nav {
    background: rgba(24,28,47,0.98);
    backdrop-filter: blur(10px);
    border-bottom: 2.5px solid #2563eb;
    box-shadow: 0 4px 24px 0 #2563eb33, 0 2px 8px #181c2f99;
    border-radius: 0 0 2.2rem 2.2rem;
    margin-bottom: 0.5rem;
    z-index: 9999;
    position: sticky;
    top: 0;
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    padding: 0.7rem 0;
}

.sticky-nav a {
    color: #fff !important;
    font-weight: 800;
    font-size: 1.25rem;
    text-shadow: 0 0 12px #2563eb88;
    background: linear-gradient(90deg, #181c2f 60%, #2563eb 100%);
    border-radius: 2.5rem;
    padding: 0.7rem 2.2rem;
    margin: 0 0.2rem;
    transition: background 0.22s, color 0.22s, box-shadow 0.22s, transform 0.22s;
    box-shadow: 0 2px 12px #2563eb33, 0 1px 4px #181c2f99;
    border: 2.5px solid #2563eb;
    position: relative;
    letter-spacing: 0.03em;
    outline: none;
    text-decoration: none;
}

.sticky-nav a:hover, .sticky-nav a.active {
    background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
    color: #fff;
    box-shadow: 0 0 24px #2563ebcc, 0 2px 12px #60a5fa88;
    text-shadow: 0 0 18px #60a5fa;
    border-color: #60a5fa;
    transform: scale(1.08);
}

.sticky-nav a:active {
    transform: scale(0.97);
    box-shadow: 0 0 12px #2563ebcc;
}

/* Ensure nav links are never underlined in any state */
.sticky-nav a:hover, .sticky-nav a:focus, .sticky-nav a:active {
    text-decoration: none;
}

/* About Me Section */
#about-me {
    max-width: 1200px;
    margin: 0 auto var(--section-spacing);
    padding: 3rem;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 2.5px solid rgba(96, 165, 250, 0.22);
    box-shadow: 0 2px 24px rgba(30, 41, 59, 0.10);
    background-clip: padding-box;
    animation: sectionFadeIn 1.1s cubic-bezier(0.4,0,0.2,1) both;
    opacity: 0;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.13rem;
    color: #e0e7ef;
    font-weight: 500;
}

.about-text strong {
    color: var(--text-color);
    font-weight: 600;
}

.skills {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 2.5px solid rgba(96, 165, 250, 0.22);
    box-shadow: 0 2px 24px rgba(30, 41, 59, 0.10);
    background-clip: padding-box;
}

.skills h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: var(--text-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tags span {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.skill-tags span:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Section Headings */
#major-projects h2,
#about-me h2,
#contact h2,
#experience h2 {
    font-size: 3.2rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 24px #2563eb, 0 2px 8px #181c2f;
    letter-spacing: 0.04em;
    margin-bottom: 2.7rem;
    position: relative;
    z-index: 2;
    line-height: 1.1;
}

#major-projects h2::after,
#about-me h2::after,
#contact h2::after,
#experience h2::after {
    content: '';
    display: block;
    margin: 1.1rem auto 0 auto;
    width: 160px;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
    box-shadow: 0 0 32px #2563ebcc;
    opacity: 0.98;
    animation: dividerGlow 2.5s infinite alternate;
}

#major-projects,
#about-me,
#contact,
#experience {
    position: relative;
    padding-top: 2rem;
    border: 2.5px solid rgba(96, 165, 250, 0.22);
    box-shadow: 0 2px 24px rgba(30, 41, 59, 0.10);
    background-clip: padding-box;
    animation: sectionFadeIn 1.1s cubic-bezier(0.4,0,0.2,1) both;
    opacity: 0;
}

#major-projects::before,
#about-me::before,
#contact::before,
#experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(
        to right,
        transparent,
        var(--text-light),
        transparent
    );
}

/* Projects Section */
#major-projects, #experiments {
    max-width: 1200px;
    margin: 0 auto var(--section-spacing);
    padding: 0 2rem;
    border: none !important;
    box-shadow: none !important;
}

/* Experience section: visually distinct but on-brand */
#experience {
    max-width: 1200px;
    margin: 0 auto var(--section-spacing);
    padding: 4rem 2rem 6rem 2rem;
    border-radius: var(--border-radius);
    background: linear-gradient(120deg, #181c2f 70%, #3b82f6 100%);
    border: 2.5px solid rgba(96, 165, 250, 0.35);
    box-shadow: 0 2px 24px rgba(30, 41, 59, 0.16), 0 0 32px rgba(59,130,246,0.18);
    position: relative;
    overflow: hidden; /* contain hover glow while providing ample padding */
}
#experience::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    pointer-events: none;
    border: 3px solid transparent;
    background: linear-gradient(120deg, #60a5fa 0%, #2563eb 100%) border-box;
    opacity: 0.12;
    z-index: 0;
}

#experience .projects-grid {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr); /* one card per row without overflow */
}

/* Experience cards: reduced glow compared to projects */
#experience .project-card {
    background: #181c2f; /* align with project cards at rest */
    border-left-color: var(--primary-color);
    border-left-width: 5px; /* thinner at rest */
    transition: box-shadow 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1), border-color 0.4s, border-left-width 0.2s ease;
    box-shadow: 0 0 24px 6px rgba(37, 99, 235, 0.20), 0 3px 18px rgba(37, 99, 235, 0.14), 0 2px 8px rgba(30, 41, 59, 0.10);
    box-sizing: border-box; /* ensure padding/border stay inside track */
    max-width: 100%;
    margin: 0 0 2rem 0;
    padding: 1.75rem; /* slightly tighter vertically */
}
#experience .project-card h3 {
    background-color: var(--background-color);
    margin-bottom: 0.8rem;
}
#experience .project-card:hover {
    transform: scale(1.004);
    box-shadow: 0 0 28px 10px #2563eb44, 0 2px 8px #60a5fa33;
    border-color: #60a5fa;
    z-index: 3;
    border-left-width: 8px; /* match project card hover feel */
}

/* Keep Experience card concise at a glance; full details open in modal */
#experience .preview p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1.1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem 2rem;
    margin-top: 3rem;
    align-items: start;
    align-content: start;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: 0 0 32px 8px rgba(37, 99, 235, 0.22), 0 4px 32px rgba(37, 99, 235, 0.18), 0 2px 8px rgba(30, 41, 59, 0.12);
    padding: 2.5rem;
    transition: box-shadow 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1), border-color 0.4s;
    cursor: pointer;
    position: relative;
    border: 2.5px solid rgba(37, 99, 235, 0.8);
    overflow: hidden;
    z-index: 1;
    opacity: 1 !important;
    animation: cardFadeIn 0.8s cubic-bezier(0.4,0,0.2,1) forwards;
    animation-delay: 0.2s;
    border-left: 8px solid var(--primary-color);
    padding-left: 2rem;
    background: #181c2f;
    box-shadow: 0 0 32px 8px rgba(37, 99, 235, 0.22), 0 4px 32px rgba(37, 99, 235, 0.18), 0 2px 8px rgba(30, 41, 59, 0.12), 0 0 40px 0 rgba(37,99,235,0.18);
}

.project-card:hover {
    transform: scale(1.025) translateY(-3px);
    box-shadow: 0 0 64px 20px #2563eb44, 0 2px 8px #60a5fa33;
    border-color: #60a5fa;
    z-index: 3;
}

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(40px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.project-card h3 {
    color: var(--text-color);
    margin-bottom: 1.25rem;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    padding: 0.75rem 1rem;
    background-color: var(--background-color);
    border-radius: 0.5rem;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.project-card:hover h3 {
    background-color: var(--background-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-card p {
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0.9;
}

.project-card pre {
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 1rem;
    overflow-x: auto;
    max-height: 300px;
    font-size: 0.95rem;
    color: #d4d4d4;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-card pre code {
    font-family: 'Fira Code', monospace;
    line-height: 1.6;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    overflow-y: auto;
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--card-background);
    margin: 2rem auto;
    padding: 3rem;
    width: 90%;
    max-width: 1200px;
    border-radius: var(--border-radius);
    position: relative;
    animation: modalPopInSoft 0.32s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 3px solid #2563eb;
    font-size: 1.12rem;
}

@keyframes modalPopInSoft {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content h3 {
    font-size: 2rem;
}

.modal-content pre {
    background-color: #1e1e1e;
    color: #d4d4d4;
    border-radius: 1rem;
    border: 2px solid var(--primary-color);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
    padding: 2rem;
    margin: 2rem 0;
    font-size: 1rem;
    max-height: 500px;
    overflow-x: auto;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.8rem;
    color: var(--text-light);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: var(--text-color);
    background-color: var(--background-color);
    transform: rotate(90deg);
}

/* Contact Section */
#contact {
    background: linear-gradient(120deg, #181c2f 60%, #2563eb 100%);
    box-shadow: 0 0 64px 16px #2563eb33, 0 8px 32px #2563eb22;
    border-radius: 2.2rem;
    border: 2.5px solid #2563eb;
    position: relative;
    overflow: hidden;
    padding: 3.5rem 2.5rem 3.5rem 2.5rem;
    margin-top: 2.5rem;
    text-align: center;
}
#contact .contact-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    z-index: 2;
    position: relative;
}
#contact .contact-info {
    margin-bottom: 2.5rem;
    justify-content: center;
}
#contact .social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}
#contact .social-link {
    color: #fff;
    font-size: 1.5rem;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    padding: 1rem;
    border-radius: 50%;
    background-color: #181c2f;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px #2563eb33;
    border: 2px solid #2563eb;
}
#contact .social-link:hover {
    color: #60a5fa;
    background-color: #2563eb;
    box-shadow: 0 8px 24px #2563eb55;
    border-color: #60a5fa;
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: var(--section-spacing);
}

footer p {
    margin: 0;
    opacity: 0.8;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .profile-photo {
        width: 180px;
        height: 180px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .sticky-nav {
        padding: 1rem;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
        width: calc(100% - 2rem);
    }

    .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .project-card {
        border-left: 5px solid var(--primary-color);
        padding-left: 1rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #0f172a;
        --card-background: #1e293b;
        --text-color: #f8fafc;
        --text-light: #94a3b8;
    }

    .project-card {
        border-color: rgba(255, 255, 255, 0.05);
    }

    .project-card pre {
        background-color: #0f172a;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .social-link {
        background-color: #1e293b;
    }

    .social-link:hover {
        background-color: #2d3748;
    }
}

.contact-form {
    max-width: 500px;
    margin: 2rem auto 3rem auto;
    background: var(--card-background);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 2px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.contact-form label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}
.contact-form input,
.contact-form textarea {
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--primary-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: var(--background-color);
    color: var(--text-color);
    transition: border-color 0.2s;
    resize: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}
.submit-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    margin-top: 0.5rem;
    align-self: flex-end;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}
.submit-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px) scale(1.03);
}
@media (max-width: 768px) {
    .contact-form {
        padding: 1.2rem 0.5rem;
    }
}

/* 1. Fix project-link (View on GitHub) button visibility */
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: #fff !important;
    padding: 0.7rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(37,99,235,0.12);
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    margin-top: 1rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 2;
}
.project-link:active {
    transform: scale(0.96);
    box-shadow: 0 1px 4px rgba(37,99,235,0.18);
}
.project-link:hover {
    background: var(--secondary-color);
    color: #fff;
    box-shadow: 0 4px 16px rgba(37,99,235,0.18);
}

/* 2. Center section headings and divider bars */
.section-divider {
    margin-left: auto;
    margin-right: auto;
    display: block;
}
#major-projects h2, #about-me h2, #contact h2, #experience h2 {
    text-align: center;
}

/* 3. Enhance header (top section) */
header {
    background: linear-gradient(120deg, #181c2f 80%, #2563eb 100%);
    box-shadow: 0 0 64px 16px #60a5fa33, 0 8px 32px #2563eb22;
    border-radius: 0 0 2.5rem 2.5rem;
    border-bottom: 3px solid #60a5fa;
    position: relative;
    overflow: visible;
    padding: 100px 0 60px 0;
    margin-bottom: 3rem;
    z-index: 10;
    animation: sectionFadeIn 1.1s cubic-bezier(0.4,0,0.2,1) both;
    opacity: 0;
}
header::before {
    content: '';
    position: absolute;
    top: -40px; left: 0; right: 0; height: 120px;
    background: linear-gradient(180deg, #60a5fa88 0%, transparent 100%);
    z-index: 0;
    pointer-events: none;
    border-radius: 0 0 2.5rem 2.5rem;
}
.header-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}
.profile-section {
    background: rgba(24,28,47,0.92);
    box-shadow: 0 0 48px 12px #60a5fa55, 0 2px 8px #181c2f99;
    border: 2.5px solid #60a5fa;
    border-radius: 2rem;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}
.profile-photo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 5px solid #60a5fa;
    object-fit: cover;
    box-shadow: 0 0 48px 12px #60a5fa99, 0 2px 8px #181c2f99;
    transition: box-shadow 0.4s, transform 0.4s;
    margin-bottom: 1.2rem;
}
.profile-photo:hover {
    box-shadow: 0 0 96px 24px #2563eb, 0 4px 16px #60a5fa;
    transform: scale(1.08) rotate(-2deg);
}
.profile-info {
    text-align: center;
}
.profile-info h1 {
    font-size: 3.2rem;
    margin: 0;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: #fff;
    margin-bottom: 0.5rem;
}
.title {
    font-size: 1.4rem;
    margin: 0.5rem 0 1.5rem;
    font-weight: 700;
    color: #60a5fa;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
}
.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
.contact-info p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    color: #e0e7ef;
    padding: 0.75rem 1.5rem;
    background-color: rgba(37,99,235,0.08);
    border-radius: 2rem;
    transition: var(--transition);
    min-width: 200px;
    justify-content: center;
}
.contact-info p:hover {
    background-color: #2563eb;
    color: white;
    transform: translateY(-2px);
}
.contact-info p:hover i {
    color: white;
}
.contact-info p i {
    color: #60a5fa;
    font-size: 1.2rem;
    transition: var(--transition);
}

/* 4. Enhance contact section styling*/
#contact {
    background: linear-gradient(120deg, #181c2f 60%, #2563eb 100%);
    box-shadow: 0 0 64px 16px #2563eb33, 0 8px 32px #2563eb22;
    border-radius: 2.2rem;
    border: 2.5px solid #2563eb;
    position: relative;
    overflow: hidden;
    padding: 3.5rem 2.5rem 3.5rem 2.5rem;
    margin-top: 2.5rem;
    text-align: center;
}
#contact .contact-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    z-index: 2;
    position: relative;
}
#contact .contact-info {
    margin-bottom: 2.5rem;
    justify-content: center;
}
#contact .social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}
#contact .social-link {
    color: #fff;
    font-size: 1.5rem;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    padding: 1rem;
    border-radius: 50%;
    background-color: #181c2f;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px #2563eb33;
    border: 2px solid #2563eb;
}
#contact .social-link:hover {
    color: #60a5fa;
    background-color: #2563eb;
    box-shadow: 0 8px 24px #2563eb55;
    border-color: #60a5fa;
}

/* Responsive tweaks */
@media (max-width: 900px) {
    .header-content {
        padding: 0 0.5rem;
    }
    .profile-section {
        padding: 1.5rem 0.7rem;
    }
    .profile-photo {
        width: 160px;
        height: 160px;
    }
}
@media (max-width: 768px) {
    header {
        border-radius: 0 0 1.2rem 1.2rem;
        padding: 60px 0 30px 0;
    }
    #contact {
        border-radius: 1.2rem;
        padding: 1.2rem 0.5rem;
    }
}

/* 3. Section stand-out and animation (header, about me, contact) */
@keyframes sectionFadeIn {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
header.visible, #about-me.visible, #contact.visible {
    opacity: 1;
}

/* Animated glowing border for header, about me, contact */
header::after, #about-me::after, #contact::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2.2rem;
    pointer-events: none;
    border: 3px solid transparent;
    background: linear-gradient(120deg, #2563eb 0%, #60a5fa 100%) border-box;
    opacity: 0.13;
    z-index: 0;
    animation: aboutBorderGlow 3s infinite alternate;
}
@keyframes aboutBorderGlow {
    0% { opacity: 0.13; }
    100% { opacity: 0.22; }
}

/* Unique animated background for header, about me, contact */
#about-me {
    background: linear-gradient(120deg, #181c2f 70%, #60a5fa 100%);
}
#contact {
    background: linear-gradient(120deg, #181c2f 60%, #2563eb 100%);
}

/* 4. Responsive tweaks */
@media (max-width: 900px) {
    header, #about-me, #contact {
        border-radius: 1.2rem;
    }
}
@media (max-width: 768px) {
    header, #about-me, #contact {
        border-radius: 1.2rem;
    }
}

/* JS for fade-in on scroll (to be added in HTML/JS):
window.addEventListener('DOMContentLoaded', () => {
  const sections = document.querySelectorAll('header, #about-me, #contact');
  const reveal = () => {
    sections.forEach(section => {
      const rect = section.getBoundingClientRect();
      if (rect.top < window.innerHeight - 60) {
        section.classList.add('visible');
      }
    });
  };
  window.addEventListener('scroll', reveal);
  reveal();
});
*/

/* Profile social buttons (header and contact section) */
.profile-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 1.13rem;
    padding: 0.7rem 1.7rem;
    border-radius: 2.5rem;
    background: linear-gradient(90deg, #181c2f 60%, #2563eb 100%);
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 2px 12px #2563eb33, 0 1px 4px #181c2f99;
    border: 2.5px solid #2563eb;
    transition: background 0.22s, color 0.22s, box-shadow 0.22s, transform 0.22s;
    letter-spacing: 0.02em;
    outline: none;
    margin: 0 0.1rem;
    position: relative;
    z-index: 2;
}
.profile-social-btn i {
    font-size: 1.25rem;
    margin-right: 0.3rem;
}

/* GitHub and LinkedIn both share the same base style */
.profile-social-btn.github,
.profile-social-btn.linkedin {
    background: linear-gradient(90deg, #181c2f 60%, #2563eb 100%);
    border-color: #2563eb;
}

/* Shared hover/focus effect */
.profile-social-btn:hover, 
.profile-social-btn:focus {
    background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
    color: #fff;
    box-shadow: 0 0 24px #2563ebcc, 0 2px 12px #60a5fa88;
    border-color: #60a5fa;
    transform: scale(1.07);
    text-shadow: 0 0 12px #60a5fa;
}

/* Active (click) effect */
.profile-social-btn:active {
    transform: scale(0.97);
    box-shadow: 0 0 12px #2563ebcc;
}

/* Responsive size adjustments */
@media (max-width: 600px) {
    .profile-social-btn {
        font-size: 0.98rem;
        padding: 0.5rem 1rem;
    }
    .profile-social-btn i {
        font-size: 1rem;
    }
}


/* Make 'View on GitHub' button in modal/full view larger, centered, and below the text */
.modal-content .project-link {
    display: block;
    margin: 2rem auto 0 auto;
    font-size: 1.25rem;
    padding: 1.1rem 2.5rem;
    border-radius: 2.5rem;
    font-weight: 900;
    text-align: center;
    max-width: 320px;
}

/* Site-wide tip (dismissible) */
.site-tip {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 10000;
    background: #0b1220cc;
    border: 2px solid #2563eb;
    border-radius: 0.9rem;
    box-shadow: 0 8px 24px rgba(37,99,235,0.25);
    backdrop-filter: blur(6px);
    color: #e5edff;
    overflow: hidden;
    transition: opacity 0.2s ease;
}
.site-tip-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem 0.8rem 1rem;
}
.site-tip-text {
    font-size: 0.98rem;
    font-weight: 700;
}
.site-tip-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.site-tip-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.45rem 0.8rem;
    border-radius: 0.5rem;
    font-weight: 800;
    cursor: pointer;
}
.site-tip-btn:hover { background: var(--secondary-color); }
.site-tip-close {
    background: transparent;
    color: #e5edff;
    border: 1.5px solid #60a5fa88;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.site-tip-close:hover { background: #1b2440; }

@media (max-width: 600px) {
    .site-tip { left: 0.75rem; right: 0.75rem; }
}


