@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: #1f242d;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

a {
    color: #fff;
    text-decoration: none;

}

.navbar {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    padding: 25px 9%;

    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

@keyframes show-content {
    100% {
        visibility: visible;
        opacity: 1;
    }

}

.navbar .logo {
    font-size: 30px;
    font-weight: 700;


}

.navbar ul {

    display: flex;
}

.navbar ul li {

    list-style: none;
    margin-left: 35px;


}

.navbar ul li a {

    font-size: 20px;
    font-weight: 500;
    transition: .5s;
}

.navbar ul li:hover a,
.navbar ul li.active a {
    color: red;
}

/* Hamburger Menu Icon */
#menu-icon {
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    display: none;
}

.home {
    display: flex;
    align-items: center;


    padding: 100px 10% 0;
    color: #fff;
}

.home-info h1 {
    font-size: 55px;
    line-height: 1.2;
}

.home-info h2 {
    display: inline-block;
    font-size: 32px;
    margin-top: -10px;

}

.home-info h2 span {
    display: inline-block;
    color: transparent;
    -webkit-text-stroke: .7px red;
    animation: display-text 6.7s linear infinite;
    animation-delay: calc(-2s * var(--i));
}


@keyframes display-text {

    25%,
    100% {
        display: none;
    }

}

.home-info h2 span::before {
    content: attr(data-text);
    position: absolute;
    width: 0%;
    border-right: 2px solid red;
    color: red;
    white-space: nowrap;
    overflow: hidden;
    animation: fill-text 9s linear infinite;
}

@keyframes fill-text {

    10%,
    100% {
        width: 0%;
    }

    70%,
    90% {
        width: 100%;
    }
}

.home-info p {

    font-size: 16px;
    margin: 10px 0 25px;
}

.home-info .btn-sci {

    display: flex;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 10px 30px;
    background: red;
    border: 2px solid red;
    border-radius: 40px;
    box-shadow: 0 0 10px red;
    font-size: 16px;
    color: darkslategray;
    font-weight: 600;
    transition: .5s;
}

.btn:hover {

    background: transparent;
    color: red;
    box-shadow: none;
}

.home-info .btn-sci .sci {
    margin-left: 20px;
}

.home-info .btn-sci .sci a {

    display: inline-flex;
    padding: 8px;
    border: 2px solid red;
    border-radius: 50%;
    font: size 20px;
    color: red;
    margin: 0 8px;
    transition: .5s;
}

.home-info .btn-sci .sci a:hover {
    background: red;
    color: #1f242d;
    box-shadow: 0 0 10px red;
}

/* Protection Layer: Prevent Text Selection & Dragging */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Allow selection in specific fields like form inputs */
input,
textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.home-img .img-box {
    position: relative;
    margin-left: 10%;
    width: 32vw;
    height: 32vw;

    border-radius: 50%;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 20px;
    margin-top: 30px;
}

.home-img .img-box::before,
.home-img .img-box::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: conic-gradient(transparent, transparent, transparent, red);
    transform: rotate(0deg);
    animation: rotate-border 10s linear infinite;

}

@keyframes rotate-border {
    100% {
        transform: rotate(360deg);
    }
}

.home-img .img-box .img-item {
    position: relative;
    width: 100%;
    height: 100%;
    background: #1f242d;
    border: .1px solid #1f242d;
    border-radius: 50%;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.home-img .img-box .img-item img {

    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: lighten;
}

.bars-animation {
    position: absolute;
    height: 100%;
    width: 100%;
    display: flex;
    z-index: -1;
}

.bars-animation .bar {

    height: 100%;
    width: 100%;
    background: #1f242d;

    transform: translateY(-100%);
    animation: show-bars .2s ease-in-out forwards;
    animation-delay: calc(.1s * var(--1));
}

@keyframes show-bars {
    100% {
        transform: translateY(0%);
    }
}

/* === ABOUT SECTION === */

.about {
    background: #1f242d;
    padding: 100px 9% 80px;
    color: #fff;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: red;
    margin-top: -10px;
    margin-bottom: 10px;
    position: relative;
}

.section-title p {
    font-size: 16px;
    max-width: 800px;
    line-height: 1.6;
    margin: 20px auto 0;
    color: #ccc;
    text-align: center;
}

.about-content {
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
    align-items: center;
}

.about-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
}

