body{
    margin:0;
    padding: 0;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background-color: #0b0c10;
}

.navbar{
    background-color: #1f2833;
    padding: 10px;
    text-align: right;
    color: #66fcf1;
    box-shadow: 0px -2px 7px #66fcf1;
    margin-bottom: 15px;
}

.navbar >a {
    color: #66fcf1;
    text-decoration: none;
    padding: 0 10px;
}

.nav-links a {
    color: #66fcf1;
    text-decoration: none;
    padding: 0 10px;
}

.nav-links {
    display: flex;
    justify-content: flex-end;
}

.menu-icon {
    display: none;
   
}

header {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 30px;
}

.icon {
    width: 30px;
    height: 30px;
    margin: 5px;
}
a {
    text-decoration: none;
    color: inherit;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; 
    gap: 20px;
    align-items: center;
}

.profile-pic img {
    width: 100%;
    max-width: 200px;
    border-radius: 10px;
}

.about-text p {
    color: #c5c6c7;
    line-height: 1.6;
}

.skills-grid {
    display: grid;
    gap: 15px;
    max-width: 700px;
    margin: auto;
}

.skill span {
    color: #66fcf1;
    font-weight: bold;
}

.bar {
    background: #1f2833;
    border-radius: 20px;
    height: 12px;
    margin-top: 5px;
}

.level {
    height: 100%;
    border-radius: 20px;
    background: #45a29c;
}

/* Skill levels (you can adjust %) */
.html   { width: 90%; }
.css    { width: 85%; }
.js     { width: 70%; }
.php    { width: 65%; }
.java   { width: 60%; }
.python { width: 75%; }
.csharp { width: 55%; }
.cpp    { width: 50%; }


.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.cert-card {
    background: #1f2833;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 6px #66fcf1;
}

.cert-card h4 {
    color: #66fcf1;
    margin-bottom: 5px;
}

.cert-card p {
    color: #c5c6c7;
}

section{
    padding: 10px;
    max-width: 900px;
    margin: auto;
}

section h2{
    text-align: center;
    color: #c5c6c7;
}

.portfolio-grid{
    display: grid;
    color: #1f2833;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
    justify-items: center;

}
.portfolio-item{
    height: 150px;
    width: 175px;
    background-color: #45a29c;
    padding: 10px;
    border-radius: 5px;
}

.portfolio-item:nth-child(even){
    background-color: transparent;
    border: 2px solid #45a29c;
    color: #c5c6c7;
}

.contact-grid{
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns:4fr 1fr 1fr;
    grid-template-areas:
    "form form . fb twitter"
    "form form . YouTube ig" ;
    gap: 20px; /* more breathing space */
    margin-top: 20px;
}

.fb, .twitter, .YouTube, .ig{
    width: 175px;
    height: 175px;
    color: #c5c6c7;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0px 0px 7px #66fcf1;
    background-color: #0b0c10;
}

.fb > span, 
.twitter> span,
 .YouTube> span,
  .ig> span{
    text-align: center;
    position: relative;
    top: 40%;

}
.form{ 
     grid-area: form;
    width: 100%;
    padding: 20px;
    background-color: #1f2833;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(102, 252, 241, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.fb{ grid-area: fb;}
.twitter{ grid-area: twitter;}
.YouTube{ grid-area: YouTube;}
.ig{ grid-area: ig;}

label{
    display: block;
    color: #66fcf1;
    margin-bottom: 10px;

}

input,button{  
    display: block;
    margin-bottom: 10px;
    border: 1px solid #66fcf1;
    padding: 8px;
    border-radius: 5px;
    background-color: rgb(197, 198, 199,0.2);
    width: 100%;
}

textarea{  
    display: block;
    margin-bottom: 10px;
    border: 1px solid #66fcf1;
    padding: 15px 8px;
    border-radius: 5px;
    background-color: rgb(197, 198, 199,0.2);
    width: 100%;
}

.form:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(102, 252, 241, 0.6);
}

/* Input, textarea, button hover */
input, textarea {
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    border-color: #45a29c;
    box-shadow: 0 0 5px #45a29c;
    outline: none;
}

button {
    background-color: #45a29c;
    color: #0b0c10;
    cursor: pointer;
    transition: all 0.3s ease;
}


footer{
    text-align: center;
    background-color: #1f2833;
    padding: 10px;
    color: #66fcf1;
    box-shadow: 0px 2px 7px #66fcf1;
    margin-bottom: 15px;

}

/* General adjustments for small screens */
@media (max-width: 900px) {
    /* Navbar: stack links vertically */
    .navbar {
        text-align: center;
        padding: 15px;
    }
    .navbar a {
        display: block;
        padding: 10px 0;
    }

    /* About Me: stack text above image */
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .profile-pic img {
        max-width: 150px;
        margin: auto;
    }

    /* Skills: reduce width */
    .skills-grid {
        max-width: 100%;
        padding: 0 10px;
    }

    /* Portfolio grid: 1 column on small screens */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Certificates: 1 column */
    .cert-grid {
        grid-template-columns: 1fr;
    }

    /* Contact section: stack form and social icons vertically */
    .contact-grid {
        grid-template-rows: repeat(5, auto);
        grid-template-columns: 1fr;
        grid-template-areas:
            "form"
            "fb"
            "twitter"
            "YouTube"
            "ig";
    }
    .fb, .twitter, .YouTube, .ig {
        width: 100%;
        max-width: 250px;
        margin: 10px auto;
    }

    .form {
        width: 90%;
        margin: auto;
    }

    /* Footer */
    footer {
        font-size: 14px;
        padding: 15px;
    }
}

/* Extra small screens (mobile phones) */
@media (max-width: 500px) {
    header h1 {
        font-size: 24px;
    }
    header h3 {
        font-size: 18px;
    }
    header p {
        font-size: 14px;
    }

    .skills-grid .skill span {
        font-size: 14px;
    }

    .portfolio-item {
        width: 100%;
        height: auto;
        padding: 15px;
    }

    .cert-card {
        padding: 10px;
    }

    input, textarea, button {
        padding: 10px 5px;
    }
}

/* Responsive: Small screens */
 @media (max-width: 768px) {

    .menu-icon {
        display: block;
        color: #66fcf1;
        font-size: 28px;
        text-align: right;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #1f2833;
        position: absolute;
        top: 50px;
        left: 0;
        text-align: center;
    }

    .nav-links a {
        padding: 15px;
        border-top: 1px solid #66fcf1;
    }

    .nav-links.show {
        display: flex;
    }
}


