
/* ===== Global Styles ===== */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #0b1120;
    color: #e5e7eb;
    line-height: 1.6;
}

/* ===== Navigation ===== */

header {
    background-color: #0b1120;
    border-bottom: 1px solid #1e293b;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

.logo span {
    color: #38bdf8;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #38bdf8;
}


/* ===== Hero Section: Left Text, Right Photo ===== */

.hero {
    min-height: 85vh;
    max-width: 1100px;
    margin: auto;
    padding: 80px 20px;

    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    align-items: center;
    gap: 50px;

    text-align: left;
}

/* Hero text stays on the left */

.hero h1 {
    font-size: clamp(40px, 6vw, 75px);
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero h2 {
    font-size: clamp(20px, 3vw, 30px);
    color: #94a3b8;
    margin-bottom: 20px;
}

.hero-description {
    max-width: 600px;
    color: #94a3b8;
    font-size: 17px;
    margin-bottom: 30px;
}

/* Profile photo on the right */

.hero-profile-photo {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 4 / 3;

    object-fit: cover;
    object-position: center;

    border-radius: 12px;
    border: 2px solid #eff1f5;

    justify-self: end;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

/* Buttons stay on the left */

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}

/* ===== Mobile Layout ===== */

@media (max-width: 700px) {

    .hero {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 35px;
        padding-top: 60px;
    }

    .hero-profile-photo {
        max-width: 100%;
        width: 100%;
        justify-self: start;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

}


.btn {
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.primary-btn {
    background-color: #38bdf8;
    color: #0b1120;
}

.primary-btn:hover {
    background-color: #0ea5e9;
    transform: translateY(-3px);
}

.secondary-btn {
    border: 1px solid #38bdf8;
    color: #38bdf8;
}

.secondary-btn:hover {
    background-color: #172554;
    transform: translateY(-3px);
}

/* ===== Common Sections ===== */

.section {
    max-width: 1100px;
    margin: auto;
    padding: 80px 20px;
}

.section h2 {
    font-size: 35px;
    color: #ffffff;
    margin-bottom: 25px;
}

.section > p {
    max-width: 750px;
    color: #94a3b8;
    font-size: 17px;
}

/* ===== Skills ===== */

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skills-container span {
    background-color: #172033;
    border: 1px solid #263449;
    color: #38bdf8;
    padding: 12px 20px;
    border-radius: 6px;
    transition: 0.3s;
}

.skills-container span:hover {
    border-color: #38bdf8;
    transform: translateY(-3px);
}

/* ===== Projects ===== */

.projects-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.project-card {
    background-color: #111b2e;
    border: 1px solid #263449;
    border-radius: 10px;
    padding: 30px;
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #38bdf8;
}

.project-card h3 {
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 15px;
}

.project-card p {
    color: #94a3b8;
    margin-bottom: 15px;
}

.project-card .project-tech {
    color: #38bdf8;
    font-size: 14px;
}

.project-card a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: bold;
}

.project-card a:hover {
    color: #ffffff;
}

/* ===== Contact ===== */

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
}

.contact-links a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: bold;
}

.contact-links a:hover {
    color: #ffffff;
}

/* ===== Footer ===== */

footer {
    border-top: 1px solid #1e293b;
    text-align: center;
    padding: 25px 20px;
    color: #64748b;
    font-size: 14px;
}

/* ===== Mobile Responsive ===== */

@media (max-width: 700px) {

    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        min-height: 75vh;
        padding-top: 60px;
    }

    .projects-container {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 20px;
    }

}

/* ===== About Section and Profile Photo ===== */

.about-container {
    display: flex;
    align-items: center;
    gap: 35px;
}

.profile-photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #38bdf8;
    flex-shrink: 0;
}

/* ===== Social Profile Cards ===== */

.profiles-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.profile-card {
    background-color: #111b2e;
    border: 1px solid #263449;
    border-radius: 10px;
    padding: 30px;
    transition: 0.3s;
}

.profile-card:hover {
    transform: translateY(-5px);
    border-color: #38bdf8;
}

.profile-card h3 {
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 15px;
}

.profile-card p {
    color: #94a3b8;
    margin-bottom: 20px;
}

.profile-card a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: bold;
}

.profile-card a:hover {
    color: #ffffff;
}

/* ===== Mobile Layout Updates ===== */

@media (max-width: 700px) {

    .about-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-photo {
        width: 160px;
        height: 160px;
    }

    .profiles-container {
        grid-template-columns: 1fr;
    }

}


/* ===== Hero Profile Photo ===== */

.hero {
    align-items: center;
    text-align: center;
}

.hero-profile-photo {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid #f9faf1;
    margin-bottom: 25px;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.15);
}

.hero-description {
    margin-left: auto;
    margin-right: auto;
}

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

/* ===== Certifications ===== */

.certifications-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.certification-card {
    background-color: #111b2e;
    border: 1px solid #263449;
    border-radius: 10px;
    padding: 30px;
    transition: 0.3s;
}

.certification-card:hover {
    transform: translateY(-5px);
    border-color: #38bdf8;
}

.certification-card h3 {
    color: #ffffff;
    font-size: 21px;
    margin-bottom: 12px;
}

.certification-card p {
    color: #94a3b8;
    margin-bottom: 15px;
}

.cert-status {
    display: inline-block;
    color: #38bdf8;
    background-color: #172554;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 14px;
}

/* ===== Mobile ===== */

@media (max-width: 700px) {

    .hero-profile-photo {
        width: 140px;
        height: 140px;
    }

    .certifications-container {
        grid-template-columns: 1fr;
    }

}

/* Hero photo: larger 4:3 rectangular frame */

.hero-profile-photo {
    width: 200px;
    max-width: 100%;
    aspect-ratio: 3 / 4;
    height: auto;

    object-fit: cover;
    object-position: center;

    border-radius: 10px !important;
    clip-path: none;

    justify-self: center;
}

