/* ========= GOOGLE STYLE ========= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary: #B6252A;
    --secondary: #f20810;
    --dark: #0f172a;
    --text: #334155;
    --bg: #F5F5F5;
    --white: #fff;
    --shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.7
}

section {
    padding: 100px 10%
}

.heading {
    text-align: center;
    font-size: 2.3rem;
    color: var(--dark);
    margin-bottom: 50px
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    z-index: 1000
}

.logo {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none
}

.logo span {
    color: var(--primary)
}

.navbar {
    display: flex;
    gap: 30px
}

.navbar a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500
}

.navbar a:hover {
    color: var(--primary)
}

.menu-btn {
    display: none;
    font-size: 1.6rem
}

.home {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.home h3 {
    font-size: 1.4rem
}

.home h1 {
    font-size: 3.5rem;
    color: var(--dark)
}

.home h2 {
    color: var(--primary);
    margin: 10px 0
}

.home p {
    margin: 20px 0
}

.button-group {
    display: flex;
    gap: 15px;
    margin: 25px 0
}

.btn {
    display: inline-block;
    padding: 12px 26px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    transition: .3s
}

.btn:hover {
    transform: translateY(-3px)
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary)
}

.social {
    display: flex;
    gap: 18px;
    margin-top: 20px
}

.social a {
    font-size: 1.5rem;
    color: var(--primary)
}

.home-image {
    text-align: center
}

.home-image img {
    width: 340px;
    height: 340px;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid #fff;
    box-shadow: var(--shadow)
}

.about-content,
.project-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px
}

.about-card,
.project-card,
.timeline-item {
    background: #fff;
    padding: 30px;
    border-radius: 18px;
    box-shadow: var(--shadow);
    transition: .3s
}

.about-card:hover,
.project-card:hover,
.timeline-item:hover {
    transform: translateY(-8px)
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 20px
}

.timeline-item span {
    color: var(--primary);
    font-weight: 600
}

.skill {
    margin-bottom: 22px
}

.skill span {
    font-weight: 600
}

.bar {
    margin-top: 8px;
    height: 10px;
    background: #dbeafe;
    border-radius: 20px;
    overflow: hidden
}

.bar div {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 20px
}

.html {
    width: 95%
}

.css {
    width: 90%
}

.js {
    width: 80%
}

.php {
    width: 85%
}

.git {
    width: 75%
}

.project-card {
    text-align: center
}

.project-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px
}

form {
    max-width: 700px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 18px
}

input,
textarea {
    padding: 14px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    font-size: 1rem
}

footer {
    padding: 25px;
    text-align: center;
    background: var(--dark);
    color: #fff
}

.top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    box-shadow: var(--shadow)
}

@media(max-width:900px) {
    .home {
        grid-template-columns: 1fr;
        text-align: center
    }

    .home-image {
        order: -1
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        display: none;
        flex-direction: column;
        padding: 20px
    }

    .navbar.active {
        display: flex
    }

    .menu-btn {
        display: block;
        cursor: pointer
    }

    .button-group,
    .social {
        justify-content: center
    }
}