/* ==========================
   GOOGLE FONT
========================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ==========================
   RESET
========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #0f172a;
    color: #fff;
}

img {
    width: 100%;
    display: block;
}

section {
    padding: 90px 10%;
}

a {
    text-decoration: none;
    color: white;
}

ul {
    list-style: none;
}

.section-title {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 50px;
    color: #38bdf8;
}

/* ==========================
   NAVBAR
========================== */

header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: #111827;
    z-index: 1000;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
}

.logo {
    color: #38bdf8;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    transition: .3s;
}

.nav-links a:hover {
    color: #38bdf8;
}

.menu-btn {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

/* ==========================
   HOME
========================== */

.home {
    min-height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.home-text {
    flex: 1;
}

.home-text h3 {
    font-weight: 400;
}

.home-text h1 {
    font-size: 4rem;
    color: #38bdf8;
}

.home-text h2 {
    margin: 10px 0;
    color: #cbd5e1;
}

.home-text p {
    line-height: 1.8;
    margin: 20px 0;
    color: #d1d5db;
}

.home-button {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn,
.btn-outline {
    padding: 12px 28px;
    border-radius: 8px;
    transition: .3s;
}

.btn {
    background: #38bdf8;
    color: #111;
    font-weight: 600;
}

.btn:hover {
    transform: translateY(-4px);
}

.btn-outline {
    border: 2px solid #38bdf8;
}

.btn-outline:hover {
    background: #38bdf8;
    color: #111;
}

.home-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.home-image img {
    width: 330px;
    height: 330px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #38bdf8;
    box-shadow: 0 0 30px rgba(56, 189, 248, .4);
}

/* ==========================
   ABOUT
========================== */

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image img {
    width: 320px;
    border-radius: 15px;
}

.about-text {
    flex: 1;
}

.about-text p {
    line-height: 1.8;
    margin-bottom: 30px;
}

.info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-box {
    background: #1e293b;
    padding: 20px;
    border-radius: 10px;
}

/* ==========================
   SKILLS
========================== */

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}

.skill-card {
    background: #1e293b;
    padding: 35px;
    border-radius: 15px;
    text-align: center;
    transition: .3s;
}

.skill-card:hover {
    transform: translateY(-10px);
}

.skill-card i {
    font-size: 55px;
    color: #38bdf8;
    margin-bottom: 15px;
}

/* ==========================
   PROJECTS
========================== */

.project-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: #1e293b;
    border-radius: 15px;
    overflow: hidden;
    transition: .3s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    height: 200px;
    object-fit: cover;
}

.project-card h3 {
    padding: 20px 20px 10px;
}

.project-card p {
    padding: 0 20px 20px;
    color: #d1d5db;
}

/* ==========================
   CONTACT
========================== */

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.contact-card {
    background: #1e293b;
    padding: 35px;
    text-align: center;
    border-radius: 15px;
    transition: .3s;
}

.contact-card:hover {
    transform: translateY(-8px);
}

.contact-card i {
    font-size: 45px;
    color: #38bdf8;
    margin-bottom: 15px;
}

/* ==========================
   FOOTER
========================== */

footer {
    background: #111827;
    text-align: center;
    padding: 30px;
    margin-top: 50px;
}

/* ==========================
   RESPONSIVE
========================== */

@media(max-width:900px) {

    .home,
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .home-image img {
        width: 250px;
        height: 250px;
    }

    .info {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .menu-btn {
        display: block;
    }
}