/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Satisfy&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
}

:root {
    --bg-color: #08081b;       
    --second-bg-color: #11102d; 
    --text-color: #fff;
    --main-color: #00d2ff;     
}

html, body {
    width: 100%;
    overflow-x: hidden; 
    background: var(--bg-color);
    color: var(--text-color);
}

/* === HEADER === */
.header {
    position: fixed;
    top: 1.5rem; 
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 0.8rem 5%; 
    background: rgba(17, 16, 45, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 5rem;
    border: 1px solid rgba(0, 210, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 600;
    font-family: 'Satisfy', cursive;
    text-shadow: 0 0 5px var(--main-color); 
    white-space: nowrap;
}

#menu-icon {
    display: none;
    font-size: 3.6rem;
    color: var(--text-color);
    cursor: pointer;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    transition: .3s;
    font-weight: 500;
}

.navbar a:hover, .navbar a.active {
    color: var(--main-color);
    text-shadow: 0 0 10px var(--main-color);
}

/* === SECTIONS GENERAL === */
section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

/* === HOME SECTION === */
.home {
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 2rem;     
}

.home-content h1 {
    font-size: 5rem;    
    font-weight: 700;
    line-height: 1.2;
}

.home-content h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem; 
}

.home-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem; 
}
/* === TEXT COLOR HIGHLIGHT === */

/* "Panwar" ko Blue karega */
.home-content h1 span {
    color: var(--main-color);
}

/* "Developer" ko Blue karega */
.home-content h3 span {
    color: var(--main-color);
}

/* Agar About Me section mein bhi karna ho */
.about-content h2 span {
    color: var(--main-color);
}

/* Social Media Icons (Fixed Pulse Animation) */
.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 0 1.5rem 3rem 0;
    transition: .5s ease;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
    
    /* Animation Yahan Hai */
    animation: pulseIcon 2s infinite; 
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--main-color);
    transform: translateY(-5px);
    animation: none; /* Hover par dhadakna band */
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--bg-color);
    font-weight: 600;
    transition: .5s ease;
}

.btn:hover {
    box-shadow: 0 0 2rem var(--main-color);
    transform: scale(1.05);
}

.home-img img {
    width: 35vw;
    height: 35vw;
    max-width: 450px;
    max-height: 450px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    border: 2px solid var(--main-color);
    transition: 0.4s ease;
}

.home-img img:hover {
    box-shadow: 0 0 50px var(--main-color);
}

/* === ABOUT SECTION === */
/* About Section Image Fix */
/* === ABOUT SECTION (No Image - Text Centered) === */
.about {
    /* Content ko center karne ke liye */
    display: flex;
    flex-direction: column; /* Upar se neeche */
    justify-content: center;
    align-items: center;
    text-align: center; /* Saara text beech mein */
    background: var(--second-bg-color);
}

/* Text ko zyada failne se rokne ke liye */
.about-content {
    max-width: 800px; /* Isse zyada chauda nahi hoga */
}

.about-content h2 {
    font-size: 4rem;
    /* text-align: left; <-- Ye hata diya */
}

.about-content h3 {
    font-size: 2.6rem;
    margin-top: 1rem;
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
    line-height: 1.6; /* Padhe mein aasani ho */
}
/* === PROJECTS SECTION === */
.projects {
    background: var(--bg-color);
    text-align: center;
}

.projects h2 { margin-bottom: 4rem; font-size: 4rem; }

.projects-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 2.5rem;
}

.projects-box {
    background: #1f243d;
    border-radius: 2rem;
    padding: 3rem 2rem;
    border: 1px solid rgba(0, 210, 255, 0.2);
    transition: .5s ease;
}

.projects-box:hover {
    transform: translateY(-10px);
    border-color: var(--main-color);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

.projects-box i { font-size: 4rem; color: var(--main-color); margin-bottom: 1rem; }
.projects-box h3 { font-size: 2.4rem; margin-bottom: 1rem; }
.projects-box p { font-size: 1.4rem; color: #ddd; margin-bottom: 2rem; }

/* === CONTACT SECTION (Fixed Form) === */
.contact h2 { text-align: center; margin-bottom: 3rem; font-size: 4rem; }

.contact form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box input, 
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--second-bg-color); /* Dark Background */
    border-radius: .8rem;
    margin: .7rem 0;
    border: 1px solid rgba(0, 210, 255, 0.2);
}

