*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    background: #080808;
    color: #ffffff;
}
.container {
    padding: 10px 7%;

}

#header{
    width: 100%;
    height: 100vh;
    background-image: url(Assets/cover.png);
    background-size: cover;
    background-position: center;
    padding-left: 0%;  
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 1px 0;
}
.logo {
      width: 140px;
}
nav ul li {
    list-style: none;
    display: inline-block;
    margin: 0 15px;
}
nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
}
nav ul li a::after {
    content: '';
    display: block;
    width: 0;
    text-decoration: none;
    height: 2px;
    background: #ff0000;
    transition: width .3s;
}
nav ul li a:hover::after {
    width: 100%;
    text-decoration: none;
    transition: width .3s;
}
.header-text {
    color: #ffffff;
    font-family: 'Fira Code', monospace;
    font-size: 20px;
    padding: 150px 10% 0 10%; /* 150px top padding, 10% left & right padding */
    text-align: left;
}

@keyframes typing-line1 {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes typing-line2 {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}
@keyframes cursor-disappear {
    0% { border-right: .15em solid orange; }
    100% { border-right: none; }
}
@keyframes cursor-appear {
    0% { border-right: none; }
    100% { border-right: .15em solid #ffa500; }
}

/* General styling for the header text */
.header-text h1 {
    display: inline-block;
    font-size: 40px;
    color: #ffffff;
    letter-spacing: .15em;
}

/* First line typing effect without blinking, and cursor disappears after typing */
.header-text h1 .line1 {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: .15em solid orange;
    width: 0;
    animation: typing-line1 1.5s steps(9, end) forwards, cursor-disappear 0.1s 1.5s forwards;
    animation-fill-mode: forwards; /* Ensures the animation's final state is maintained */
}

/* Second line typing effect with cursor appearing after first line finishes */
.header-text h1 .line2 {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    animation: typing-line2 2.5s steps(22, end) 1.6s forwards, /* Adjusted to 22 steps for "Prattay Roy Chowdhury" */
               cursor-appear 0.1s 1.6s forwards, /* Cursor appears after first line typing */
               blink .75s step-end infinite 4.1s; /* Starts blinking after typing finishes */
    animation-fill-mode: forwards; /* Ensures the animation's final state is maintained */
}
.formobile {
    display: none;
}
.red {
    color: #ff0000;

}
/* About Section Styling */
#about {
    padding: 80px 0;
    font-family: 'Fira Code', monospace;
    color: #ffffff;
}

.row {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Image Column */
.about-col-1 {
    flex: 1;
    display: flex;
    justify-content: center;
}

.user {
    width: 100%;
    max-width: 300px;
    border-radius: 50%; /* Optional: Makes the image round */
}

/* Text Column */
.about-col-2 {
    flex: 2;
}

.about-col-2 h1 {
    font-size: 28px;
    margin: top 0;
    margin-bottom: 20px;
}

.about-col-2 p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-col-2 a {
    display: inline-block;
    padding: 10px 20px;
    color: #fff;
    background-color: #ff004f;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.about-col-2 a:hover {
    background-color: #cc0000;
    transform: scale(1.05);
}
.tab-titles {
    display: flex;
    gap: 20px;
    margin: 20px 0 0px;
}
.tab-links {
    color: #ffffff;
    font-size: 24px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}
.tab-links::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #ff0000;
    transition: width 0.3s;
}
.tab-links:hover {
    color: #ff0000;
}
.tab-links.active-link::after {
    width: 100%;
}
.tab-contents ul li {
  list-style: none;
  margin: 10px 0;

}
.tab-contents {
    display: none;
}
.tab-contents.active-tab {
    display: block;
}
.orange {
  color: #ffa500;
  font-weight: 500;
}
/* --------services section styling-------- */
#services {
    color: #ffffff;
    font-family: 'Fira Code', monospace;
    padding: 40px 0;
}
.services-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}
.services-list div {
    padding: 20px 20px;
    background: #262626;
    border-radius: 12px;
    font-weight: 300;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: left;
    transition: background 0.5s, transform 0.5s;
}
.services-list div i {
    font-size: 60px;
    margin-bottom: 30px;
}
.services-list div h2 {
    font-size: 30px;
    margin-bottom: 20px;
}
.services-list div a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
}
.services-list div:hover{
    background: #ff0000;
    transform: translateY(-10px);
}
/* ------projects section styling------ */
#projects {
    padding: 40px 0;
    font-family: 'Fira Code', monospace;
    color: #ffffff;
}
.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}
.project1 {
    font-size: 20px;
    height: 150px;
    margin-bottom: 10px;
}
.project2 {
    font-size: 20px;
    height: 80px;
    margin-top: 30px;
    margin-bottom: 50px;
}
.projects-list .fa-brands {
    font-size: 80px;
    margin-top: 30px;
    margin-bottom: 50px;
}
.project {
    padding: 20px 20px;
    position: relative;
    border-radius: 12px;
    font-weight: 300;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    text-align: left;
    transition: background 0.5s, transform 0.5s;
}
.project img {

    object-fit: cover;
    border-radius: 12px;
    display: block;
}
.project i {
    cursor: pointer;
}
.project i:hover {
    color: #ff0000;
}
/* ------contact section styling------ */
#contact {
    padding: 40px 0;
    font-family: 'Fira Code', monospace;
    color: #ffffff;
}
.contact-left {
    width: 40%;
}
.contact-right {
    width: 55%;
}
.contact-left h1 {
    font-size: 28px;
    margin-bottom: 20px;
}
.contact-left a {
    text-decoration: none;
    font-size: 18px;
    color: #ffffff;
    line-height: 1.6;
    margin-top: 20px;
    margin-bottom: 20px;
}
.contact-left p  i {
    color: #ff004f;
    margin-right: 10px;
    font-size: 25px;
}
.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}
.social-icons a {
    font-size: 30px;
    color: #ababab;
    margin-right: 15px;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease, transform 0.5s ease;
}
.social-icons a:hover {
    color: #ff004f;
    transform: translateY(-5px);
}
.contact-right form {
    display: flex;
    flex-direction: column;
}

