/* Reset basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #f0f2f5;
    color: #222;
    line-height: 1.7;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    color: #fff;
    overflow: hidden;
    background: none; /* Important: we move background control to .hero-background */
  }
  
  .hero-background {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(rgba(10,10,10,0.7), rgba(10,10,10,0.7)), url('https://via.placeholder.com/1920x1080') center/cover no-repeat;
    background-attachment: fixed;
    transition: background-image 1s ease-in-out, opacity 1s ease-in-out;
    opacity: 1;
    z-index: 1;
  }
  
  .hero h1,
  .hero p,
  .hero a {
    position: relative;
    z-index: 2; /* Text elements are now above the background */
  }
  

.hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.hero .typing {
    color: #ff8800;
}

.tagline {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #ccc;
}

.btn {
    background: linear-gradient(135deg, #00f7ff, #0077ff);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    transition: 0.4s ease;
    box-shadow: 0px 5px 20px rgba(0, 247, 255, 0.4);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: linear-gradient(135deg, #0077ff, #00f7ff);
    box-shadow: 0px 8px 30px rgba(0, 247, 255, 0.6);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 80px 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.section h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #0077ff;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s ease;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card img {
    width: 100%;
    height: 15rem;
    align-content: center;
    justify-content: center;
    border-radius: 10px;
}

.card-content {
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    background: white;
}

.contact-form textarea {
    min-height: 150px;
}

.contact-form button {
    align-self: center;
}

/* Footer */
footer {
    background: #111;
    color: #bbb;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    /* About Section */
    #aboutme {
        display: block;
        text-align: center;
    }

    #Picture {
        width: 100%;
        height: auto;
        border-radius: 10px;
        margin-top: 20px;
    }

    #about p {
        font-size: 1rem;
        padding: 0 20px;
    }
}

@media (min-width: 769px) {
    /* Desktop Layout */
    #aboutme {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        text-align: left;
    }

    #Picture {
        border:1px solid none;
        width: 14rem;
        height: 14rem;
        border-radius: 15%;
        background-image: url(/image/me1.png);
        background-position: center;
        background-size: contain;
        background-repeat:no-repeat;
    }

    #about p {
        font-size:1.2rem;
        width:70%;
    }
}


#live{
    position:fixed;
    top: 21rem;
    right: 1rem;
    
}
#live img{
    border: 1px none black;
    border-radius: 50%;
    padding: 4px;
    width: 30px;
    height: 30px;
    background-color:rgba(73, 255, 17, 0.486);
}

.knowledge{
    border: 1px solid;
    padding: 0.4em;
    border-radius: 15px;
    background-color: #081414;
    color: white;
}

.stack{
    border: 1px solid;
    text-align: center;
    display: flex;
    width: 110%;
    border-bottom-left-radius: 15px;
    border-top-right-radius: 15px;
    border-top: none;
    border-left: none;
    justify-content: center;
    margin-bottom: 5px;
    background-color:rgb(233, 238, 227);
    
}
@media screen and (min-width:769px) {
    .stack{
        width: 60%;
    }
}