.about-img {
    flex: 1 1 300px;
    text-align: left;
}

.about-img img {
    width: 100%;
    max-width: 300px;
    border-radius: 20px;
    box-shadow: 0 0 20px red;
    transition: transform 0.4s ease;
}

.about-img img:hover {
    transform: scale(1.05);
}

.about-text {
    flex: 1 1 500px;
    margin: 0;
    /* remove any automatic margins */
    padding: 0;
    /* optional: adjust if needed */
    align-self: flex-start;
    /* make sure it's aligned at the top-left if inside a flexbox */
    text-align: left;
    /* ensures text starts from the left */


}

.about-text h2 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.about-text .fst-italic {
    font-style: italic;
    color: #ccc;
    margin-bottom: 20px;
}

.about-lists {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}

.about-lists ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    /* makes both lists grow equally */
}

.about-lists li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 16px;
    color: #fff;
    flex-wrap: nowrap;
}

.about-lists li i {
    color: red;
    margin-right: 8px;
    flex-shrink: 0;
    margin-top: 3px;
    /* vertically aligns the icon */
}

.about-lists strong {
    font-weight: 600;
    color: #fff;
    min-width: 60px;
    /* consistent label width */
    display: inline-block;
    flex-shrink: 0;
}

.about-lists span {
    color: #ccc;
    word-break: break-word;
    flex: 1;
}


.description {
    font-size: 15px;
    line-height: 1.6;
    color: #ccc;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-row {
        flex-direction: column;
        align-items: center;
    }

    .about-lists {
        flex-direction: column;
    }

    .about-img img {
        max-width: 250px;
    }
}

.about {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease-in-out;
}

#about:target {
    opacity: 1;
    transform: translateY(0);
}

/* === PORTFOLIO SECTION - REBUILT FOR DARK RED GLOW THEME === */

.portfolio {
    background-color: #1f242d;
    padding: 150px 9%;
    color: #fff;
}



.portfolio__filter {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.portfolio__filter li {
    cursor: pointer;
    padding: 10px 20px;
    border: 1px solid red;
    color: red;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.4s ease;
    background: transparent;
    box-shadow: 0 0 8px red;
}

.portfolio__filter li.active,
.portfolio__filter li:hover {
    background-color: red;
    color: #1f242d;
    box-shadow: 0 0 15px red;
}

.portfolio__gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.portfolio__item {
    background-color: #2c303a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    width: 300px;
}

.portfolio__item:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px red;
}

.portfolio__item__video {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 aspect ratio */
    background: #111;
    background-size: cover;
    background-position: center;
}

.portfolio__item__video .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    background: rgba(255, 0, 0, 0.7);
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px red;
    transition: background 0.3s ease;
}

.portfolio__item__video .play-btn:hover {
    background: red;
}

.portfolio__item__text {
    padding: 20px;
    text-align: center;
}

.portfolio__item__text h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.portfolio__item__text ul,
.portfolio__item__text span {
    font-size: 14px;
    color: #ccc;
    list-style: none;
    padding: 0;
    margin: 0;
}

.portfolio__item__text ul li {
    display: inline-block;
    margin: 0 5px;
}

.pagination__option {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 10px;
}

.arrow__pagination,
.number__pagination {
    padding: 8px 16px;
    background: red;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
    box-shadow: 0 0 10px red;
}

.arrow__pagination:hover,
.number__pagination:hover {
    background: #a30000;
}

