/* --- Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #fcfcfc;
    color: #4a5568;
    line-height: 1.6;
}

/* --- Utility Classes --- */
h2 span {
    color: #a0aec0;
    font-weight: 400;
}

.sub-heading-center {
    text-align: center;
    font-size: 1.5rem;
    color: #2d3748;
    margin: 3.5rem 0 2rem 0;
}

/* --- Icons --- */
.social-card-icon, .contact-icon, .sub-icon, .achievement-main-icon {
    color: #3182ce;
}

/* --- Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 8%;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a202c;
    letter-spacing: -1px;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: #3182ce;
}

/* --- Expanded About Me / Hero Section --- */
.about {
    min-height: 100vh;
    padding-top: 110px;
    padding-bottom: 5rem;
    background: linear-gradient(135deg, #f8fafd 0%, #edf2f7 100%);
    display: flex;
    align-items: center;
}

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

.about-content {
    max-width: 680px;
}

.greeting-prefix {
    color: #3182ce;
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.about-content h1 {
    font-size: 3.4rem;
    margin-bottom: 1.25rem;
    color: #1a202c;
    line-height: 1.15;
    font-weight: 800;
}

.hero-bio {
    font-size: 1.12rem;
    margin-bottom: 2rem;
    color: #4a5568;
    line-height: 1.7;
}

.detailed-about {
    margin-top: 2rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 2rem;
}

.sub-section {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.sub-icon {
    font-size: 1.5rem;
    margin-top: 0.25rem;
    background-color: #ebf8ff;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.sub-info {
    flex-grow: 1;
}

.sub-info h3 {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 0.4rem;
}

.edu-item {
    margin-bottom: 0.8rem;
}

.edu-item:last-child {
    margin-bottom: 0;
}

.edu-deg {
    font-size: 1rem;
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.cpi-tag {
    display: inline-block;
    background-color: #e6fffa;
    color: #234e52;
    border: 1px solid #b2f5ea;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
}

.location-date {
    color: #718096;
    font-size: 0.92rem;
}

/* --- Profile Photo --- */
.about-photo {
    flex-shrink: 0;
    width: 340px;
}

.photo-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    padding-bottom: 120%;
    background-color: #e2e8f0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border: 4px solid #ffffff;
}

.profile-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-wrapper:hover .profile-img {
    transform: scale(1.02);
}

/* --- Buttons --- */
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    background-color: #3182ce;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.98rem;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid #3182ce;
}

.btn:hover {
    background-color: #2b6cb0;
    border-color: #2b6cb0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.25);
}

.btn-outline {
    background-color: transparent;
    color: #3182ce;
}

.btn-outline:hover {
    background-color: #ebf8ff;
    color: #2b6cb0;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.12);
}

/* --- Skills Section --- */
.skills {
    padding: 5.5rem 8%;
    background-color: #f7fafc;
}

.skills h2, .projects h2, .experience h2, .achievements h2, .certificates h2, .contact h2 {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 3.5rem;
    color: #1a202c;
    font-weight: 700;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    background-color: #ffffff;
    padding: 2.2rem 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.skill-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.skill-card-header i {
    font-size: 1.5rem;
    color: #3182ce;
    background-color: #ebf8ff;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.skill-card-header h3 {
    font-size: 1.25rem;
    color: #2d3748;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.skill-tags span {
    background-color: #f7fafc;
    color: #2b6cb0;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.skill-tags span:hover {
    background-color: #ebf8ff;
    border-color: #bee3f8;
    transform: translateY(-1px);
}

/* --- Projects Section --- */
.projects {
    padding: 5.5rem 8%;
    background-color: #ffffff;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: #ffffff;
    padding: 2.4rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.project-header {
    margin-bottom: 1rem;
}

.project-badge {
    display: inline-block;
    background-color: #edf2f7;
    color: #4a5568;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    margin-bottom: 0.6rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.project-badge.highlight {
    background-color: #feebc8;
    color: #7b341e;
    border: 1px solid #fbd38d;
}

.project-card h3 {
    font-size: 1.35rem;
    color: #1a202c;
    line-height: 1.3;
}

.project-desc {
    color: #718096;
    margin-bottom: 1.2rem;
    font-size: 0.96rem;
}

.project-bullets {
    list-style: none;
    margin-bottom: 1.5rem;
}

.project-bullets li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.65rem;
    color: #4a5568;
    font-size: 0.92rem;
    line-height: 1.55;
}

.project-bullets li::before {
    content: "•";
    position: absolute;
    left: 0.2rem;
    color: #3182ce;
    font-size: 1.25rem;
    top: -2px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
    margin-top: auto;
}

.tags span {
    background-color: #ebf8ff;
    color: #3182ce;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-footer {
    border-top: 1px solid #edf2f7;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.project-link {
    color: #3182ce;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease;
}

.project-link:hover {
    color: #2b6cb0;
    text-decoration: underline;
}

/* --- Experience Section --- */
.experience {
    padding: 5.5rem 8%;
    background-color: #f7fafc;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.experience-card {
    background-color: #ffffff;
    padding: 2.4rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.exp-role-info h3 {
    font-size: 1.35rem;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

.exp-org {
    font-size: 1rem;
    color: #3182ce;
    font-weight: 600;
}

.exp-badge {
    background-color: #ebf8ff;
    color: #2b6cb0;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    white-space: nowrap;
    border: 1px solid #bee3f8;
}

.exp-bullets {
    list-style: none;
}

.exp-bullets li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.75rem;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
}

.exp-bullets li::before {
    content: "•";
    position: absolute;
    left: 0.2rem;
    color: #3182ce;
    font-size: 1.25rem;
    top: -2px;
}

/* --- Achievements / Honors Section --- */
.achievements {
    padding: 5.5rem 8%;
    background-color: #ffffff;
}

.honors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem auto;
}

.honor-card {
    background-color: #ffffff;
    padding: 2.2rem 1.8rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.honor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.honor-icon {
    font-size: 2rem;
    color: #d69e2e;
    background-color: #fefcbf;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.honor-rank {
    font-size: 1.35rem;
    font-weight: 800;
    color: #2b6cb0;
    margin-bottom: 0.4rem;
}

.honor-card h3 {
    font-size: 1.15rem;
    color: #1a202c;
    margin-bottom: 0.75rem;
}

.honor-card p {
    font-size: 0.92rem;
    color: #718096;
    line-height: 1.5;
}

.cp-showcase {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.cp-showcase h3 {
    font-size: 1.4rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.cp-showcase p {
    color: #718096;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.cp-links {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.cp-btn {
    background-color: #ffffff;
    font-size: 0.95rem;
    padding: 0.75rem 1.6rem;
}

/* --- Certifications & Workshops Section --- */
.certificates {
    padding: 5.5rem 8%;
    background-color: #f7fafc;
}

.cert-simulations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.simulation-card {
    background-color: #ffffff;
    padding: 2.2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.simulation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.sim-header {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}

.sim-icon {
    font-size: 1.6rem;
    color: #3182ce;
    background-color: #ebf8ff;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sim-issuer {
    color: #3182ce;
    font-weight: 600;
    font-size: 0.92rem;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cert-card {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.cert-img-container {
    height: 200px;
    width: 100%;
    background-color: #edf2f7;
    overflow: hidden;
}

.cert-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cert-card:hover .cert-img {
    transform: scale(1.05);
}

.cert-content {
    padding: 1.6rem;
}

.cert-year {
    display: block;
    color: #718096;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cert-title {
    font-size: 1.25rem;
    color: #2d3748;
    margin-bottom: 0.75rem;
}

.cert-desc {
    color: #718096;
    font-size: 0.94rem;
    line-height: 1.55;
}

/* --- Contact Section --- */
.contact {
    padding: 5.5rem 8%;
    background-color: #ffffff;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.contact-info, .contact-social {
    padding: 1.5rem;
}

.contact h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.contact-info p {
    color: #718096;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    margin-bottom: 1.2rem;
}

.contact-icon {
    font-size: 1.2rem;
    background-color: #ebf8ff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.contact-link {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #3182ce;
    text-decoration: underline;
}

.social-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
}

.social-card {
    background-color: #ffffff;
    padding: 1.2rem 1.4rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: #4a5568;
    font-weight: 600;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.social-card:hover {
    transform: translateY(-3px);
    border-color: #3182ce;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    color: #3182ce;
}

.social-card-icon {
    font-size: 1.4rem;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2.5rem;
    background-color: #1a202c;
    color: #a0aec0;
    font-size: 0.92rem;
}

/* --- JavaScript Animation Classes --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Hamburger Icon & Mobile Menu --- */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #1a202c;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- Responsive Design (Mobile Devices) --- */
@media (max-width: 900px) {
    nav {
        padding: 1rem 6%;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        padding: 1.5rem 0;
        gap: 1.4rem;
        text-align: center;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .about {
        padding-top: 90px;
    }

    .about-container {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    .about-photo {
        width: 240px;
        margin-bottom: 1.5rem;
    }

    .about-content {
        padding-right: 0;
        text-align: center;
    }

    .about-content h1 {
        font-size: 2.6rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .sub-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .sub-icon {
        margin-top: 0;
    }

    .cpi-tag {
        display: block;
        margin: 0.3rem auto 0 auto;
        width: fit-content;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-info, .contact-social {
        padding: 1rem;
    }

    .contact-list li {
        justify-content: center;
    }

    .social-card {
        justify-content: center;
    }

    .experience-grid, .project-grid, .cert-simulations-grid {
        grid-template-columns: 1fr;
    }
}