/* ==========================
   Google Font
========================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

body{
    background:#f5f5f5;
    color:#333;
    line-height:1.6;
}

.back-home{
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999; 

    background: linear-gradient (45deg, var(--primary), var(--secondary));
    color: #00ffff;
    padding: 12px 22px;
    border-radius: 50px;

    text-decoration: none;
    font-weight: 600;
    font-size: 15px;

    box-shadow: var(-- shadow);
    transition: all .3s ease;
}
.back-home:hover{
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rga (0,0,0,.4);
}
.back-home:active{
    transform: scale(.96);
}

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

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:1000;
    background:rgba(0,0,0,.55);
    backdrop-filter:blur(10px);
}

.navbar{
    width:90%;
    max-width:1200px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 0;
}

.logo{
    color:#fff;
    font-size:28px;
    font-weight:700;
}

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

.nav-links li{
    margin-left:30px;
}

.nav-links a{
    color:white;
    text-decoration:none;
    font-weight:500;
    transition:.3s;
}

.nav-links a:hover{
    color:#00c6ff;
}

.menu{
    display:none;
    color:white;
    font-size:30px;
    cursor:pointer;
}

/* ==========================
   Hero Section
========================== */

.hero{
    width:100%;
    height:100vh;
    background:url("family.jpg") center center/cover no-repeat;
    position:relative;
    display:flex;
    justify-content:center;
    align-items:center;
}

.overlay{
    position:absolute;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.55);
}

.hero-content{
    position:relative;
    z-index:2;
    color:white;
    text-align:center;
    max-width:700px;
    padding:20px;
}

.hero-content h3{
    font-size:28px;
}

.hero-content h1{
    font-size:65px;
    margin:15px 0;
}

.typing{
    color:#00c6ff;
    margin-bottom:20px;
}

.hero-content p{
    font-size:18px;
    margin-bottom:30px;
}

.btn{
    display:inline-block;
    padding:14px 35px;
    text-decoration:none;
    background:#00c6ff;
    color:white;
    border-radius:30px;
    transition:.3s;
}

.btn:hover{
    background:#0099cc;
}

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

section{
    padding:90px 10%;
}

section h2{
    text-align:center;
    margin-bottom:40px;
    color:#222;
    font-size:35px;
}

/* ==========================
   About
========================== */

.about-container{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:50px;
    flex-wrap:wrap;
}

.about-image img{
    width:320px;
    border-radius:15px;
    box-shadow:0 10px 20px rgba(0,0,0,.2);
}

.about-text{
    max-width:600px;
}

.about-text p{
    margin-bottom:15px;
}

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

.skills{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:20px;
}

.skill{
    background:white;
    padding:30px;
    text-align:center;
    border-radius:12px;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
    transition:.3s;
}

.skill:hover{
    transform:translateY(-10px);
    background:#00c6ff;
    color:white;
}

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

.projects{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
}

.card{
    background:white;
    padding:25px;
    border-radius:12px;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
    transition:.3s;
}

.card:hover{
    transform:translateY(-10px);
}

.card h3{
    color:#0099cc;
    margin-bottom:10px;
}

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

.contact{
    text-align:center;
}

.contact p{
    margin:12px 0;
    font-size:18px;
}

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

footer{
    background:#111;
    color:white;
    text-align:center;
    padding:20px;
}

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

@media(max-width:768px){

    .menu{
        display:block;
    }

    .nav-links{
        position:absolute;
        top:75px;
        left:-100%;
        width:100%;
        background:#111;
        flex-direction:column;
        text-align:center;
        transition:.4s;
    }

    .nav-links.active{
        left:0;
    }

    .nav-links li{
        margin:20px 0;
    }

    .hero-content h1{
        font-size:42px;
    }

    .hero-content h3{
        font-size:22px;
    }

    .hero-content p{
        font-size:16px;
    }

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

    .about-image img{
        width:260px;
    }

}