/* Responsive */
@media (max-width: 768px) {
    .portfolio__gallery {
        flex-direction: column;
        align-items: center;
    }

    .portfolio__item {
        width: 90%;
    }
}

.portfolio-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: red;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

/* === COMBINED SERVICES & SKILLS SECTION === */
.services-skills {
    background: #1f242d;
    padding: 100px 9% 80px;
    color: #fff;
}

.services-skills .section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: red;
    margin-bottom: 10px;
    text-align: center;
}

.services-skills .section-title p {
    font-size: 16px;
    max-width: 800px;
    line-height: 1.6;
    margin: 0 auto 40px;
    color: #ccc;
    text-align: center;
}

/* Services Part */
.service-item {
    background: #2c303a;
    padding: 30px;
    border-radius: 10px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.service-item.item-cyan {
    border-bottom: 3px solid #0dcaf0;
}

.service-item.item-orange {
    border-bottom: 3px solid #fd7e14;
}

.service-item.item-teal {
    border-bottom: 3px solid #20c997;
}

.service-item.item-indigo {
    border-bottom: 3px solid #6610f2;
}

.service-item.item-pink {
    border-bottom: 3px solid #d63384;
}

.service-item .icon {
    position: relative;
    margin-bottom: 20px;
}

.service-item .icon svg {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.1;
}

.service-item .icon i {
    font-size: 36px;
    color: red;
    position: relative;
}

.service-item h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.service-item p {
    color: #ccc;
    margin-bottom: 0;
}

/* Skills Part */
.skills-part {
    margin-top: 80px;
    padding: 50px 9% 0;
    border-top: 1px solid rgba(255, 0, 0, 0.2);
}

/* Align skills section title like other sections */
.skills-part .section-title {
    text-align: center;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.skill-card {
    background: #2c303a;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.skill-card i {
    font-size: 50px;
    transition: transform 0.3s ease;
}

.skill-card span {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: red;
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.2);
}

.skill-card:hover i {
    transform: scale(1.1);
}

/* Responsive adjustments for skills */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }

    .skill-card {
        padding: 20px 15px;
    }

    .skill-card i {
        font-size: 40px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .services-skills {
        padding: 60px 5% 40px;
    }

    .service-item {
        margin-bottom: 20px;
    }

    .skills-part {
        margin-top: 50px;
        padding-top: 30px;
    }
}

/* === DARK THEME CONTACT SECTION === */
.contact {
    background: #1f242d;
    padding: 100px 9% 80px;
    color: #fff;
}

.contact .info-wrap {
    background-color: #2c303a;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 10px;
}

@media (max-width: 575px) {
    .contact .info-wrap {
        padding: 20px;
    }
}

.contact .info-item {
    margin-bottom: 40px;
}

.contact .info-item i {
    font-size: 20px;
    color: red;
    background: rgba(255, 0, 0, 0.08);
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
    margin-right: 15px;
}

.contact .info-item h3 {
    padding: 0;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
}

.contact .info-item p {
    padding: 0;
    margin-bottom: 0;
    font-size: 14px;
    color: #ccc;
}

