:root {
    --font-sans: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    --bg-main: #0f172a;
    --bg-card: #020202;
    --accent: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.12);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}


html:has(#theme-purple:checked) {
    --bg-main: #0a0712;
    --bg-card: #140e24;
    --accent: #a855f7;
    --accent-glow: rgba(168, 85, 247, 0.12);
}

html:has(#theme-emerald:checked) {
    --bg-main: #050c08;
    --bg-card: #0d1a12;
    --accent: #22c55e;
    --accent-glow: rgba(34, 197, 94, 0.12);
}

html:has(#theme-amber:checked) {
    --bg-main: #0d0d0b;
    --bg-card: #1a1a16;
    --accent: #f59e0b;
    --accent-glow: rgba(245, 158, 11, 0.12);
}

html:has(#theme-crimson:checked) {
    --bg-main: #0f0505;
    --bg-card: #1f0b0b;
    --accent: #ef4444;
    --accent-glow: rgba(239, 68, 68, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 2fr;
    align-items: center;
    padding: 1.2rem 8%;
    background: rgba(15, 23, 42, 0.93);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 2000;
    transition: var(--transition);
}

.nav-brand-block {
    display: flex;
    justify-content: flex-start;
}

.nav-themes-block {
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.logo-anchor-link {
    text-decoration: none !important;
    display: inline-block;
}

.logo-image-container {
    display: flex;
    align-items: center;
    height: 35px;
}

.logo-fallback-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo-fallback-text span {
    color: var(--accent);
}

.theme-switcher-panel {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 100px;
}

.switcher-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.picker-group {
    display: flex;
    gap: 0.4rem;
}

.color-pill {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    display: block;
    transition: var(--transition);
    border: 1.5px solid transparent;
}

.cyan-pill {
    background-color: #38bdf8;
}

.purple-pill {
    background-color: #a855f7;
}

.emerald-pill {
    background-color: #22c55e;
}

.amber-pill {
    background-color: #f59e0b;
}

.crimson-pill {
    background-color: #ef4444;
}

#theme-cyan:checked~.navbar .cyan-pill,
#theme-purple:checked~.navbar .purple-pill,
#theme-emerald:checked~.navbar .emerald-pill,
#theme-amber:checked~.navbar .amber-pill,
#theme-crimson:checked~.navbar .crimson-pill {
    border-color: var(--text-main);
    transform: scale(1.25);
    box-shadow: 0 0 8px var(--accent);
}

.color-pill:hover {
    transform: scale(1.2);
}


.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    position: relative;
    padding: 0.3rem 0;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--accent);
}


.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}


.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 10% 4rem 10%;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 25%;
    right: 15%;
    width: 350px;
    height: 350px;
    background: var(--accent);
    filter: blur(160px);
    opacity: 0.12;
    z-index: -1;
}
.imes1{
width:10%;


}
.hero-container {
    display: flex;
    align-items: center;
    gap: 5rem;
    max-width: 1200px;
    width: 100%;
}

.hero-content {
    flex: 1.2;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: var(--accent-glow);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--accent);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 0.5rem;
    letter-spacing: -1.5px;
    color: var(--text-main);
}

.highlight-text {
    color: var(--accent);
    background: linear-gradient(to right, #38bdf8, #818cf8);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
}

.highlight-text:hover {
    transform: scale(1.04) rotate(-1deg);
    text-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.hero-subtitle span {
    color: var(--text-main);
    border-bottom: 2px solid var(--accent);
}

.hero-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 1.2rem 2.2rem;
    border-radius: 14px;
    min-width: 170px;
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.3);
    background: rgba(30, 41, 59, 0.7);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.stat-card h3 {
    font-size: 1.6rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.stat-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}


.hero-buttons {
    display: flex;
    gap: 1.2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 2.2rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-main);
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(56, 189, 248, 0.45);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-3px);
}


.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.profile-avatar-container {
    position: relative;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;

    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(15, 23, 42, 0.4) 70%);
    border: 2px solid rgba(56, 189, 248, 0.4);

    box-shadow: 0 0 35px rgba(56, 189, 248, 0.2),
        inset 0 0 25px rgba(56, 189, 248, 0.15);

    animation: floatingAvatar 6s ease-in-out infinite;
    transition: var(--transition);
}