.contact-right input,
.contact-right textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    color: #ffffff;
    background: #262626;
    border:none;
    border-radius: 5px;
    font-family: 'Fira Code', monospace;
    font-size: 16px;
}

.contact-right input:focus,
.contact-right textarea:focus {
    border-color: #007bff;
    outline: none;
}

.contact-right button {
    padding: 10px 20px;
    background-color: #ff004f;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-right button:hover {
    background-color: #ffa500;
    transform: scale(1.05);
}
/* Footer Styling */
.copyright {
    background: #262626;
    width: 100%;
    margin-bottom: 0px;
    color: #ffffff;
    text-align: center;
    padding: 10px 0;
    font-weight: 300;
    margin-top: 20px;
    font-family: 'Fira Code', monospace;
}
/* Hide the menu and close icons on larger screens */
.fa-solid.fa-bars, .fa-solid.fa-circle-xmark {
    display: none;
}


/* ----css for responsive design---- */
@media only screen and (max-width: 768px) {
    #header {
        background-image: url(Assets/phonebg.png);
    }
    .header-text {
        padding: 150px 5% 0 5%; /* 150px top padding, 5% left & right padding */
        margin-top: 100%;
        font-size: 16px;
    }
    .logo {
        width: 90px;
    }
    .fa-solid.fa-bars {
        display: inline-block;
        font-size: 24px;
        color: #ffffff;
        cursor: pointer;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 3;
    }
    .show {
        display: initial;
    }
    

    /* Show side menu as overlay */
    #sideMenu {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 200px;
        height: 100%;
        background: #ff004f;
        z-index: 20;
        padding-top: 50px;
        transition: right 0.3s ease;
    }

    #sideMenu li {
        display: block;
        margin: 20px;
        padding: 15px 20px;
    }

    .fa-solid.fa-circle-xmark {
        display: inline-block;
        font-size: 24px;
        color: #ffffff;
        cursor: pointer;
        position: absolute;
        top: 20px;
        right: 20px;
    }
    .header-text h1 {
        font-size: 24px;
    }
    .header-text h1 .line2 {
        animation: typing-line2 2.5s steps(22, end) 1.6s forwards, cursor-appear 0.1s 1.6s forwards, blink .75s step-end infinite 4.1s;
    }
    #about {
        padding: 2px 0;
        font-family: 'Fira Code', monospace;
        color: #ffffff;
    }
    .about-col-1 {
        display: none;
    }
    .about-col-2 {
        flex: 1;
    }
    .services-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .services-list div {
        padding: 20px 10px;
    }
    .services-list div i {
        font-size: 40px;
    }
    .services-list div h2 {
        font-size: 20px;
    }
    .projects-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .projects-list .fa-brands {
        font-size: 60px;
    }
    .project {
        padding: 20px 10px;
    }
    .project img {
        border-radius: 12px;
    }
    .contact-left {
        width: 100%;
    }
    .contact-right {
        width: 100%;
    }
    .contact-right input,
    .contact-right textarea {
        padding: 10px;
    }
    .contact-right button {
        padding: 10px 20px;
    }
    .row {
        display: block;
        align-items: center;
        gap: 20px;
    }
    
}
#msg {
     /* Initially hidden */
    color: #28a745; /* Green color for success message */
    font-family: 'Fira Code', monospace;
    font-size: 16px;
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}
