* {
    margin: 0;                                     /* Removes default outer spacing from ALL elements */
    padding: 0;                                   /* Removes default inner spacing from ALL elements */
    font-family: 'Poppins', sans-serif;            /* Sets 'Poppins' font for ALL elements; if unavailable, uses a generic sans-serif */
    box-sizing: border-box;                       /* Makes element width/height include padding & border (easier layout control) */
}

html{
    scroll-behavior: smooth;
}

body {
    background: #080808;                       /* Sets the background color of the page to a very dark shade (near black) */
    color: #fff;                               /* Sets the default text color to white */
}


/* -------------header section------------- */
#header {
    width: 100%;                               /*header take the full width of the browser window */
    height: 100vh;                              /* Sets the header height to 100% of the viewport height (vh = viewport height unit) */
    background-image: url(images/pic.png);
    background-size: cover;                         /* Scales the background image so it completely covers the area, cropping if necessary */
    background-position: center;                    /* Positions the background image so its center is aligned with the center of the element */

    padding-top: 80px; /* adjust based on navbar height */

}

/* .........Navabar........ */
.container {
    padding: 10px 10%;                         /* Adds 10px padding on top & bottom, and 10% of the element's width as padding on left & right */
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    position: fixed;   /* Keeps navbar fixed in place */
    top: 0;            /* Sticks it to the top of the page */
    left: 0;           /* Aligns to the left edge */
    width: 100%;       /* Makes it full width */
    background: #080808; /* Give it a solid background so it’s visible when scrolling */
    z-index: 1000;     /* Makes sure it stays above other elements */
    padding: 10px 10%; /* Keep your existing padding */
}


.logo {
    width: 140px;
}

nav ul li {
    display: inline-block;                         /*   display horizontally */
    list-style: none;
    margin: 10px 20px;

}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}


/* for red line below each navbar links */

nav ul li a::after {
    content: ' ';                        /* Creates a pseudo-element after the <a> tag; required for it to exist */
    width: 0%;
    /* Starts with zero width (relative to the <a> element’s width) */
    height: 3px;
    /* Height of the underline effect */
    background: #ff004f;
    /* Color of the underline effect (a bright pink/red) */
    position: absolute;
    /* Positions the underline relative to the nearest positioned ancestor (usually the <a>) */
    left: 0;
    /* Aligns the underline to the left edge of the <a> */
    bottom: -6px;
    /* Places the underline slightly below the <a> text */
    transition: 0.5s;
    /* Smoothly animates property changes over 0.5 seconds (used for the width change on hover) */
}

nav ul li a:hover::after {
    width: 100%;
    /* On hover, the underline grows to match the full width of the <a> */
}



/* for header text */
.header-text {
    margin-top: 20%;
    font-size: 30px;
    letter-spacing: 1px;
}

.header-text h1 {
    font-size: 60px;
    margin-top: 20px;
}

.header-text h1 span {
    color: #ff004f;
}



/* ----------------About section------------- */
#about {
    padding: 80px 0;
    color: #ababab;
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1 {
    flex-basis: 35%;
    /* about-col-1 takes 35% width of flex box  */
}

.about-col-1 img {
    width: 100%;
    /* 100% width of about-col-1 */
    border-radius: 15px;
}

.about-col-2 {
    flex-basis: 60%;
    /* about-col-2 takes 60% width of flex box , so remaining 5% wil ba gap between col-1 nad col-2 */
}

/* About Me text */
.sub-title {
    font-size: 60px;
    font-weight: 600;
    color: #fff;
}

/* tab links */
.tab-titles {
    display: flex;
    margin: 20px 0 40px;
}

.tab-links {
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

/* red line under tab links */
.tab-links::after {
    content: ' ';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after {
    /* making by default active of skill tab */
    width: 50%;
}


/* tab contents */
.tab-contents ul li {
    list-style: none;
    margin: 10px 0;
}

.tab-contents ul li span {
    color: #b54769;
    font-size: 14px;
}


.tab-contents {
    display: none;
    /* hide all the tab contents */
}

.tab-contents.active-tab {
    display: block;
    /* shows only active tag */
}




/* -----------------Services section --------------------- */
#services{
    padding: 30px 0;
}

.services-list {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));   /* Creates as many columns as possible (auto-fit) 
                                                                         Each column is at least 250px wide, but can expand to take up available space (1fr = 1 fraction of remaining space) */
    grid-gap: 40px;                          /* Adds 40px space between each grid item, both horizontally and vertically */
    margin-top: 50px;                        /* Adds 50px space above the grid (separating it from the section above) */
}

.services-list div{
    background: #262626;
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 10px;
transition: background 0.5s, transform 0.5s;      /* Smoothly animates changes to:
                                                         1. background → over 0.5 seconds
                                                         2. transform (scale, rotate, translate, etc.) → over 0.5 seconds
                                                         This makes hover or state changes look gradual instead of instant */
}

.services-list div i{
    font-size: 50px;
    margin-bottom: 30px;
}

.services-list div h2{
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}

.services-list div a{
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
}

