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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: white;
}

header {
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e5e5;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: #111;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
}

nav a:hover,
nav a.active {
    color: #4a9eff;
}

.hero {
    background: #a8d5f7;
    padding: 4rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    min-height: 70vh;
}

.image-container {
    flex-shrink: 0;
}


.profile-image {
    width: 350px;
    height: 400px;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    max-width: 500px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #111;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 2.5rem;
    color: #111;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    color: #111;
    margin-bottom: 2rem;
    text-align: center;
}

.hero-text {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: white;
    border: 2px solid #111;
    border-radius: 8px;
    color: #111;
    text-decoration: none;
    font-weight: 600;
}

.cta-button:hover {
    background: #111;
    color: white;
}

.skills-section {
    padding: 5rem 3rem;
    background: white;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #111;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.skills-title {
    max-width: 600px;
    margin: 0 auto 3rem;
    text-align: center;
}

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

.skill-card {
    padding: 2rem;
    background: #a8d5f7;
    border-radius: 20px;
    border: 2px solid #111;
}

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #111;
}

.skill-card p {
    color: #333;
    line-height: 1.6;
}


.about-section {
    padding: 5rem 3rem;
    background: #a8d5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
}

.about-image {
    width: 400px;
    height: 450px;
    background: #ddd;
    border-radius: 30px;
    overflow: hidden;
    flex-shrink: 0;
    border: #111;
    border-style: solid;
    border-width: 2px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.about-content h2 {
    text-align: left;
    margin-bottom: 1rem;
}

.about-content p {
    font-size: 1rem;
    color: #333;
    line-height: 1.7;
    /* margin-bottom: 1rem; */
}

.education-box {
    background: white;
    border: 2px solid #111;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;

}

.exp-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.exp-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.exp-company img.exp-icon-small {
    width: 20px;
    height: 20px;
    margin-right: 0.4rem;
    vertical-align: middle;
}


.education-box h3 {
    margin-bottom: 0.5rem;
    color: #111;
}
.education-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Always two columns */
    gap: 1rem;
}


.education-box {
    background: white;
    border: 2px solid #111;
    border-radius: 20px;
    padding: 1.5rem;
}

.contact-box {
    background: #a8d5f7; /* light blue for emphasis */
    border: 2px solid #111;
    border-radius: 20px;
    padding: 1rem;
    flex: 1;
}

.about-row {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 2.5rem;
}

.resume-box {
    flex: 1;
}

.contact-box {
    flex: 1.5;      /* adjust: 1 = equal, 1.5 = a bit wider than resume */
    max-width: 650px; /* prevents it from getting huge */
    margin-left: 12rem;
}


.contact-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #111;
}

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

.contact-field {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    border: 2px solid #111;
    border-radius: 15px;
    padding: 1rem 1.2rem;
}

.contact-field h4 {
    margin-bottom: 0.2rem;
    font-size: 1rem;
    color: #111;
}

.contact-field p {
    font-size: 0.9rem;
    color: #333;
}

.contact-field a {
    text-decoration: none;
    color: #4a9eff;
}

.contact-field a:hover {
    text-decoration: underline;
}

.contact-field .icon {
    font-size: 1.4rem;
    text-decoration: none;
    color: #111;
}

.icon-img img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.icon-img {
    display: flex;
    align-items: center;
}

.icon-img:hover img {
    transform: scale(1.1);
    transition: 0.2s ease;
}

.resume-section {
    margin-top: 2rem;
}

.resume-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.experience-section .section-badge,
.cert-section .section-badge {
    display: block;
    width: fit-content;
    margin: 0 auto 1rem auto;
}


.experience-section {
    padding: 5rem 3rem;
    background: #fdfdfd;
}

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

.exp-card {
    background: white;
    border: 2px solid #111;
    border-radius: 20px;
    padding: 2rem;
}

.exp-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    display: flex;
}

.exp-company {
    margin-bottom: 1rem;
    color: #444;
}

.cert-section {
    padding: 5rem;
    background: #a8d5f7;
}

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

.cert-card {
    background: #a8d5f7;
    border: 2px solid #111;
    border-radius: 20px;
    padding: 1.5rem;
}

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


.work-section {
    padding: 5rem 3rem;
    background: white;
}

.work-intro {
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
}

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

.work-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid #111;
}

.work-image {
    width: 100%;
    height: 250px;
    background: #ddd;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-image img {
    border-radius: 12px;
}

.work-image img {
    transition: transform 0.4s ease;
}

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


.work-info {
    padding: 1.5rem;
}

.work-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #111;
}

.work-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.view-project {
    color: #111;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.view-project:hover {
    color: #4a9eff;
}

.footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 4rem;
}

.footer p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #a8d5f7;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    text-decoration: underline;
}




@media (max-width: 768px) {
    header {
        padding: 1.5rem 2rem;
    }

    .hero, .about-section {
        flex-direction: column;
        padding: 3rem 2rem;
    }

    .profile-image, .about-image {
        width: 300px;
        height: 350px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .skills-grid, .work-grid {
        grid-template-columns: 1fr;
    }
}
