html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #0a0f1e;
    color: #e2e8f0;
    scroll-behavior: smooth;
}

/* ───── NAVBAR ───── */
nav {
    position: sticky;
    top: 0;
    background: rgba(10, 15, 30, 0.95);
    border-bottom: 0.5px solid rgba(99, 179, 237, 0.2);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.logo {
    font-size: 18px;
    font-weight: 600;
    color: #63b3ed;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #63b3ed;
}

/* ───── HERO ───── */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 0 4rem;
    max-width: 1000px;
    margin: 0 auto;
    gap: 3rem;
}

.hero-left {
    flex: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 179, 237, 0.08);
    border: 0.5px solid rgba(99, 179, 237, 0.25);
    color: #63b3ed;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #68d391;
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero-left h1 {
    font-size: 38px;
    font-weight: 400;
    color: #f7fafc;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
}

.hero-left h1 span {
    color: #63b3ed;
    font-weight: 600;
}

.hero-tagline {
    font-size: 15px;
    color: #718096;
    margin-bottom: 0.5rem;
}

.hero-desc {
    font-size: 14px;
    color: #a0aec0;
    line-height: 1.8;
    max-width: 420px;
    margin-bottom: 2rem;
}

.hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.btn-primary {
    background: #63b3ed;
    color: #0a0f1e;
    padding: 10px 22px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: #63b3ed;
    padding: 10px 22px;
    border-radius: 8px;
    border: 0.5px solid rgba(99, 179, 237, 0.4);
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.hero-socials {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 0.5px solid rgba(99, 179, 237, 0.2);
    background: rgba(99, 179, 237, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    font-size: 17px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.social-btn:hover {
    border-color: #63b3ed;
    color: #63b3ed;
}

/* ───── HERO RIGHT (AVATAR) ───── */
.hero-right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.avatar-wrap {
    position: relative;
    width: 220px;
    height: 220px;
}

.avatar-ring {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 1.5px solid rgba(99, 179, 237, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 179, 237, 0.04);
}

.avatar-inner {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: #0d1b33;
    border: 1px solid rgba(99, 179, 237, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    font-weight: 500;
    color: #63b3ed;
    letter-spacing: 1px;
}

/* CHANGE: Agar apni photo lagani ho toh yeh use karein:
       .avatar-inner { background-image: url('photo.jpg'); background-size: cover; }
       Aur "MAA" text hata dein */
.floating-badge {
    position: absolute;
    background: #111827;
    border: 0.5px solid rgba(99, 179, 237, 0.2);
    border-radius: 10px;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #e2e8f0;
    white-space: nowrap;
}

.fb-top {
    top: 10px;
    right: -40px;
}

.fb-bottom {
    bottom: 10px;
    left: -20px;
}

.fb-icon {
    font-size: 16px;
    color: #63b3ed;
}

.info-cards {
    display: flex;
    gap: 10px;
}

.info-card {
    background: #111827;
    border: 0.5px solid rgba(99, 179, 237, 0.12);
    border-radius: 10px;
    padding: 10px 16px;
    text-align: center;
    min-width: 70px;
}

.ic-num {
    font-size: 20px;
    font-weight: 500;
    color: #63b3ed;
}

.ic-label {
    font-size: 11px;
    color: #718096;
    margin-top: 2px;
}

/* ───── SECTIONS ───── */
section {
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.section-label {
    font-size: 12px;
    color: #63b3ed;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 28px;
    font-weight: 500;
    color: #f7fafc;
    margin-bottom: 0.5rem;
}

hr.divider {
    border: none;
    border-top: 0.5px solid rgba(99, 179, 237, 0.1);
    margin: 0;
}

/* ───── ABOUT ───── */
#about {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text2 {
    font-size: 15px;
    color: #a0aec0;
    width: 72%;
    margin-bottom: 4rem;
}

.about-text p {
    color: #a0aec0;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 15px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-card {
    background: #111827;
    border: 0.5px solid rgba(99, 179, 237, 0.15);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.stat-num {
    font-size: 28px;
    font-weight: 500;
    color: #63b3ed;
}

.stat-label {
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
}

/* ───── SKILLS ───── */
#skills {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.perCon {
    display: flex;
    justify-content: space-between;
}

.percentage {
    color: #63b3ed;
}

.newtext {
    font-size: 15px;
    color: #a0aec0;
    margin-bottom: 2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.skill-card {
    background: #111827;
    border: 0.5px solid rgba(99, 179, 237, 0.1);
    border-radius: 12px;
    padding: 2rem 1.25rem;
}

.skill-name {
    font-size: 20px;
    font-weight: 500;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.skill-bar-bg {
    background: #1a202c;
    border-radius: 4px;
    height: 5px;
    overflow: hidden;
}

.skill-bar {
    height: 5px;
    border-radius: 4px;
    background: #63b3ed;
}

.skill-level {
    font-size: 15px;
    color: #718096;
    margin-top: 1rem;
}

/* ───── PROJECTS ───── */
#projects {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.project-card {
    background-color: #0d1527;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 24px;
    max-width: 380px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #94a3b8;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
    border-color: #38bdf8;
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-tag {
    background-color: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
}

.lightning-icon {
    color: #64748b;
    font-size: 18px;
}

.project-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
}


.project-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 20px;
}

.card-divider {
    border: 0;
    border-top: 1px solid #1e293b;
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.project-techs {
    display: flex;
    gap: 6px;
}

.tech-badge {
    background-color: #070a13;
    color: #94a3b8;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #1e293b;
}

.project-link {
    color: #38bdf8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.project-link:hover {
    color: #7dd3fc;
}

/* ───── CONTACT ───── */
/* Contact Section Base Styling */
#contact {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-section {
    background-color: #0a0f1e;
    /* Deep dark background */
    color: #ffffff;
    padding: 60px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
    align-items: start;
}

/* Left Column Styling */
.subtitle {
    color: #4e73df;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.section-desc {
    color: #858796;
    font-size: 16px;
    margin-bottom: 40px;
}

.col-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.col-desc {
    color: #858796;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Info Cards List */
.info-cards-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-card {
    background-color: #0d1527;
    border: 1px solid #1a243d;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-box {
    color: #3b82f6;
    /* Blue Icon Color */
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-label {
    color: #5a5c69;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-value {
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

a.card-value:hover {
    color: #3b82f6;
}

/* Right Column: Contact Form Card */
.contact-form-card {
    background-color: #0d1527;
    border: 1px solid #1a243d;
    border-radius: 16px;
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    color: #4e73df;
    font-size: 13px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    background-color: #16223f;
    border: 1px solid #24345d;
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #495057;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3b82f6;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background-color: transparent;
    border: 1px solid #24345d;
    color: #ffffff;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.submit-btn i {
    font-size: 16px;
}

.submit-btn:hover {
    background-color: #3b82f6;
    border-color: #3b82f6;
}


/* ───── FOOTER ───── */
/* Footer Base Styling */
/* Portfolio Custom 3-Column Footer */
.portfolio-footer {
    background-color: #060b13;
    /* Aapke portfolio ka deep dark background color */
    color: #ffffff;
    padding: 60px 20px 30px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-top: 1px solid #1a243d;
    /* Upper section se alag karne ke liye subtle line */
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    /* Same 3-column layout */
    gap: 40px;
    padding-bottom: 40px;
}

/* Common Box Headings */
.footer-box h3 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

/* Left Column Styling */
.footer-about h3 {
    color: #ffffff;
}

.footer-about p {
    color: #858796;
    /* Soft grey text for bio */
    font-size: 14px;
    line-height: 1.7;
}

/* Center Column Links (Orange ki jagah Premium Blue) */
.footer-links h3 {
    color: #3b82f6;
    /* Aapka brand blue color heading ke liye */
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #858796;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #3b82f6;
    /* Hover karne par text blue ho jayega */
}

/* Right Column Status */
.footer-status h3 {
    color: #3b82f6;
    /* Heading color */
}

.status-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.status-item span {
    font-size: 16px;
    margin-top: 2px;
}

.status-item p {
    margin: 0;
    color: #858796;
    font-size: 14px;
    line-height: 1.5;
}

/* Copyright Row */
.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    border-top: 1px solid #1a243d;
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: #5a5c69;
    font-size: 13px;
    margin: 0;
}

/* Custom Header & Navbar Reset */
.portfolio-navbar {
    background-color: #060b13;
    /* Deep dark theme background */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #1a243d;
    /* Smooth subtle border layer */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.nav-container {
    width: 100%;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Left Brand Branding Block */
.nav-logo-block {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-brand {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.nav-divider {
    color: #1a243d;
    /* Subtle line layout separator */
    font-size: 24px;
    font-weight: 300;

}

/* Center Links Section */
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: #858796;
    /* Subtle silver-grey text color */
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #3b82f6;
    /* Accent color matching your primary blue system */
}

/* Right Side: CTA Button Styling */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-btn-hire {
    background-color: transparent;
    color: #3b82f6;
    border: 1px solid #3b82f6;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-btn-hire:hover {
    background-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

/* Mobile responsive menu toggle (Hidden by default on Desktop) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}

/* Main Navbar Wrapper */
.portfolio-navbar {
    background-color: #060b13;
    /* Dark premium background */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #1a243d;
    box-sizing: border-box;
    /* Elements ko border ke andar rakhne ke liye taake overflow na ho */
}

/* Flex Container jo sabko align karega */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    /* Isse line divider aur saare elements vertically center ho jayeinge */
    justify-content: space-between;
    /* 🔥 Yeh button ko automatic right-side par push kar dega */
    box-sizing: border-box;
}

/* Left Section: Brand & Divider */
.nav-logo-block {
    display: flex;
    align-items: center;
    gap: 12px;
    /* Logo aur line ke darmiyan space */
}

.nav-brand {
    font-size: 20px;
    font-weight: 700;
    color: #38bdf8;
    text-decoration: none;
    white-space: nowrap;
    /* Name ko double line mein tootne se rokne ke liye */
}

/* 🔥 Line Divider Vertical Centering Fix */
.nav-divider {
    color: #38bdf8;
    font-size: 20px;
    font-weight: 300;
    display: inline-flex;
    align-items: center;
    align-self: center;
    /* Ensure line stays perfectly center */
    line-height: 1;
    margin-left: 5px;
    margin-right: 10px;
    margin-bottom: 4px;
}

/* Center Section: Links Group */
.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    /* Links ke darmiyan spacing */
    margin-left: auto;
    /* Links ko logo se door push karega aur space balance rakhega */
    margin-right: 30px;
    /* Links aur Hire Me button ke darmiyan gap */
}

.nav-links a {
    color: #858796;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #3b82f6;
}

/* Right Section: Button Container */
.nav-actions {
    display: flex;
    align-items: center;
}

/* Hire Me Button Styling */
.nav-btn-hire {
    background-color: transparent;
    color: #3b82f6;
    border: 1px solid #3b82f6;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.nav-btn-hire:hover {
    background-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.newNav {
    display: flex;
}

/* ───── RESPONSIVE ───── */
@media (max-width: 700px) {
    .hero {
        flex-direction: column;
        padding: 3rem 1.5rem;
        text-align: center;
        min-height: auto;
    }

    .hero-left h1 {
        font-size: 28px;
    }

    .hero-desc {
        margin: 0 auto 2rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-socials {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form-card {
        padding: 25px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        /* Mobile par columns ek ke niche ek aa jayeinge */
        gap: 30px;
    }

    .nav-divider {
        display: none;
        /* Mobile setup isolates brand to save space */
    }

    .mobile-menu-toggle {
        display: block;
        /* Hamburger becomes visible */
    }

    /* Hidden navigation drawer by default on mobile viewports */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #0d1527;
        border-bottom: 1px solid #1a243d;
        flex-direction: column;
        padding: 20px 0;
        gap: 20px;
        display: none;
        /* Controlled via active utility class in JS */
    }

    .nav-links.active {
        display: flex;
    }

    .nav-btn-hire {
        font-size: 13px;
        padding: 6px 14px;
        margin-left: 20px;
    }

    .nav-actions {
        gap: 5px;
    }
}
@media (max-width:845px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width:500px) {
    .hero-badge {
        margin-top: 60px;
    }

    .nav-btn-hire {
        margin-left: 5px;
        padding: 6px;
    }

    .info-card {
        flex-wrap: wrap;
    }
    .skills-grid{
        grid-template-columns: 1fr;
    }
}

@media (max-width:395px) {
    .portfolio-navbar {
        padding: 5px;
    }

    .nav-container {
        padding: 5px;
    }
    .nav-brand{
        font-size: 18px;
    }
    .nav-btn-hire{
        font-size: 11px;
    }
}