.services-list div:hover{
    background: #ff004f;
    transform: translateY(-10px);
}


/* ---------------Portfolio section-------------- */
#portfolio{
    padding: 50px 0;
}

.work-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.work{
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.work img{
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}
/* layered text over image section */
.layer{
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0,0,0,0.6), #ff004f);
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    transition: height 0.5s;
}
.layer h3{
    font-weight: 500;
    margin-bottom: 20px;
}
.layer a{
    margin-top: 20px;
    color: #ff004f;
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
}

.work:hover img{
    transform: scale(1.1);
}

.work:hover .layer{
    height: 100%;
}

/* see more button */
.btn{
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #ff004f;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
}
.btn:hover{
    background: #ff004f;
}


/* --------------contact section------------------- */
.contact-left{
    flex-basis: 35%;
}
.contact-right{
    flex-basis: 60%;
}
/* ----contact-left-------- */
.contact-left p{
    margin-top: 30px;
}
.contact-left p i{
    color: #ff004f;
    margin-right: 15px;
    font-size: 25px;
}
.social-icons{
    margin-top: 30px;
}
.social-icons a{
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: #ababab;
    display: inline-block;
    transition: transform 0.5s;
}

.social-icons a:hover{
    color: #ff004f;
    transform: translateY(-5px);
}


/* -----for download cv button----- */
.btn2{
    display: inline-block;
    background: #ff004f;
}


/* ----------------for contact-right-------------- */
.contact-right form{
    width: 100%;
}

form input, form textarea{
    width: 100%;
    border: 0;
    outline: none;
    background: #262626;
    padding: 15px;
    margin: 15px 0;
    color: #fff;
    font-size: 18px;
    border-radius: 6px;
}
/* for submit button */
form .btn2{
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
}

/* -------copyright section------------ */
.copyright{
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: #262626;
    font-weight: 300;
    margin-top: 20px;
}
.copyright i{
    color: #ff004f;
}


/* ------------for menu, X icon---------- */
nav .fa-solid{
    display: none;
}


/* msg when form is submitted section */
#msg{
    color: #61b752;
    margin-top: -40px;
    display: block;
}




/* -------------------------css for small screen --------------------- */
@media only screen and (max-width: 600px) {
    /* -------------for header section */
    #header {
        background-image: url(images/6.png);
    }

    .header-text {
        margin-top: 110%;
        font-size: 18px;

    }

    .header-text h1 {
        font-size: 30px;
    }

    nav .fa-solid {
        display: block;
        font-size: 25px;
    }
    nav ul{
        background: #ff004f;
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
    }
    nav ul li{
        display: block;
        margin: 25px;
        border: 1px solid #fff;
        padding: 6px 10px;
        border-radius: 4px;
        text-align: center;
    }
    nav ul li a{
        font-size: 16px;
        font-weight: 600;
        color: #fff;
    }

    nav ul .fa-solid{
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }
    /* ---------------for about section */
    .sub-title {
        font-size: 40px;
    }
    
    .about-col-1,
    .about-col-2 {
        flex-basis: 100%;
    }
    
    .about-col-1 {
        margin-bottom: 30px;
        width: 100%;
    }
    
    .about-col-2 {
        font-size: 14px;
    }


    .tab-links{
      font-size: 16px;
      margin-right: 20px;
    }


    /*----------- for contact section */
    .contact-left, .contact-right{
        flex-basis: 100%;
    }

    /* --------------for copyright section */
    .copyright{
        font-size: 14px;
    }
}



/*--------------------------- for chatbots----------------------- */
/* Floating Icon */
#chat-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ff0000;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255,0,0,0.5);
  z-index: 999;
}

/* Chat Container Hidden by Default */
#chat-container {
  width: 350px;
  position: fixed;
  bottom: 90px;
  right: 20px;
  border: 2px solid #ff0000;
  border-radius: 15px;
  background: #111;
  color: #fff;
  font-family: Arial, sans-serif;
  box-shadow: 0 0 15px rgba(255,0,0,0.5);
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: 1000;
}

/* Header */
#chat-header {
  background: #ff0000;
  color: #fff;
  padding: 10px;
  font-weight: bold;
  text-align: center;
  font-size: 16px;
  position: relative;
}

#close-btn {
  position: absolute;
  right: 10px;
  cursor: pointer;
}

/* Chat Box */
#chat-box {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background: #000;
}

/* Messages */
.user-msg { color: #ff4d4d; margin: 5px 0; text-align: right; }
.bot-msg { color: #fff; margin: 5px 0; text-align: left; }

/* Input Area */
#chat-input-area {
  display: flex;
  padding: 10px;
  background: #111;
  border-top: 1px solid #ff0000;
}
#user-input { flex: 1; padding: 8px; border-radius: 5px; border: none; outline: none; background: #222; color: #fff; }
#send-btn { padding: 8px 12px; margin-left: 5px; border: none; border-radius: 5px; background: #ff0000; color: #fff; cursor: pointer; transition: transform 0.2s; }
#send-btn:hover { transform: scale(1.05); }