.contact .info-item:hover i {
    background: red;
    color: #1f242d;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.contact .php-email-form {
    background-color: #2c303a;
    height: 100%;
    padding: 30px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

@media (max-width: 575px) {
    .contact .php-email-form {
        padding: 20px;
    }
}

.contact .php-email-form label {
    color: #fff;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
    font-size: 14px;
    padding: 12px 15px;
    box-shadow: none;
    border-radius: 5px;
    color: #fff;
    background-color: #1f242d;
    border: 1px solid #3a3f49;
    width: 100%;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus {
    border-color: red;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

.contact .php-email-form input[type=text]::placeholder,
.contact .php-email-form input[type=email]::placeholder,
.contact .php-email-form textarea::placeholder {
    color: #6c757d;
}

.contact .php-email-form button[type=submit] {
    color: #fff;
    background: red;
    border: 0;
    padding: 12px 30px;
    transition: 0.4s;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.contact .php-email-form button[type=submit]:hover {
    background: rgba(255, 0, 0, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

/* Form Messages */
.contact .php-email-form .loading,
.contact .php-email-form .error-message,
.contact .php-email-form .sent-message {
    display: none;
    padding: 15px;
    margin-bottom: 20px;
    font-weight: 600;
    border-radius: 5px;
    text-align: center;
}

.contact .php-email-form .loading {
    color: #fff;
    background: rgba(255, 0, 0, 0.1);
}

.contact .php-email-form .error-message {
    color: #721c24;
    background: #f8d7da;
}

.contact .php-email-form .sent-message {
    color: #155724;
    background: #d4edda;
}

/* Map iframe */
.contact .info-wrap iframe {
    border-radius: 10px;
    border: none;
    margin-top: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* === MEDIA QUERIES === */

@media (max-width: 1200px) {
    .home {
        padding: 100px 5% 0;
    }
}

@media (max-width: 991px) {
    .navbar {
        padding: 20px 5%;
    }

    section {
        padding: 80px 5% 60px !important;
    }

    .home {
        flex-direction: column;
        text-align: center;
        padding: 100px 5% 40px !important;
        gap: 0;
        min-height: auto;
    }

    .home-info {
        order: 2;
        /* Text goes below image */
        width: 100%;
        margin-top: 20px;
    }

    .home-img {
        order: 1;
        /* Image goes on top */
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .home-info h1 {
        font-size: 32px;
        margin-bottom: 5px;
    }

    .home-info h2 {
        display: block;
        margin-bottom: 15px;
        font-size: 20px;
        height: 30px;
        /* Space for animated text */
    }

    .home-img .img-box {
        width: 220px;
        height: 220px;
        margin-left: 0;
        margin-top: 0;
        box-shadow: 0 0 25px rgba(255, 0, 0, 0.4);
    }

    .about-row {
        flex-direction: column;
        align-items: center;
    }

    .about-text {
        text-align: center;
        width: 100%;
    }

    .about-lists {
        justify-content: center;
        text-align: left;
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block !important;
    }

    .navbar ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 0 5%;
        background: #1f242d;
        border-top: .1rem solid rgba(255, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        display: none;
    }

    .navbar ul.active {
        display: block;
    }

    .navbar ul li {
        display: block;
        margin: 1.5rem 0;
        margin-left: 0;
    }

    .navbar ul li a {
        display: block;
        font-size: 20px;
    }

    .home-info h1 {
        font-size: 35px;
        margin-bottom: 10px;
    }

    .home-info h2 {
        font-size: 20px;
        display: block;
        margin-bottom: 20px;
    }

    .section-title h2 {
        font-size: 30px;
        margin-bottom: 20px;
    }

    .about-img img {
        max-width: 200px;
    }
}

@media (max-width: 520px) {
    .home-info h1 {
        font-size: 28px;
    }

    .home-img .img-box {
        width: 200px;
        height: 200px;
    }

    .btn-sci {
        flex-direction: column;
        gap: 20px;
    }

    .home-info .btn-sci .sci {
        margin-left: 0;
    }

    .portfolio__item {
        width: 100%;
    }
}

@media (max-width: 450px) {
    .about-lists {
        flex-direction: column;
        gap: 0;
    }

    .about-lists ul {
        width: 100%;
    }
}

.contact .info-wrap iframe {
    border-radius: 10px;
    border: none;
    margin-top: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Footer Styles */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 9%;
    background: #1f242d;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-text {
    flex: 1;
    text-align: center;
}

.footer-iconTop {
    text-align: right;
}

.footer-iconTop a {
    color: #fff;
    font-size: 24px;
    transition: color 0.3s;
}

.footer-iconTop a:hover {
    color: red;
}