/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@600;700&display=swap');

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    color: #111827;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 1.2rem;
    color: wheat;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin: 1em 0;
}

a {
    text-decoration: none;
    color: #38bdf8;
    font-weight: 500;
    transition: 0.3s;
}

a:hover {
    color: #22c55e;
}


.back-button {
    position: fixed;
    z-index: 1000;
    display: flex;
    top: 18px;
}

/* ===== HEADER ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 100px;
    background: #020617;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-le b {
    font-size: 1rem;
    color: #ffffff;
}

.header-ri ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

.header-ri a {
    color: #fff;
    font-weight: 500;
}

.header-ri a:hover {
    color: #22c55e;
}

/* ===== HERO SECTION ===== */

/* ===== ABOUT SECTION ===== */
/* .about-section {
    padding: 80px 20px;
    background: #ffffff;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 130px;
    align-items: center;
    max-width: 1100px;
    margin: auto;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #020617;
    text-align: start;

}

.about-content p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: start;

} */

/* ===== SKILLS SECTION ===== */
.skills-section {
    padding: 80px 20px;
    text-align: center;
    /* background: #f8fafc; */
}

.skills-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: auto;
}

.skill-category {
    background: #fff;
    border-radius: 16px;
    padding: 30px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.skill-category h3 {
    color: #2563eb;
    margin-bottom: 20px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.skill {
    padding: 9px 18px;
    background: #ffffff;
    border: 1px solid #cbd5f5;
    border-radius: 25px;
    font-size: 0.9rem;
    color: #1e293b;
    transition: all 0.3s ease;
}

.skill:hover {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
    padding: 80px 20px;
    text-align: center;
    /* background: #ffffff; */
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: auto;
}

.project-card {
    background: #f8fafc;
    color: #4d4c4c;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.project-card a {
    color: #38bdf8;
    font-weight: 600;
}

.project-card:hover {
    transform: translateY(-6px);
}

/* ===== ACHIEVEMENTS SECTION ===== */
.achievements-section {
    padding: 80px 20px;
    background: #f8fafc;
    text-align: center;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: auto;
}

.achievement-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    transition: transform 0.3s ease;
}

.achievement-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.achievement-card:hover {
    transform: translateY(-6px);
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
    padding: 80px 20px;
    text-align: center;
    color: #020617;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: auto;
}

.testimonial-card {
    background: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.testimonial-card p {
    color: #020617;
    margin-bottom: 15px;
}

.testimonial-card h4 {
    color: #38bdf8;
    font-weight: 600;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.contact-container {
    max-width: 900px;
    width: 100%;
}

.contact-card {
    background: #1e293b;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.contact-item h4 {
    color: #22c55e;
    margin-bottom: 8px;
}

.contact-item p a {
    color: #fff;
    transition: 0.3s;
}

.contact-item p a:hover {
    color: #38bdf8;
}

.contact-details {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}
@media (max-width:800px) {
    .projects-section {
    text-align: start;
}
}

/* ===== FOOTER ===== */
/* ===== FOOTER ===== */
.footer {
    background: #020617;
    /* dark background */
    color: #ffffff;
    /* default text color */
    padding: 40px 20px 20px;
    font-family: 'Inter', sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: auto;
    gap: 20px;
}

.footer-box h3,
.footer-box h4 {
    color: #38bdf8;
    margin-bottom: 10px;
    font-weight: 600;
}

.footer-box p {
    color: #cbd5f5;
    line-height: 1.5;
    font-size: 0.95rem;
}

.footer-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.footer-box ul li {
    margin-bottom: 8px;
}

.footer-box ul li a {
    color: #cbd5f5;
    text-decoration: none;
    transition: 0.3s;
}

.footer-box ul li a:hover {
    color: #22c55e;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}


/* ===== MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) {

    /* Header */
    header {
        flex-direction: column;
        padding: 15px 20px;
        text-align: center;
    }

    .header-ri ul {
        gap: 15px;
        display: flex;
        display: none;
    }

    /* Hero Section */
    .hero {
        flex-direction: column;
        padding: 0px 15px;
    }

    .hero-l h2 {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-l h2 {
        font-size: 1.5rem;
    }

    /* About Section */
    /* .about-container {
        grid-template-columns: 1fr;
        gap: 130px;
        display: flex;
        flex-direction: column-reverse;
    } */

    /* Skills Section */
    .skills-box {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Projects & Achievements */
    .projects-grid,
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Contact Section */
    .contact-section {
        padding: 60px 15px;
    }

    .contact-details {
        flex-direction: column;
        gap: 20px;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .hero-l h3 {
        width: auto;
    }

}


/* ================================
   SOCIAL ICONS – FONT AWESOME FIX
================================ */

.social {
    display: flex;
    gap: 14px;
    margin-top: 16px;
}

.so {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Icon box */
.social a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f1f5f9;
    color: #111827;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

/* IMPORTANT: Font Awesome icon fix */
.social a i {
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
    line-height: 1;
}

/* Hover animation */
.social a:hover {
    transform: translateY(-4px) scale(1.05);
    color: #ffffff;
}

/* Brand hover colors */
.social a:nth-child(1):hover {
    background-color: #1877f2;
    /* Facebook */
}

.social a:nth-child(2):hover {
    background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
    /* Instagram */
}

.social a:nth-child(3):hover {
    background-color: #0a66c2;
    /* LinkedIn */
}








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


:root {
    /* Colors */
    --primary: #0f72ff;
    --primary-light: #3b82f6;
    --secondary: #8b5cf6;
    --dark: #1e293b;
    --light: #00000021;
    --muted: #8f9194;
    --card: #d3d1d1;
    --bg: #fafdff7f;
    --text: #949eae;
    --glass: rgba(161, 155, 155, 0.497);

    /* Hero specific colors */
    --hero-accent: #00eaff;
    --hero-shadow: 0 0 10px #00eaff;
    --hero-glow: 0 0 20px #00eaff;

    /* Layout */
    --radius: 12px;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0);
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --container: 1500px;
}



.about-container {
    max-width: var(--container);
    margin: 0px auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 1px 40px 25px;
}

.image-section {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    text-align: center;
}

@media (max-width: 1000px) {
    .image-section {
        display: none;
    }
}

.profile-img {
    width: 280px;
    height: 361px;
    border-radius: 10%;
    object-fit: cover;
    border: 8px solid #e9ecef;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.text-section {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.name {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--text);
    font-weight: 600;
}

.tagline {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 500;
}

.description {
    font-size: 1.05rem;
    color: var(--muted);
    margin-bottom: 25px;
}

.highlight {
    padding: 5px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    color: #496188;
}


@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        padding: 25px;
    }

    .profile-img {
        width: 220px;
        height: 220px;
    }

    .name {
        font-size: 1.8rem;
    }
}


/* hero-------------------------------- */

body {
    overflow-x: hidden;
    /* background: linear-gradient(180deg, #f5f7ff, #e0e8ff); */
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

.hero {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 70px;
    flex-wrap: wrap;
    max-width: 1500px;
    margin: auto;
}

/* LEFT SIDE */
.hero-left {
    flex: 1;
    min-width: 300px;
    padding-right: 20px;
}

.greeting {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 10px;
    text-shadow: 0 0 10px #5b029b;
}

.title-3d {
    font-size: 4rem;
    font-weight: 800;
    perspective: 900px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.title-3d span {
    color: rgb(0, 100, 255);
    text-shadow: 0 0 20px #888889ac;
    padding: 0 8px;
}


.sub {
    margin-top: 15px;
    max-width: 500px;
    opacity: 0.9;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.btn {
    margin-top: 25px;
    padding: 12px 32px;
    font-size: 1.1rem;
    border-radius: 12px;
    cursor: pointer;
    background: transparent;
    border: 2px solid rgb(0, 100, 255);
    color: rgb(0, 100, 255);
    transition: .3s;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn:hover {
    background: rgb(0, 100, 255);
    color: #fff;
    box-shadow: 0 0 20px rgb(0, 100, 255);
}



/* RIGHT SIDE 3D CARD */
.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 300px;
}

.card3d {
    width: 320px;
    height: 320px;
    background: #0f172a;
    border-radius: 25px;
    border: 1px solid rgb(0, 100, 255)66;
    box-shadow: 0px 0px 40px rgb(0, 100, 255)44;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    transition: transform 0.2s ease-out;
}

/* 3D CUBE INSIDE */
.cube {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, rgb(0, 100, 255)80, #003bff80);
    border: 2px solid rgb(0, 100, 255);
    border-radius: 20px;
    box-shadow: 0 0 25px rgb(0, 100, 255)88, inset 0 0 20px rgb(0, 100, 255)44;
    animation: float 3s ease-in-out infinite alternate;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cube img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

/* FLOAT ANIMATION */
@keyframes float {
    0% {
        transform: translateY(-15px) rotateY(0deg);
    }

    100% {
        transform: translateY(15px) rotateY(25deg);
    }
}

/* Social Icons */
.social-icons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 234, 255, 0.1);
    color: rgb(0, 100, 255);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 234, 255, 0.3);
}

.social-icons a:hover {
    background: rgb(0, 100, 255);
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 234, 255, 0.4);
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 1024px) {
    .hero {
        padding: 50px;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 30px;
        text-align: center;
        justify-content: center;
        gap: 50px;
    }

    .hero-left {
        padding-right: 0;
    }

    .title-3d {
        font-size: 3rem;
    }

    .card3d {
        width: 280px;
        height: 280px;
    }

    .cube {
        width: 160px;
        height: 160px;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 20px;
    }

    .title-3d {
        font-size: 2.5rem;
    }

    .sub {
        font-size: 1rem;
    }

    .card3d {
        width: 250px;
        height: 250px;
    }

    .cube {
        width: 140px;
        height: 140px;
    }
}



/* ////////////////////////////////////////////// */

.section-soft {
    position: relative;
    width: 100%;
    background: transparent;
    background-color: #007bff;
}

/* हल्का सा smooth movement */
.soft-icon {
    position: absolute;
    top: 437px;
    left: 85%;
    font-size: 77px;
    transform: translate(-50%, -40%);
    animation: softFloat 4.5s ease-in-out infinite;
}

/* बहुत हल्का movement (2-6px) */
@keyframes softFloat {
    0% {
        transform: translate(-50%, -100%) translateY(0) rotate(0deg);
    }

    50% {
        transform: translate(-50%, -50%) translateY(6px) rotate(5deg);
    }

    100% {
        transform: translate(-50%, -100%) translateY(10) rotate(10deg);
    }
}



/* 2 */
.section-move3 {
    background-color: #007bff;
    position: relative;
    width: 100%;
    background: transparent;
}

.circle-container {
    background-color: #007bff;
    position: absolute;
    width: 160px;
    height: 160px;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    animation: rotate 6s linear infinite;
    /* height: 280px; */
}

@media (max-width:700px) {
    .circle-container {
        width: 60px;
        height: 60px;
    }

    .circle-container {

        top: 91%;
        left: 20%;
        transform: translate(-0%, -100%);
        animation: rotate 1s linear infinite;
        margin-top: -60px;
    }
}


@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.bubble {
    width: 214px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #ffd89b, #19547b);
    box-shadow: 0 10px 20px rgba(25, 84, 123, 0.15);
    animation: floata .1s ease-in-out infinite;
    cursor: pointer;
    margin-left: 50px;
    margin-top: -74px;
}

@media (min-width:1300px) {
    .bubble {
        margin-left: 85px;
    }
}

@media (max-width:1100px) {
    .bubble {
        margin-left: -7px;
    }
}


.bubble i {
    background: linear-gradient(135deg, #ffd89b, #19547b);
    font-size: 36px;
    color: #ffffff
}

@keyframes floata {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.image-section {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    text-align: center;
}

@media (max-width: 1000px) {
    .image-section {
        display: none;
    }

    .image-section img {
        display: none;
    }

    .soft-icon {
        display: block;
    }
}

body {
    background: #fff;
    color: #111;
    transition: 0.3s;
}

body.dark {
    background: #121212;
    color: #f1f1f1;
}

#themeToggle {
    font-size: 22px;
    padding: 4px 10px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    position: fixed;
    right: 5px;
    background-color: #111;
}