/* GENERAL RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background-color: #0e0e0e;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */
header {
    width: 100%;
    padding: 20px 0;
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav h2 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}

.navUl {
    display: flex;
    gap: 15px;
    list-style: none;
}

.navUl button {
    background: transparent;
    border: 1px solid #555;
    padding: 8px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.navUl button:hover {
    background: #fff;
}

.navUl a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
}

.navUl button:hover a {
    color: #000;
}

nav>button {
    background: #ff4b2b;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

nav>button a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
}

nav>button:hover {
    background: #ff6b4a;
}

/* MAIN */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* TOP MAIN FULL SCREEN */
#home {
    min-height: 100vh;
    /* full page */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
    /* space for fixed nav */
    position: relative;
}

.topMain {
    text-align: center;
    width: 100%;
}

#typing-text {
    font-size: 52px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 2px;
    display: inline-block;
    white-space: nowrap;
    border-right: 3px solid #ff4b2b;
    overflow: hidden;
    min-width: 300px;
    /* prevents jumping */
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0% {
        border-color: #ff4b2b;
    }

    50% {
        border-color: transparent;
    }

    100% {
        border-color: #ff4b2b;
    }
}

.topMain h2 {
    font-size: 28px;
    font-weight: 500;
    color: #ff4b2b;
    margin-bottom: 15px;
}

/* shine text  */

.shiny-text {
    position: relative;
    display: inline-block;
    font-size: 1.2rem;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(90deg,
            #fff,
            #fff 30%,
            #ff4b2b 50%,
            #fff 70%,
            #fff);
    background-size: 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    0% {
        background-position: 200%;
    }

    100% {
        background-position: -200%;
    }
}

.shiny-text.disabled {
    animation: none;
}


.topMain p {
    font-size: 18px;
    color: #ccc;
    max-width: 500px;
    margin: 0 auto;
}

.topMain-btn {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.topMain-btn button {
    background: #ff4b2b;
    color: white;
    border: none;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.topMain-btn button:hover {
    background: #ff6b4a;
    transform: scale(1.1);
}

.topMain-btn a {
    text-decoration: none;
    color: white;
}

.topMain-btn #leftBTN {
    background-color: black;
    border: 2px solid #ff4b2b;
    color: #ff4b2b;
}

/* SCROLL DOWN ARROW */
.scroll-down {
    position: absolute;
    bottom: 20px;
    font-size: 20px;
    color: #ff4b2b;
    animation: bounce 1.5s infinite;
    cursor: pointer;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* ABOUT SECTION */
.about {
    min-height: 100vh;
    padding: 100px 20px;
    background-color: #0e0e0e;
    color: #fff;
    display: flex;
    justify-content: center;
    scroll-margin-top: 80px;
}

.about-container {
    max-width: 1100px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.about-left {
    max-width: 600px;
    text-align: left;
}

.about-left h2 {
    font-size: 36px;
    color: #ff4b2b;
    margin-bottom: 15px;
}

.about-left p {
    font-size: 18px;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 20px;
}

.about-left span {
    color: #ff4b2b;
    font-weight: 600;
}

.skills h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #ff4b2b;
}

.skills ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills li {
    background: #1a1a1a;
    padding: 10px 15px;
    border-radius: 6px;
    color: #fff;
    transition: all 0.3s ease;
}

.skills li:hover {
    background: #ff4b2b;
}

.cta {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.cta button {
    background: #ff4b2b;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta button:hover {
    background: #ff6b4a;
}

.cta button a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
}



.projects {
    padding: 100px 20px;
    background-color: #0e0e0e;
    text-align: center;
}

.projects h2 {
    font-size: 36px;
    color: #ff4b2b;
    margin-bottom: 40px;
}

.projects-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 75, 43, 0.2);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-card img {
    width: 100%;
    transition: transform 0.4s ease;
    border-radius: 8px;
    margin-bottom: 15px;
}

.project-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #fff;
}

.project-card p {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 15px;
}

.project-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.project-links a {
    background: #ff4b2b;
    color: #fff;
    text-decoration: none;
    margin-top: 2em;
    padding: 8px 15px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.project-links a:hover {
    background: black;
    color: #ff4b2b;
}

/* services */

.services {
    padding: 100px 20px;
    background-color: #0e0e0e;
    color: #fff;
    text-align: center;
}

.services-container {
    max-width: 1100px;
    margin: 0 auto;
}

.services-container h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.services-container h2 span {
    color: #ff4b2b;
}

.services-subtitle {
    color: #ccc;
    margin-bottom: 50px;
    font-size: 18px;
}

.services-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.service-card {
    background: #1a1a1a;
    padding: 40px 20px;
    border-radius: 12px;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 75, 43, 0.2), transparent);
    transition: all 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(255, 75, 43, 0.4);
}

.service-card i {
    font-size: 40px;
    color: #ff4b2b;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.2);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.service-card p {
    color: #ccc;
    font-size: 16px;
    line-height: 1.5;
}

.services {
    min-height: 100vh;
}

