/* -------------------- GLOBAL -------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: url(./assets/bg11.png);
    /* background: #0b0b0f; */
    color: #fff;
}

h1, h2, h3 {
    font-family: 'Monoton', cursive;
    letter-spacing: 2px;
}

section {
    padding: 90px 10%;
    width: 100%;
}

.section-title {
    font-size: 40px;
    margin-bottom: 50px;
    background: linear-gradient(45deg, #ff00c3, #00d9ff, #00ff95);
    -webkit-background-clip: text;
    color: transparent;
    animation: glowText 4s infinite;
    text-align: center;
}

/* -------------------- NAV -------------------- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10,10,20,0.45);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

nav h1 {
    font-size: 32px;
    background: linear-gradient(45deg, #ff7aff, #00d9ff);
    -webkit-background-clip: text;
    color: transparent;
    word-break: break-word;
}

nav ul {
    display: flex;
    gap: 35px;
    list-style: none;
}

nav ul li a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
    font-size: 15px;
}

nav ul li a:hover {
    color: #00d9ff;
}

/* MOBILE NAV FIX */
@media (max-width: 850px) {
    nav ul {
        display: none;
    }
}

/* -------------------- HERO -------------------- */
/* -------------------- HERO -------------------- */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1553106833-1e3d39e0679d?blur=50') center/cover no-repeat;
    position: relative;
    width: 100%;
    padding: 0 10%;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
}

/* MAIN LAYOUT */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

    position: relative;
    z-index: 2;
    margin-top: 120px;
    flex-wrap: nowrap; /* For desktop */
}

/* HERO TEXT */
.hero-title {
    font-size: clamp(32px, 6vw, 60px);
    background: linear-gradient(45deg, #ff7aff, #00d9ff, #00ff95);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: clamp(16px, 3.5vw, 22px);
    margin-top: 15px;
    margin-bottom: 40px;
    color: #bbb;
}

/* CTA BUTTON */
.cta-btn {
    padding: 15px 40px;
    background: linear-gradient(45deg, #ff00c3, #00d9ff);
    border-radius: 50px;
    font-size: 18px;
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

.cta-btn:hover {
    transform: scale(1.09);
    box-shadow: 0 0 25px #00d9ff;
}

/* -------------------- USER IMAGE -------------------- */
.user {
    width: 450px;
    height: 350px;

    border-radius: 26px;

    /* Neon glow */
    box-shadow:
        0 35px 70px rgba(0, 0, 0, 0.95),
        0 0 60px rgba(0, 0, 0, 0.85),
        0 0 120px rgba(138, 43, 226, 0.45),
        0 0 200px rgba(0, 150, 255, 0.35);

    background: #000;
    overflow: hidden;
    transform: translateZ(0) scale(1.02);

    position: relative; /* Important for mobile repositioning */
}

/* -------------------- MOBILE + TABLET RESPONSIVENESS -------------------- */

@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;       /* stack vertically */
        text-align: center;          /* center all text */
        margin-top: 160px;
    }

    .hero-title {
        font-size: 42px;
        text-align: center;
    }

    .hero-subtitle {
        max-width: 90%;
        margin: 0 auto 25px auto;
    }

    .user {
        position: relative;
        top: 0;
        width: 80%;
        height: auto;
        margin-top: 20px;
    }
}

@media (max-width: 650px) {

    .hero {
        padding: 0 6%;
        height: auto;
        padding-bottom: 80px;
    }

    .hero-content {
        margin-top: 140px;
        gap: 25px;
    }

    .user {
        width: 95%;           /* fills screen width safely */
        height: auto;
        margin-top: 10px;
    }

    .cta-btn {
        padding: 14px 30px;
        font-size: 16px;
    }
}

@media (max-width: 420px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .user {
        width: 100%;
        border-radius: 18px;
    }
}


/* -------------------- ABOUT -------------------- */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    width: 100%;
}

.about-wrapper img {
    width: 100%;
    border-radius: 20px;
    animation: floatImage 6s infinite ease-in-out;
}

.about-text h3 {
    font-size: clamp(20px, 4vw, 30px);
    margin-bottom: 15px;
    color: #00ffea;
}

.about-text p {
    color: #ccc;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* MOBILE ABOUT FIX */
@media (max-width: 900px) {
    .about-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* -------------------- SKILLS -------------------- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    width: 100%;
}

.skill-card {
    padding: 30px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    transition: 0.4s;
}

.skill-card:hover {
    transform: scale(1.06);
    box-shadow: 0 0 30px #00d9ff;
}

/* -------------------- PORTFOLIO -------------------- */
/* -------------------- PORTFOLIO VIDEOS -------------------- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
}

.video-box {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}

.video-box:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px #00d9ff;
}

.video-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* -------------------- VIEW MORE BUTTON -------------------- */
.portfolio-btn-wrapper {
    text-align: center;
    margin-top: 40px;
}

.portfolio-btn {
    padding: 15px 40px;
    font-size: 18px;
    background: linear-gradient(45deg, #ff00c3, #00d9ff);
    border-radius: 50px;
    text-decoration: none;
    color: #fff;
    transition: 0.3s;
}

.portfolio-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 30px #00d9ff;
}

/* .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    width: 100%;
}

.portfolio-item {
    height: 270px;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    position: relative;
    transition: 0.4s;
}

.portfolio-item::after {
    content: "View Project";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    color: #00d9ff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.4s;
}

.portfolio-item:hover::after {
    opacity: 1;
} */

/* -------------------- CONTACT -------------------- */


/* -------------------- CONTACT FORM -------------------- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #bbb;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #00d9ff;
    box-shadow: 0 0 10px #00d9ff;
}




#contact {
    text-align: center;
}

.contact-text {
    font-size: 18px;
    color: #bbb;
    margin-bottom: 30px;
}

.contact-btn {
    padding: 15px 35px;
    background: linear-gradient(45deg, #00ff95, #00d9ff);
    color: black;
    border-radius: 50px;
    font-size: 18px;
    text-decoration: none;
    transition: 0.3s;
}

.contact-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 25px #00ff95;
}



/* -------------------- POPUP -------------------- */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    animation: fadeIn 0.3s ease-in-out;
}

.popup-content {
    background: #111;
    padding: 35px 45px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 0 25px #00d9ff;
    animation: scaleIn 0.3s ease-out;
}

.popup-content h3 {
    color: #00ffea;
    font-size: 26px;
    margin-bottom: 12px;
}

.popup-content p {
    color: #ccc;
    margin-bottom: 20px;
    font-size: 16px;
}

.popup-btn {
    padding: 12px 25px;
    background: linear-gradient(45deg, #ff00c3, #00d9ff);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    color: #fff;
    font-size: 16px;
    transition: 0.3s;
}

.popup-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 18px #00d9ff;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.6); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}




/* -------------------- FOOTER -------------------- */
footer {
    text-align: center;
    padding: 25px;
    background: #050507;
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%;
}

/* -------------------- ANIMATIONS -------------------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatImage {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

@keyframes glowText {
    0% { text-shadow: 0 0 15px #ff00c3; }
    50% { text-shadow: 0 0 30px #00d9ff; }
    100% { text-shadow: 0 0 15px #ff00c3; }
}