.contact form .input-box input { width: 49%; }
.contact form textarea { resize: none; height: 200px; }

.contact form .input-box input:focus, 
.contact form textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}
/* === CONTACT ICONS & BUTTONS === */
.contact-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap; /* Mobile par tootne nahi dega */
}

.contact-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem; /* Icon aur Text ke beech gap */
    padding: 1.2rem 3rem;
    background: var(--second-bg-color);
    border: 1px solid var(--main-color); /* Neon Border */
    border-radius: 3rem; /* Gol Button */
    font-size: 1.6rem;
    color: var(--text-color);
    font-weight: 500;
    transition: 0.4s ease;
    cursor: pointer;
}

/* Icon Size & Color */
.contact-card i {
    font-size: 2.4rem;
    color: var(--main-color);
    transition: 0.4s ease;
}

/* Hover Effect (Glow karega) */
.contact-card:hover {
    background: var(--main-color);
    color: #000; /* Text Black ho jayega */
    box-shadow: 0 0 15px var(--main-color);
    transform: translateY(-5px);
}

.contact-card:hover i {
    color: #000; /* Hover par icon bhi black */
}

/* === FOOTER SECTION === */
/* === FOOTER SECTION === */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
    border-top: 1px solid rgba(0, 210, 255, 0.2);
}

.footer-text p {
    font-size: 1.6rem;
    color: #ddd;
    margin-bottom: 0.5rem;
}

/* Dil ki Dhadkan Animation */
.heart-beat {
    display: inline-block;
    color: #ff0000;
    animation: heartbeat 1.5s infinite ease-in-out;
    text-shadow: 0 0 5px #ff0000;
    font-size: 1.8rem;
}

/* --- FOOTER SOCIAL ICONS (Ye Missing Tha) --- */
.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3.5rem;
    height: 3.5rem;
    background: transparent;
    border: 1px solid var(--main-color);
    border-radius: 50%;
    color: var(--main-color);
    font-size: 1.8rem;
    transition: 0.4s ease;
}

.footer-social a:hover {
    background: var(--main-color);
    color: #000;
    box-shadow: 0 0 10px var(--main-color);
    transform: translateY(-5px);
}

/* Up Arrow Button */
.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem;
    background: var(--main-color);
    border-radius: 0.8rem;
    transition: 0.4s ease;
}

.footer-iconTop a i { font-size: 2.4rem; color: #000; }
.footer-iconTop a:hover { box-shadow: 0 0 20px var(--main-color); transform: translateY(-5px); }

/* Mobile View Adjustment */
@media (max-width: 768px) {
    .footer {
        flex-direction: column-reverse; /* Icons upar, text neeche */
        gap: 2rem;
        text-align: center;
        padding-bottom: 4rem;
    }
}
/* === ANIMATION ENGINE (Zaroori Hai) === */
@keyframes pulseIcon {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(0, 210, 255, 0.3); }
    50% { transform: scale(1.1); box-shadow: 0 0 20px rgba(0, 210, 255, 0.6); }
    100% { transform: scale(1); box-shadow: 0 0 10px rgba(0, 210, 255, 0.3); }
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.3); }
    60% { transform: scale(1); }
    100% { transform: scale(1); }
}

/* === MOBILE RESPONSIVENESS === */
@media (max-width: 991px) {
    .header { padding: 1rem 5%; }
    section { padding: 10rem 3% 2rem; }
    .projects-container { grid-template-columns: repeat(2, 1fr); }
    .footer { padding: 2rem 3%; }
}

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

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: 1px solid rgba(0, 210, 255, 0.2);
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.1);
        display: none;
    }
    
    .navbar.active { display: block; }
    .navbar a { display: block; margin: 3rem 0; font-size: 2rem; }

    .home {
        flex-direction: column;
        text-align: center;
        margin-top: 5rem;
    }

    .home-content h1 { font-size: 4rem; }
    .home-img img { width: 70vw; height: 70vw; }
    
    .about { flex-direction: column-reverse; text-align: center; }
    .about-img img { width: 60vw; height: 60vw; margin-top: 2rem; }
    
    .projects-container { grid-template-columns: 1fr; }
    
    .contact form .input-box input { width: 100%; }
    
    .footer {
        flex-direction: column-reverse;
        gap: 2rem;
        text-align: center;
        padding-bottom: 4rem;
    }
}