.contact {
    min-height: 100vh;
}


/* contact */
/* CONTACT SECTION FROM 0 */
.contact {
    padding: 100px 20px;
    background-color: #0e0e0e;
    color: #fff;
    display: flex;
    justify-content: center;
}

.contact-container {
    max-width: 1100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    width: 100%;
}

/* ✨ FORM LEFT */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 75, 43, 0.2);
    flex: 1 1 350px;
}

.contact-form h2 {
    color: #ff4b2b;
    text-align: center;
    margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea {
    background: #0e0e0e;
    color: white;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px;
    font-size: 16px;
}

.contact-form button {
    background: #ff4b2b;
    border: none;
    padding: 12px;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: #ff6b4a;
}

/* ✨ RIGHT SIDE ICONS */
.contact-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    flex: 1 1 250px;
}

.social-row {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.social-row i {
    font-size: 40px;
    color: #ff4b2b;
    cursor: pointer;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.social-row i:hover {
    transform: scale(1.15);
    text-shadow: 0 0 10px #ff4b2b;
}

.email-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.email-row i {
    font-size: 35px;
    color: #ff4b2b;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.email-row i:hover {
    transform: scale(1.15);
    text-shadow: 0 0 10px #ff4b2b;
}

.email-row p {
    color: #ccc;
    font-size: 16px;
    font-weight: 500;
}

/* footer  */
.footer {
    background: #0d0d0d;
    color: #fff;
    padding: 50px 20px 20px;
    margin-top: 80px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
    gap: 30px;
}

.footer-left h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-left p {
    font-size: 14px;
    opacity: 0.7;
}

.footer-middle .footer-links {
    list-style: none;
    padding: 0;
}

.footer-middle .footer-links li {
    margin: 8px 0;
    border: 1px solid #ff4b2b;
    padding: 1em;
    border: 8px;
}

.footer-middle .footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-middle .footer-links a:hover {
    color: #ff4d4d;
}

.footer-right {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}

.footer-right a {
    color: #fff;
    font-size: 24px;
    transition: transform 0.3s, color 0.3s;
}

.footer-right a:hover {
    color: #ff4d4d;
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.6;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
}

.about-container {
    max-width: 1100px;
    display: flex;
    flex-wrap: wrap;
    gap: 120px;
    align-items: center;
    justify-content: space-between;
}

.about-right {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.user-card {
    background: #1a1a1a;
    padding: 60px 50px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 75, 43, 0.3);
    transition: transform 0.3s ease;
}

.user-card:hover {
    transform: translateY(-10px);
    cursor: pointer;
}

.user-card i {
    font-size: 60px;
    color: #ff4b2b;
    margin-bottom: 15px;
}

.user-card h3 {
    font-size: 24px;
    margin-bottom: 5px;
    color: white;
}

.user-card p {
    font-size: 16px;
    color: #ccc;
}

.floating-icons {
    padding: 60px 0;
    background: #0e0e0e;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.floating-icons i {
    font-size: 40px;
    color: #ff4b2b;
    animation: float 3s ease-in-out infinite;
}

.floating-icons i:nth-child(2) {
    animation-delay: 0.5s;
}

.floating-icons i:nth-child(3) {
    animation-delay: 1s;
}

.floating-icons i:nth-child(4) {
    animation-delay: 1.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}


textarea {
    resize: none;
}

/* Responsive */


/* Smooth scroll globally */
html {
    scroll-behavior: smooth;
}

/* ✨ Reveal animation for sections */
section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

section.show {
    opacity: 1;
    transform: translateY(0);
}

/* ✨ Navbar scroll background */
header.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    transition: background 0.3s ease;
}



/* burger */

/* 🍔 Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 200;
}

.burger span {
    width: 28px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
}

/* Mobile only */
@media (max-width: 768px) {

    /* Hide the buttons and nav links initially */
    .navUl,
    nav>button {
        position: fixed;
        top: 0;
        right: -100%;
        background: rgba(0, 0, 0, 0.95);
        height: 100vh;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        transition: right 0.4s ease;
    }

    .navUl.active,
    nav>button.active {
        right: 0;
    }

    /* Hide the menu button text, keep burger + logo */
    .burger {
        display: flex;
    }

    /* hide the original buttons at the top */
    nav>button {
        display: none;
    }
}

/* Burger X animation */
.burger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}




/* Responsive */



@media (max-width: 768px) {

    body {
        text-align: center;
    }

    .topMain {
        margin: 1em;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .services-grid {
        flex-direction: column;
        align-items: center;
    }

    .about-text {
        text-align: center;
    }

    nav {
        flex-direction: column;
        gap: 10px;
    }

    .navUl {
        flex-wrap: wrap;
        justify-content: center;
    }

    .topMain h1 {
        font-size: 36px;
    }

    .topMain h2 {
        font-size: 20px;
    }

    .projects-container,
    .services-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-content {
        flex-direction: column;
        text-align: center;
    }

    .icons {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }
}


@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-right {
        justify-content: center;
    }
}


@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-right {
        align-items: center;
    }
}