/* --- VARIABLES --- */
:root {
    --bg-dark: #070707;
    --text-main: #ffffff;
    --text-muted: #a3a3a3;
    --primary-blue: #3b82f6;
    --primary-pink: #ec4899;
    --grad-blue-pink: linear-gradient(135deg, #3b82f6, #ec4899);
    --glass-bg: rgba(255, 255, 255, 0.05);
}

/* --- GLOBAL & SCROLL FIX (No Left-Right Scroll) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.15), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.15), transparent 40%),
        var(--bg-dark);
    background-attachment: fixed;
    overflow-x: hidden !important;
    /* Mst Important: Blocks horizontal scroll */
    width: 100%;
    position: relative;
}

h1,
h2,
h3,
.logo,
.btn-premium {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    padding: 20px 5%;
    z-index: 1000;
    transition: 0.3s;
}

.navbar.scrolled {
    background: rgba(7, 7, 7, 0.9);
    backdrop-filter: blur(15px);
    padding: 15px 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
}

.logo span {
    color: var(--primary-pink);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

/* --- BUTTONS --- */
.btn-premium {
    padding: 12px 30px;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.btn-premium i {
    margin-right: 8px;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.3);
}

.btn-blue-pink,
.nav-btn {
    background: var(--grad-blue-pink);
}

.btn-pink-purple {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
}

/* --- HERO SECTION (Desktop) --- */
section {
    max-width: 1200px;
    margin: auto;
    padding: 120px 5%;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.badge-tech {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 30px;
    color: var(--primary-blue);
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: inline-block;
}

.greeting {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.gradient-text {
    background: linear-gradient(to right, #fff, #b3b3b3);
    -webkit-background-clip: text;
    color: transparent;
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero h2 {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 400;
}

.cursor {
    color: var(--primary-pink);
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Image Style (Desktop) */
.hero-image-container {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    background: var(--grad-blue-pink);
    filter: blur(60px);
    opacity: 0.3;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.profile-img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    transition: 0.3s;
}

.profile-img:hover {
    transform: scale(1.02);
}

/* --- GLASSMORPHISM --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
}

.section-title span {
    color: var(--primary-pink);
}

/* --- ABOUT (Timeline) --- */
.timeline-item {
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    padding-left: 30px;
    position: relative;
}

.mt-4 {
    margin-top: 40px;
}

.timeline-item .dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--primary-blue);
    border-radius: 50%;
    left: -9px;
    top: 5px;
}

.timeline-item h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.timeline-item .date {
    color: var(--primary-pink);
    margin-bottom: 15px;
    font-weight: 600;
}

.timeline-item p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- SKILLS SECTION - CENTERED & PREMIUM --- */
.skills-grid {
    display: flex;             /* Grid ki jagah Flex use kiya */
    flex-wrap: wrap;           /* Items ko next line mein jane dega */
    justify-content: center;    /* Sabse important: Icons ko center karega */
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.skill-glass {
    flex: 0 1 160px;           /* Har dabbe ki ek standard width (160px) set ki */
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 15px;
    border-radius: 20px;
    text-align: center;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Smooth bounce effect */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skill-glass i {
    font-size: 3rem;
    margin-bottom: 15px;
    /* Aapke screenshot ke hisaab se icons pehle se colored hain, toh yahan extra color ki zarurat nahi */
}

.skill-glass p {
    font-weight: 600;
    margin: 0;
    color: var(--text-main);
}

/* Premium Hover Effect */
.skill-glass:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--primary-pink);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.2);
}

/* --- MOBILE FIX --- */
@media (max-width: 768px) {
    .skill-glass {
        flex: 0 1 140px; /* Mobile par dabbe thode chote */
        padding: 20px 10px;
    }
    .skill-glass i {
        font-size: 2.5rem;
    }
}
/* --- PROJECTS --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.project-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.project-card p {
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
}

.tech-stack {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-stack span {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-link {
    color: #fff;
    font-weight: bold;
    transition: 0.3s;
}

.project-link:hover {
    color: var(--primary-pink);
}

/* --- MAC DOTS --- */
.mac-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
}

.mac-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background-color: #ff5f56;
}

.dot.yellow {
    background-color: #ffbd2e;
}

.dot.green {
    background-color: #27c93f;
}

/* --- CONTACT FORM --- */
.contact-card-premium {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 60px 30px;
    text-align: center;
    max-width: 700px;
    margin: auto;
}

.ss-heading {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.ss-bg-blue {
    background: #0044cc;
    padding: 0 15px;
    transform: skewX(-10deg);
    display: inline-block;
    margin: 0 10px;
}

.ss-subtext {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.mb-5 {
    margin-bottom: 40px;
}

.glass-form {
    text-align: left;
}

.input-group {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: 0.3s;
}

.form-input::placeholder {
    color: #888;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-pink);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.2);
}

.w-100 {
    width: 100%;
}

.footer-socials {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 50px;
}

.social-btn {
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    border-radius: 15px;
    font-weight: bold;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.social-btn:hover {
    background: #24292e;
    transform: translateY(-5px);
}

.linkedin-btn:hover {
    background: #0077b5;
}

/* --- ANIMATIONS --- */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s;
}

.show {
    opacity: 1;
    transform: translateY(0);
}


/* ========================================================= */
/* 🔥 MOBILE RESPONSIVE FIXES (100% PERFECT CENTER) 🔥 */
/* ========================================================= */
@media (max-width: 768px) {

    /* Global Mobile Fixes */
    section {
        padding: 100px 5%;
    }

    .gradient-text {
        font-size: 3rem;
    }

    .ss-heading {
        font-size: 2.5rem;
    }

    /* Navbar Mobile */
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #0a0a0c;
        flex-direction: column;
        padding: 30px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin-bottom: 10px;
    }

    /* 💥 HERO SECTION FIX: PHOTO EXACTLY IN CENTER 💥 */
    .hero {
        flex-direction: column-reverse !important;
        /* Forces Photo Top, Text Bottom */
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        padding-top: 120px !important;
        gap: 40px !important;
    }

    .hero-text {
        width: 100% !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons {
        justify-content: center !important;
        flex-wrap: wrap;
        width: 100%;
    }

    .hero-image-container {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto !important;
    }

    .profile-img {
        width: 260px !important;
        height: 260px !important;
        margin: 0 auto !important;
        display: block !important;
    }

    .image-glow {
        width: 260px !important;
        height: 260px !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    /* Skills Grid Mobile Fix (Compact) */
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        /* 3 items in one row */
        gap: 12px;
    }

    .skill-glass {
        padding: 15px 10px;
        border-radius: 12px;
    }

    .skill-glass i {
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .skill-glass p {
        font-size: 0.8rem;
    }

    /* Project Cards Mobile Fix */
    .project-card {
        padding: 25px;
    }

    /* Form Fix */
    .contact-card-premium {
        padding: 40px 20px;
    }
}



/* FOOTER */

footer{

text-align:center;

padding:25px;

margin-top:40px;

font-size:14px;

background:var(--nav-color);

}
@media (max-width: 480px) {

    /* For extremely small phones */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gradient-text {
        font-size: 2.5rem;
    }
}