.profile-avatar-container::after {
    content: '';
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    border: 2px dashed rgba(56, 189, 248, 0.3);
    animation: rotateOrbit 25s linear infinite;
    pointer-events: none;
}

.profile-avatar-container::before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1px solid rgba(129, 140, 248, 0.2);
    background: transparent;
    pointer-events: none;
}

.profile-avatar {
    width: 93%;
    height: 93%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--bg-main);
    background-color: #1e293b;
    z-index: 2;
    transition: var(--transition);
}


.profile-avatar-container:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #818cf8;
    box-shadow: 0 0 60px rgba(56, 189, 248, 0.4),
        0 0 25px rgba(129, 140, 248, 0.25),
        inset 0 0 35px rgba(56, 189, 248, 0.25);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpManeuver 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.delay-1 {
    animation-delay: 0.12s;
}

.delay-2 {
    animation-delay: 0.24s;
}

.delay-3 {
    animation-delay: 0.36s;
}

.delay-4 {
    animation-delay: 0.48s;
}


@keyframes fadeInUpManeuver {
    0% {
        opacity: 0;
        transform: translateY(25px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating animation node timeline */
@keyframes floatingAvatar {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
        box-shadow: 0 20px 45px rgba(56, 189, 248, 0.25),
            inset 0 0 25px rgba(56, 189, 248, 0.15);
    }

    100% {
        transform: translateY(0px);
    }
}

/* 360-Degree orbit loop timeline */
@keyframes rotateOrbit {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



.about-section {
    padding: 8rem 10%;
    background-color: #0b0f19;
    position: relative;
    overflow: hidden;
}


.title-underline-animated {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--accent), #818cf8);
    margin: 0.8rem auto 0 auto;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.title-underline-animated::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: lightSweep 3s infinite linear;
}

.about-grid {
    display: flex;
    gap: 5rem;
    align-items: center;
    margin-top: 1rem;
}

.about-card-wrapper {
    flex: 1;
}


.about-info-card-animated {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 1;
    transition: var(--transition);
}


.card-moving-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--accent), transparent 30%, transparent, #818cf8, transparent 70%);
    animation: spinGlowOverlay 8s linear infinite;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.card-inner-content {
    position: relative;
    z-index: 2;
}

.avatar-badge-circle {
    width: 50px;
    height: 50px;
    background: var(--accent-glow);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px var(--accent-glow);
}

.about-info-card-animated h3 {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 0.8rem;
}

.about-info-card-animated p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.about-meta-list {
    list-style: none;
}

.about-meta-list li {
    padding: 0.7rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.95rem;
    transform: translateX(0);
    transition: var(--transition);
}

.about-info-card-animated:hover .about-meta-list li {
    transform: translateX(4px);
}

.about-meta-list li strong {
    color: var(--accent);
    font-weight: 600;
    margin-right: 0.5rem;
}

.about-text-content {
    flex: 1.4;
}

.about-text-content h3 {
    font-size: 1.9rem;
    color: var(--text-main);
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.about-text-content h3 span {
    color: var(--accent);
}

.narrative-paragraph {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    position: relative;
}


.about-highlights {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight-item-animated {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.6rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


.highlight-item-animated:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(30, 41, 59, 0.7);
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.15);
}

.icon-pulse {
    font-size: 1.2rem;
    display: inline-block;
}

.highlight-item-animated:hover .icon-pulse {
    animation: iconPopWave 0.6s ease infinite alternative;
}


.about-info-card-animated:hover {
    transform: translateY(-4px);
    border-color: rgba(129, 140, 248, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(56, 189, 248, 0.05);
}

@keyframes spinGlowOverlay {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes lightSweep {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes iconPopWave {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.35) rotate(10deg);
    }
}


.skills-section {
    padding: 8rem 10%;
    background-color: var(--bg-main);
    position: relative;
}

.skills-wrapper-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.skills-column-card {
    background: rgba(30, 41, 59, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.skills-column-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cat-icon {
    font-size: 1.5rem;
}

.category-header h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    font-weight: 600;
}


.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
}

.skill-percentage {
    color: var(--accent);
    font-weight: 600;
}


.progress-line {
    width: 100%;
    height: 8px;
    background-color: #1e293b;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}


.progress-line span {
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 10px;
    background: linear-gradient(to right, #38bdf8, #818cf8);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
    display: block;
}

.html-fill {
    width: 95%;
}

.css-fill {
    width: 85%;
}

.bootstrap-fill {
    width: 90%;
}

.js-fill {
    width: 65%;
}

.responsive-fill {
    width: 85%;
}

.word-fill {
    width: 90%;
    background: linear-gradient(to right, #22c55e, #38bdf8) !important;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4) !important;
}

.excel-fill {
    width: 75%;
    background: linear-gradient(to right, #22c55e, #38bdf8) !important;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4) !important;
}

.excel-fill {
    width: 75%;
    background: linear-gradient(to right, #22c55e, #38bdf8) !important;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4) !important;
}

.ppt-fill {
    width: 85%;
    background: linear-gradient(to right, #22c55e, #38bdf8) !important;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4) !important;
}

.projects-section {
    padding: 8rem 10%;
    background-color: #0b0f19;
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.project-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.proj-icon {
    font-size: 1.8rem;
}

.repo-badge {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--accent);
    padding: 0.2rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
}

.project-card h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 0.8rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tech-tags span {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    padding: 0.25rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 6px;
}


.project-links {
    margin-top: auto;
}

.proj-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 0.65rem 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}


.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(56, 189, 248, 0.12);
    background: rgba(30, 41, 59, 0.7);
}

.project-card:hover .proj-btn {
    background: var(--accent);
    color: var(--bg-main);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
    border-color: var(--accent);
}

.project-card {
    padding: 0 !important;
    overflow: hidden;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.project-img-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card:hover .project-img {
    transform: scale(1.08) rotate(1deg);
}


.education-rows-section {
    padding: 8rem 10%;
    background-color: #0b0f19;
    position: relative;
}

.edu-rows-container {
    max-width: 900px;
    margin: 4rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.edu-strip-row {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background: rgba(30, 41, 59, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-left: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.edu-num-badge {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.edu-row-main {
    flex-grow: 1;
    position: relative;
}

.edu-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.edu-row-main h3 {
    font-size: 1.35rem;
    color: var(--text-main);
    font-weight: 600;
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.edu-row-main h4 {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.edu-row-main p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 700px;
}

.edu-row-time {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-status,
.badge-tag-grade {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.7rem;
    border-radius: 6px;
}

.badge-status.ongoing {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.25);
    color: #eab308;
}

.badge-status.done {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #22c55e;
}

.badge-tag-grade {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--accent);
}

.edu-strip-row:hover {
    transform: translateX(8px);
    background: rgba(30, 41, 59, 0.55);
    border-color: rgba(56, 189, 248, 0.15);
    border-left-color: var(--accent);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 0 25px rgba(56, 189, 248, 0.03);
}

.edu-strip-row:hover .edu-num-badge {
    color: var(--bg-main);
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.edu-strip-row:hover .edu-row-main h3 {
    color: var(--accent);
}

@media (max-width: 600px) {
    .edu-strip-row {
        flex-direction: column;
        gap: 1rem;
    }

    .edu-row-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}


.contact-section {
    padding: 8rem 10%;
    background-color: var(--bg-main);
    position: relative;
    width: 100%;
}

.contact-section-container {
    max-width: 1140px;
    margin: 0 auto;
}

.contact-main-flex {
    display: flex;
    gap: 5rem;
    align-items: center;
    margin-top: 3rem;
}

.contact-left-panel {
    flex: 1;
}

.contact-left-panel h3 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.contact-left-panel p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-meta-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.meta-item-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.meta-box-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-glow);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.meta-box-text h4 {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 0.15rem;
    font-weight: 600;
}

.meta-box-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

.social-connect-wrapper {
    margin-top: 3rem;
    width: 100%;
}

.social-connect-wrapper h4 {
    font-size: 0.85rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.social-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-badge-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.2rem;
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.soc-svg {
    transition: transform 0.4s ease;
}

.social-badge-btn.linkedin:hover {
    color: #fff;
    background: rgba(10, 102, 194, 0.2);
    border-color: #0a66c2;
    box-shadow: 0 0 15px rgba(10, 102, 194, 0.25);
}

.social-badge-btn.github:hover {
    color: #fff;
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

.social-badge-btn.instagram:hover {
    color: #fff;
    background: rgba(225, 48, 108, 0.15);
    border-color: #e1306c;
    box-shadow: 0 0 15px rgba(225, 48, 108, 0.25);
}

.social-badge-btn:hover .soc-svg {
    transform: scale(1.1) rotate(-8deg);
}

.contact-right-form-card {
    flex: 1.2;
    background: rgba(30, 41, 59, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.field-layout-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.field-layout-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 0.6rem;
}

.custom-input-field,
.custom-textarea-field {
    width: 100% !important;
    display: block !important;
    padding: 0.9rem 1.2rem;
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px;
    color: var(--text-main) !important;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition);
}

.custom-input-field:focus,
.custom-textarea-field:focus {
    outline: none !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.25) !important;
    background: rgba(15, 23, 42, 0.8) !important;
}

.form-submit-btn {
    width: 100%;
    justify-content: center;
    cursor: pointer;
    border: none;
    padding: 1rem 0;
}


.main-footer {
    background-color: #0b0f19;
    /* Midnight deep tone separation shield */
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 2.5rem 10%;
    width: 100%;
    position: relative;
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Left typography styles */
.footer-text-side p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}

.footer-name {
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-sub-text {
    font-size: 0.75rem !important;
    color: rgba(148, 163, 184, 0.5) !important;
    margin-top: 0.3rem !important;
}

.scroll-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    transition: var(--transition);
}

.scroll-top-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-glow);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.15);
}

.scroll-top-btn svg {
    transition: transform 0.3s ease;
}

.scroll-top-btn:hover svg {
    transform: translateY(-3px);
    /* Arrow subtly points upward on hover */
}

@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}









@media (max-width: 1024px) {
    .navbar {
        padding: 1.2rem 5%;
    }

    .hero-section,
    .about-section,
    .skills-section,
    .education-rows-section,
    .projects-section,
    .contact-section {
        padding: 6rem 5% 4rem 5%;
    }

    .hero-container {
        gap: 2.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .about-grid {
        gap: 3rem;
    }
}


@media (max-width: 768px) {

    /* Navbar Adjustment */
    .navbar {
        padding: 1rem 5%;
    }

    .navbar ul {
        gap: 1.2rem;
    }

    .navbar a {
        font-size: 0.85rem;
    }

    .hero-container {
        flex-direction: column-reverse;
        /* Mobile par profile pic upar aur text niche aayega */
        text-align: center;
        margin-top: 2rem;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
        width: 100%;
    }

    .hero-buttons {
        justify-content: center;
        width: 100%;
    }

    .profile-avatar-container {
        width: 290px !important;
        height: 290px !important;
    }


    .about-grid {
        flex-direction: column;
        gap: 2.5rem;
    }

    .about-card-wrapper {
        width: 100%;
    }

    .about-text-content {
        text-align: center;
    }

    .about-highlights {
        justify-content: center;
    }


    .skills-wrapper-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skills-column-card {
        padding: 1.8rem;
    }

    .edu-strip-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.2rem;
        border-left: none;
        border-top: 4px solid rgba(255, 255, 255, 0.1);
    }

    .edu-strip-row:hover {
        transform: translateY(-4px);
        border-top-color: var(--accent);
    }

    .edu-row-top {
        flex-direction: column;
        gap: 0.5rem;
    }

    .contact-main-flex {
        flex-direction: column;
        gap: 3rem;
    }

    .contact-left-panel {
        text-align: center;
    }

    .contact-meta-cards {
        align-items: center;
    }

    .social-links-grid {
        justify-content: center;
    }

    .contact-right-form-card {
        padding: 2rem;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .navbar {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        /* gap: 1.2rem !important; */
        padding: 1.5rem 5% !important;
        align-items: center !important;
    }

    .nav-brand-block {
        width: 100%;
        text-align: center;
    }

    .nav-themes-block {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .nav-menu {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    .navbar ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .navbar li {
        width: 100%;
        text-align: center;
    }

    .navbar a {
        font-size: 1.1rem !important;
        display: inline-block;
        padding: 0.3rem 0;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

.nav-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.nav-toggle-btn .bar {
    height: 3px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

    .nav-toggle-btn {
        display: flex !important;
    }

    .nav-menu {
        display: none !important;
        width: 100% !important;
        order: 3;
        background-color: rgba(15, 23, 42, 0.95);
        /* padding: 1.5rem 0; */
        border-radius: 8px;
        margin-top: 1rem;
    }

    .nav-menu.active {
        display: flex !important;
    }

    .navbar ul {
        flex-direction: column !important;
        width: 100% !important;
        /* gap: 1.2rem !important; */
    }
}