:root {
    --primary-color: #e74c3c;
    --secondary-color: #e74c4c;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
.icon-nav{
    width: 40px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: centers;
    position: fixed;
    bottom: 50%;
    right: 0;
}
.icon-nav a i{
    cursor: pointer;
}
.icon-nav a:nth-child(1) i {color: #00D2D3;}
.icon-nav a:nth-child(2) i {color: #1877F2;}
.icon-nav a:nth-child(3) i {color: #FF9F43;}
.icon-nav a:nth-child(4) i {color: #10AC84;}
.icon-nav a:nth-child(5) i {color: #9B5DE5;}
.icon-nav a:nth-child(6) i {color: #EE5253;}
header {
    width: 100%;
    height: 100vh;
    background-image: url(../images/bg1.jpeg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
    position: relative;
    overflow: hidden;
}

header::before, header::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    width: 10px;
    height: 10px;
    top: 30%; 
    left: 70%;
    transform: translate(-50%, -50%) scale(0);
    animation: rainRipple 4s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
    pointer-events: none;
    z-index: 1;
}

header::after {
    top: 60%; 
    left: 20%;
    animation-delay: 2s;
}

@keyframes rainRipple {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(30); opacity: 0; }
}

nav {
    width: 100%;
    height: 70px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    box-shadow: 1px 1px 0px grey;
    border-bottom: 1px solid grey;
    position: sticky;
    top: 0;
    z-index: 10;
}
/* Hamburger Icon (Default hidden on desktop) */
.hamburger {
    display: none;
    font-size: 26px;
    color: white;
    cursor: pointer;
}

/* Responsive Navbar for Mobile */
@media screen and (max-width: 768px) {
    nav {
        justify-content: space-between;
        padding: 0 20px;
        position: sticky;
        top: 0;
        background-color: #111; /* Background color dorkar hole change kore niyo */
        z-index: 1000;
    }

    .hamburger {
        display: block;
    }

    /* Hidden Menu by default on mobile, positioned as a dropdown/sidebar */
    .menu-bar {
        position: absolute;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(17, 17, 17, 0.95);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        transition: 0.4s ease-in-out;
        box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
    }

    /* Active class to slide in the menu via JavaScript */
    .menu-bar.active {
        left: 0;
    }

    .menu-bar a {
        font-size: 22px;
        padding: 10px 20px;
    }

    .menu-bar a:hover {
        background-color: var(--primary-color);
        border-radius: 8px;
    }
}

.logo {
    color: white;
    font-size: 50px;
    letter-spacing: 10px;
    flex-basis: 200px;
    padding: 5px;
}

.logo span {
    color: var(--primary-color);
}

.menu-bar a {
    text-decoration: none;
    padding: 10px 20px;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.menu-bar a:hover {
    background-color: var(--primary-color);
    transition: 0.4s;
    border-radius: 10px;
}

.hero-section-row {
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    padding: 30px 0px;
    position: relative;
    z-index: 10;
}

.hero-left-col {
    color: white;
}
.hero-left-col > p{
 text-align: left;
}
.name {
    font-weight: bold;
    font-size: 50px;
    overflow: hidden;
    width: 320px;
    display: flex;
    justify-content: flex-start;
    gap: 5px;
    align-items: center;
}

.name span {
    display: inline-block;
    transform: translateY(-600px);
    animation: ani 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.name span:nth-child(1) { animation-delay: 0.1s; }
.name span:nth-child(2) { animation-delay: 0.2s; }
.name span:nth-child(3) { animation-delay: 0.3s; }
.name span:nth-child(4) { animation-delay: 0.4s; }
.name span:nth-child(5) { animation-delay: 0.5s; }
.name span:nth-child(6) { animation-delay: 0.6s; }
.name span:nth-child(7) { animation-delay: 0.7s; }
.name span:nth-child(8) { animation-delay: 0.8s; }

@keyframes ani {
    from { transform: translateY(-600px); }
    to { transform: translateY(0px); }
}

.hero-left-col p {
    font-size: 20px;
    margin: 10px 0px;
    color: aliceblue;
}

.hero-left-col h1 {
    font-size: 50px;
}

button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: white;
    outline: none;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: var(--primary-color);
    transition: 0.4s;
}

.wraper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.desig {
    display: flex;
    width: 300px;
    overflow: hidden;
}

.desig span {
    display: block;
    width: 300px;
    flex-shrink: 0;
    animation: animate 18s steps(6) infinite;
}

.desig span p {
    color: var(--primary-color);
    margin: 0;
    white-space: nowrap;
    text-align: left;
}
@keyframes animate {
    0%, 15%    { transform: translateX(0px); }
    18%, 32%   { transform: translateX(-300px); }
    35%, 49%   { transform: translateX(-600px); }
    52%, 66%   { transform: translateX(-900px); }
    69%, 83%   { transform: translateX(-1200px); }
    86%, 100%  { transform: translateX(-1500px); }
}

.hero-right-col {
    height: 400px;
    width: 400px;
    z-index: 1;
    margin-top: 30px;
    background-image: url(../images/pic.png);
    background-size: cover;
    background-position: top;
    cursor: pointer;
    clip-path: polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%);
    transition: 0.5s;
}

.hero-right-col:hover {
    clip-path: circle(50% at 50% 50%);
}
/* HEader end */

/* ========Abou Me========== */

.section{
    width: 100%;
    height: auto;
    margin-top: 20px;
}
.section-info h1, p{
    text-align: center; 
}
.section-info p{
    color: var(--secondary-color);
    font-weight: bold;
}

.row{
    width: 100%;
    /* height: 100vh; */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 80px 0px;
    gap: 0px;
}
.left-col{
    width: 40%;
    min-width: 400px;
}
.left-col img{
    width: 60%;
    height: 50%;
    padding-left: 100px;
    border-radius: 5px;
}
.right-col{
    width: 50%;
    height: 100%;
    /* text-align: left; */
    padding: 20px;
    box-shadow: 2px 1px 5px grey;   
}
.right-col > p{
    padding: 15px 0px;
    margin-right: 20px;
    text-align: justify;
}
.icons{
    float: right;
    margin-top: 30px;
    cursor: pointer;
}
.icons i:nth-child(1){color: #0866FF;}
.icons i:nth-child(2){color: #E1306C ;}
.icons i:nth-child(3){color: #1DA1F2;}
.icons i:nth-child(4){color: #25D366;}
.icons i:nth-child(5){color: #0A66C2;}

#about{
    background-image: url(../images/about.jpg);
    background-position: left;
}
/* ========Abou Me========== */
/* ================Skills=============== */

#skills{
    background-image: url(../images/b1.png), url(../images/bg2.jpg);
    background-size: 40% 100%, cover;
    background-repeat: no-repeat, no-repeat;
    background-position: right,center;
}

.skill-div{
    height: 90%;
    width: 80%;
    padding: 20px 20x 0px 20px;
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.sec-div{
    width: 40%;
    height: auto;
    /* background-color: red; */
    padding: 10px 20px;
    min-width: 200px;
}
.sec-div h2{
    color: var(--primary-color);
}
.sec-div div{
    margin-top: 10px;
    margin-left: 20px;
}
.sec-div div p,span{
    text-align: left;
    color: var(--secondary-color);
}
progress{
    -webkit-appearance: none; 
    -moz-appearance: none;
    appearance: none;
    width: 80%;
    height: 12px;
}
progress::-webkit-progress-value {
    background-color: var(--secondary-color); 
}
/* ================Skills=============== */
/* ========project============ */
.project-main {
    width: 100%;
    min-height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content:center;
    align-items: center;
    gap: 30px;
    padding: 60px 20px;
    background: #0f172a;
    box-sizing: border-box;
    
}

.project-card {
    width: 360px;
    background: #1e293b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin: 0;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}


.project-card h3 {
    color: #f8fafc;
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.project-card p {
    margin-top: 5px;
    margin-bottom: 20px;
    text-align: left;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
    flex-grow: 1;
}

.project-card .btn-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    gap: 10px;
}

.project-card button {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    background-color: #334155;
    color: #f1f5f9;
    transition: background-color 0.2s ease;
}

.project-card button:hover {
    opacity: 0.85;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background-color: #1e293b;
}

/* Project Filters Styling */
.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px 16px;
    background-color: #f1f1f1;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.filter-btn:hover {
    background-color: #ddd;
}

.filter-btn.active {
    background-color: blue;
    color: white;
}

/* Hide non-matching project cards */
.project-card.hide {
    display: none;
}
/* ========project============ */
/* ============= Contact Section CSS ============= */
#contact {
    background-color: #f9f9f9;
    padding: 60px 0;
    height: auto !important;
    /*margin-top: 350px;*/
}

.contact-container {
    width: 85%;
    max-width: 1200px;
    margin: 40px auto 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: white;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.contact-card-item i {
    font-size: 24px;
    color: var(--primary-color);
    background: rgba(231, 76, 60, 0.1);
    padding: 15px;
    border-radius: 50%;
}

.contact-card-item h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-card-item p {
    color: #666;
    font-size: 14px;
    text-align: left;
    font-weight: normal;
}

.contact-form-wrapper {
    flex: 1.2;
    min-width: 300px;
    background: white;
    padding: 30px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    font-size: 15px;
    transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.2);
}

.contact-form textarea {
    resize: vertical;
}

.submit-btn {
    width: 100%;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.4s;
    margin-top: 0;
}

.submit-btn:hover {
    background-color: var(--primary-color);
}

/* ============= Footer CSS ============= */
footer {
    background-color: #1a1a1a;
    color: white;
    padding: 50px 20px 20px 20px;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 36px;
    letter-spacing: 5px;
    margin-bottom: 10px;
    font-weight: bold;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-content p {
    color: #bbb;
    font-size: 15px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: normal;
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.footer-social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    font-size: 18px;
    text-decoration: none;
    transition: 0.3s;
}

.footer-social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
}

.footer-bottom p {
    color: #888;
    font-size: 14px;
    text-align: center;
    font-weight: normal;
}